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
F157076266: D47601.diff
Mon, May 18, 7:25 AM
Unknown Object (File)
Wed, May 13, 2:55 PM
Unknown Object (File)
Mon, May 11, 10:35 PM
Unknown Object (File)
Mon, May 11, 9:44 PM
Unknown Object (File)
Mon, May 11, 9:43 PM
Unknown Object (File)
Tue, Apr 21, 7:24 AM
Unknown Object (File)
Apr 9 2026, 1:54 AM
Unknown Object (File)
Apr 7 2026, 9:18 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

Event Timeline

olce requested review of this revision.Nov 15 2024, 5:07 PM
This revision is now accepted and ready to land.Nov 19 2024, 8:01 AM