MACLABEL(7)

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

πŸ’… MACLABEL(7) πŸ’…

ok so this is the maclabel page, from the Miscellaneous Information Manual β€” yes bestie, we're in the misc section and it's lowkey iconic πŸŽ€


✨ NAME ✨

maclabel β€” the Mandatory Access Control label format, aka the lil string that decides who gets to touch what πŸ”


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen. if Mandatory Access Control (that's MAC for short, not the computer brand, don't @ me) is enabled in the kernel, then on top of the traditional credentials, every subject and every object gets its own MAC label. and when I say subject I mean typically a user or a socket πŸ‘€, and when I say object I mean a file system object, a socket, etc. etc. The MAC label carries all the subject-specific or object-specific info that a MAC security policy needs in order to enforce access control on that subject/object. it's giving bouncer at the club fr fr πŸšͺ✨

The format for a MAC label is defined like this, no cap:

policy1/qualifier1,policy2/qualifier2,...

so a MAC label is literally: a policy name, then a forward slash, then the subject or object's qualifier, and then optionally a comma plus one or more additional policy labels. that's the whole vibe check πŸ’«

For example (and these are exact, don't mess with them):

biba/low(low-low)
biba/high(low-high),mls/equal(equal-equal),partition/0

see how the second one is just stacking labels like accessories? obsessed. πŸ’…


🌈 SEE ALSO 🌈

the whole friend group, go say hi:


⭐ HISTORY ⭐

MAC first appeared in FreeBSD 5.0 β€” a whole era, tbh πŸ•°οΈβœ¨


πŸ‘‘ AUTHORS πŸ‘‘

This software was contributed to the FreeBSD Project by NAI 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. legends, honestly 🫢πŸ”₯


and that's the page bestie!! πŸ“ this lil beauty is from the Debian build, dated October 25, 2002 β€” yes she's vintage, and yes she still ate πŸ’– mwah, go read mac(3) next, iykyk πŸ’œπŸ§š

πŸ“¦ where this page comes from