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)
Mon, Jun 16, 12:46 AM
Unknown Object (File)
Sun, Jun 15, 6:00 AM
Unknown Object (File)
Sun, Jun 15, 2:32 AM
Unknown Object (File)
Sun, Jun 1, 10:35 AM
Unknown Object (File)
Fri, May 30, 8:40 AM
Unknown Object (File)
Apr 28 2025, 10:31 AM
Unknown Object (File)
Apr 21 2025, 11:19 AM
Unknown Object (File)
Apr 21 2025, 10:25 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