Page MenuHomeFreeBSD

MAC: Define a common 'mac' node for MAC's jail parameters
ClosedPublic

Authored by olce on Oct 4 2024, 7:56 AM.
Tags
None
Referenced Files
F109485084: D46899.diff
Wed, Feb 5, 5:13 PM
Unknown Object (File)
Tue, Feb 4, 1:28 AM
Unknown Object (File)
Thu, Jan 30, 4:50 AM
Unknown Object (File)
Mon, Jan 27, 4:35 PM
Unknown Object (File)
Thu, Jan 23, 9:23 PM
Unknown Object (File)
Sat, Jan 18, 2:30 AM
Unknown Object (File)
Fri, Jan 17, 12:26 AM
Unknown Object (File)
Jan 5 2025, 1:37 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

olce requested review of this revision.Oct 4 2024, 7:56 AM

I suppose this will make more sense once there's at least one MAC policy that has an associated jail parameter. Currently, it seems to suggest (being a jailsys parameter) that there's some sort of valid "new" or "deleted" state for MAC inside the jail.

I suppose this will make more sense once there's at least one MAC policy that has an associated jail parameter.

Exactly. All these commits are preparatory ones for deep changes in mac_do(4). Here, the goal is to define a common parameter node so that mac_do(4) will use mac.do to fit its parameters.

Currently, it seems to suggest (being a jailsys parameter) that there's some sort of valid "new" or "deleted" state for MAC inside the jail.

Not sure what you mean here. SYSCTL_JAIL_PARAM_NODE() just declares the common MAC sub-node. mac_do(4) will then indeed use the new SYSCTL_JAIL_PARAM_SYS_SUBNODE() for the mac.do jail parameter "node", effectively intended to be a jailsys one.

Currently, it seems to suggest (being a jailsys parameter) that there's some sort of valid "new" or "deleted" state for MAC inside the jail.

Not sure what you mean here. SYSCTL_JAIL_PARAM_NODE() just declares the common MAC sub-node. mac_do(4) will then indeed use the new SYSCTL_JAIL_PARAM_SYS_SUBNODE() for the mac.do jail parameter "node", effectively intended to be a jailsys one.

Eh, just thinking with my fingers on the keyboard - no need to try making sense of it.

This revision is now accepted and ready to land.Oct 16 2024, 3:00 AM