Page MenuHomeFreeBSD

Remove gratuitous copyouts of unchanged struct mac.
ClosedPublic

Authored by brooks on Feb 23 2018, 7:44 PM.
Tags
None
Referenced Files
F170904473: D14488.id129880.diff
Mon, Sep 7, 11:33 AM
Unknown Object (File)
Sun, Sep 6, 2:37 AM
Unknown Object (File)
Sun, Sep 6, 1:21 AM
Unknown Object (File)
Sat, Sep 5, 8:45 PM
Unknown Object (File)
Sat, Sep 5, 4:00 PM
Unknown Object (File)
Sat, Sep 5, 3:34 PM
Unknown Object (File)
Sat, Sep 5, 3:34 PM
Unknown Object (File)
Sat, Sep 5, 11:38 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