MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mac_init

Function mac_init

freebsd/security/mac/mac_framework.c:316–329  ·  view source on GitHub ↗

* Initialize the MAC subsystem, including appropriate SMP locks. */

Source from the content-addressed store, hash-verified

314 * Initialize the MAC subsystem, including appropriate SMP locks.
315 */
316static void
317mac_init(void)
318{
319
320 LIST_INIT(&mac_static_policy_list);
321 LIST_INIT(&mac_policy_list);
322 mac_labelzone_init();
323
324#ifndef MAC_STATIC
325 rm_init_flags(&mac_policy_rm, "mac_policy_rm", RM_NOWITNESS |
326 RM_RECURSE);
327 rms_init(&mac_policy_rms, "mac_policy_rms");
328#endif
329}
330
331/*
332 * For the purposes of modules that want to know if they were loaded "early",

Callers

nothing calls this directly

Calls 3

mac_labelzone_initFunction · 0.85
rms_initFunction · 0.85
rm_init_flagsFunction · 0.50

Tested by

no test coverage detected