MACLABEL(7)
π 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:
mac(3)posix1e(3)mac_biba(4)mac_bsdextended(4)mac_ifoff(4)mac_mls(4)mac_none(4)mac_partition(4)mac_seeotheruids(4)mac_test(4)login.conf(5)getfmac(8)getpmac(8)ifconfig(8)setfmac(8)setpmac(8)mac(9)
β 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
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2002 Networks Associates Technology, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms