MAC_PARTITION(4)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

🌸 MAC_PARTITION(4) β€” process partition policy, from the Kernel Interfaces Manual 🌸

πŸ’– NAME πŸ’–

mac_partition β€” process partition policy

✨ SYNOPSIS ✨

okay so if you want the process partition policy compiled into your kernel, bestie, put these lines in your kernel configuration file:

options MAC
options MAC_PARTITION

Or, if you're loading the process partition module at boot time instead, put this line in your kernel configuration file:

options MAC

and then in loader.conf(5):

mac_partition_load="YES"

πŸ¦‹ DESCRIPTION πŸ¦‹

The mac_partition policy module implements a process partition policy. It lets administrators place running processes into β€œpartitions” based on their numeric process partition β€” which is specified in the process's MAC label. πŸ’…

Processes with a specified partition can only see processes that are in the same partition. If no partition is specified for a process, it can see all other processes in the system β€” subject to other MAC policy restrictions not defined in this man page. πŸ‘‘

And no, there are no provisions for placing processes into multiple partitions available. That's just not a thing here. periodt.

πŸŽ€ Label Format πŸŽ€

Partition labels take on the following format:

partition/value

Where value can be any integer value or β€œnone”. For example:

partition/1
partition/20
partition/none

🌈 SEE ALSO 🌈

⭐ HISTORY ⭐

The mac_partition policy module first appeared in FreeBSD 5.0 and was developed by the TrustedBSD Project. iconic origin story, honestly.

🫢 AUTHORS 🫢

This software was contributed to the FreeBSD Project by Network Associates Labs, the Security Research Division of Network Associates Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (β€œCBOSS”), as part of the DARPA CHATS research program.

πŸ’€ BUGS πŸ’€

⚠️ real talk, bestie: while the MAC Framework design is intended to support the containment of the root user, not all attack channels are currently protected by entry point checks. As such, MAC Framework policies should not be relied on, in isolation, to protect against a malicious privileged user. no cap.

πŸ’– that's the whole page, bestie β€” brought to you by Debian, dated July 25, 2015, and filed under MAC_PARTITION(4). mwah πŸ’–

πŸ“¦ where this page comes from