Page MenuHomeFreeBSD

MAC/do: sysctl_rules(): Set the requesting's thread's jail's rules
ClosedPublic

Authored by olce on Nov 15 2024, 5:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Feb 18, 1:03 AM
Unknown Object (File)
Sat, Feb 15, 6:47 PM
Unknown Object (File)
Thu, Feb 13, 7:11 AM
Unknown Object (File)
Feb 6 2025, 12:28 AM
Unknown Object (File)
Jan 30 2025, 2:34 AM
Unknown Object (File)
Jan 8 2025, 5:44 AM
Unknown Object (File)
Jan 5 2025, 2:19 AM
Unknown Object (File)
Jan 3 2025, 8:44 AM

Details

Summary

This revision is part of a series. Click on the Stack tab below to see the context.
This series has also been squeezed into D47633 to provide an overall view.

Commit message:
Allowing to change the rules specification on a jail other than the
requesting's thread one is a security issue, as it will immediately
apply to the jail we inherited from and all its other descendants that
inherit from it.

With this change, setting the 'mdo_rules' sysctl in a jail forces that
jail to no more inherit from its parent.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60592
Build 57476: arc lint + arc unit