MAC_TEST(4)
πΈ 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 π
mac(4)mac_biba(4)mac_bsdextended(4)mac_ddb(4)mac_ifoff(4)mac_lomac(4)mac_mls(4)mac_none(4)mac_partition(4)mac_portacl(4)mac_seeotheruids(4)mac(9)
π°οΈ 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
- 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