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)
Tue, May 19, 2:40 AM
Unknown Object (File)
Sun, May 3, 6:03 PM
Unknown Object (File)
Thu, Apr 30, 8:09 AM
Unknown Object (File)
Wed, Apr 29, 9:09 AM
Unknown Object (File)
Fri, Apr 24, 12:13 PM
Unknown Object (File)
Apr 23 2026, 10:36 AM
Unknown Object (File)
Apr 23 2026, 10:09 AM
Unknown Object (File)
Apr 23 2026, 4:45 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