Page MenuHomeFreeBSD

mac_veriexec: Authorize reads of secured sysctls
ClosedPublic

Authored by sebastien.bini_stormshield.eu on Feb 21 2022, 10:21 AM.
Tags
None
Referenced Files
F163209659: D34327.id107537.diff
Tue, Jul 21, 2:13 AM
Unknown Object (File)
Sat, Jul 18, 2:23 AM
Unknown Object (File)
Thu, Jul 16, 5:43 PM
Unknown Object (File)
Thu, Jul 2, 12:32 PM
Unknown Object (File)
Wed, Jul 1, 7:05 AM
Unknown Object (File)
Sun, Jun 28, 3:00 PM
Unknown Object (File)
Sat, Jun 27, 2:11 PM
Unknown Object (File)
Jun 5 2026, 11:01 AM

Details

Summary

Writes to sysctls flagged with CTLFLAG_SECURE are blocked if the appropriate secure level is set. mac_veriexec does not behave this way, it blocks such sysctls in read-only mode as well.

This change aims to make mac_veriexec behave like secure levels, as it was meant by the original commit ed377cf41.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44522
Build 41410: arc lint + arc unit

Event Timeline

sebastien.bini_stormshield.eu retitled this revision from Writes to sysctls flagged with CTLFLAG_SECURE are blocked if the appropriate secure level is set. mac_veriexec does not behave this way, it blocks such sysctls in read-only mode as well. to mac_veriexec: Authorize reads of secured sysctls.Feb 21 2022, 10:23 AM
sebastien.bini_stormshield.eu edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Feb 21 2022, 5:13 PM
This revision was automatically updated to reflect the committed changes.