MAC_TEST(4)

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

🌸 NAME β€” mac_test(4) 🌸

mac_test is the MAC framework testing policy, bestie, and we're reading its page from the Kernel Interfaces Manual (section 4). That's the whole name vibe πŸ’…


✨ SYNOPSIS ✨

okay so, if you wanna compile the testing policy into your kernel, put these lines in your kernel configuration file, periodt:

             options MAC
             options MAC_TEST

Alternately, to load the testing module at boot time, put this line in your kernel configuration file:

             options MAC

and in loader.conf(5):

             mac_test_load="YES"

πŸ§ͺ DESCRIPTION πŸ§ͺ

The mac_test policy module implements a testing facility for the MAC framework. Among other things, mac_test will try to catch corrupt labels the system is attempting to destroy and drop to the debugger β€” like, it's literally watching for messy label destruction πŸ‘€πŸ’€

Also, a set of statistics regarding the number of times various MAC framework entry points have been called is stored in the security.mac.test sysctl(8) tree. Cute little numbers, slay ✨

🏷️ Label Format 🏷️

No labels are defined for mac_test. That's it, that's the whole label format section πŸŽ€

πŸ‘€ SEE ALSO πŸ‘€

πŸ•°οΈ HISTORY πŸ•°οΈ

The mac_test policy module first appeared in FreeBSD 5.0 and was developed by the TrustedBSD Project. Historical icon behavior, 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. Look at that rΓ©sumΓ©, no cap πŸ’…

πŸ’€ BUGS πŸ’€

⚠️ okay serious moment, 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. That's a real caveat, not a vibe β€” protect yourself accordingly πŸ”₯

xoxo, your mac_test(4) page β€” Debian, July 25, 2015 πŸ’‹

πŸ“¦ where this page comes from