MAC_NONE(4)
π MAC_NONE(4) β bestie edition π
okay so this is mac_none, a page from the Kernel Interfaces Manual, section 4. Yes, 4 means kernel interfaces β we love a specialist era. It's the null MAC policy module and honestly? It's giving "I'm here, I'm cute, I do literally nothing." Let's get into it β¨
πΈ SYNOPSIS πΈ
So you wanna build the null policy into your kernel? Bestie, you're gonna drop these lines into your kernel configuration file, exactly like this:
options MAC
options MAC_NONE
OR β if you'd rather load the none module at boot time (very low-key, very flexible of you) β put this line in your kernel configuration file:
options MAC
and then in loader.conf(5):
mac_none_load="YES"
that's it. that's the whole vibe. π«Ά
β¨ DESCRIPTION β¨
The mac_none policy module implements a none MAC policy that has no effect on access control in the system. Nothing. Zero. Nada. It's the main character who shows up, waves at the party, and leaves without touching anything ππ
And here's the tea β β unlike mac_stub(4), none of the MAC entry points are defined. So if mac_stub is "I'll answer the door but I won't do anything," mac_none is "I don't even have a door." πͺπ¨
π Label Format
No labels are defined for mac_none. Not one. Empty set. The label cupboard is bare. π
π SEE ALSO π
Go read these, iykyk π
mac(4)mac_biba(4)mac_bsdextended(4)mac_ddb(4)mac_ifoff(4)mac_lomac(4)mac_mls(4)mac_partition(4)mac_portacl(4)mac_seeotheruids(4)mac_stub(4)mac_test(4)mac(9)
π¦ HISTORY π¦
The mac_none policy module first appeared in FreeBSD 5.0 and was developed by the TrustedBSD Project. A whole legend, born in 5.0, still living rent-free in the kernel tree π
π 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. Iconic government-contract behaviour, honestly. π«‘
π BUGS π
okay, serious face for one sec, this part matters:
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.
bestie please hear me: do NOT stack this thing alone and call yourself secure. It's a vibe, not a fortress. π¨
and that's the page!! πβ¨ written up in Debian, dated July 25, 2015 β mwah, hope this helped, go forth and configure responsibly ππ¦
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2002, 2003 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