Page MenuHomeFreeBSD

Remove gratuitous copyouts of unchanged struct mac.
ClosedPublic

Authored by brooks on Feb 23 2018, 7:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 29, 11:45 PM
Unknown Object (File)
Wed, Mar 18, 10:32 AM
Unknown Object (File)
Thu, Mar 12, 12:00 PM
Unknown Object (File)
Feb 28 2026, 10:02 PM
Unknown Object (File)
Feb 28 2026, 4:01 PM
Unknown Object (File)
Feb 28 2026, 3:19 AM
Unknown Object (File)
Jan 5 2026, 10:23 PM
Unknown Object (File)
Dec 31 2025, 2:56 AM
Subscribers

Details

Summary

The get operations change the data pointed to by the structure, but do
not update the contents of the struct.

Mark mac_[gs]etsockopt_*label() const to prevent this from changing in
the future.

Also const poison mac_check_structmac_consistent().

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable