FreeBSD/sys/security/mac/mac_framework.c
/*
 * Initialize the MAC subsystem, including appropriate SMP locks.
 */
Initialize the MAC subsystem, including appropriate SMP locks.
Initialize the MAC subsystem including appropriate SMP locks .
static void
mac_init(void)
{
	LIST_INIT(&mac_static_policy_list);
	LIST_INIT(&mac_policy_list);
	mac_labelzone_init();
#ifndef MAC_STATIC
	rm_init_flags(&mac_policy_rm, "mac_policy_rm", RM_NOWITNESS |
	    RM_RECURSE);
	sx_init_flags(&mac_policy_sx, "mac_policy_sx", SX_NOWITNESS);
#endif
}
static void mac_init ( void ) { LIST_INIT ( & mac_static_policy_list ) ; LIST_INIT ( & mac_policy_list ) ; mac_labelzone_init ( ) ; #ifndef MAC_STATIC rm_init_flags ( & mac_policy_rm , " " , RM_NOWITNESS | RM_RECURSE ) ; sx_init_flags ( & mac_policy_sx , " " , SX_NOWITNESS ) ; #endif }
Initialize the MAC subsystem, including appropriate SMP locks.
Initialize the MAC subsystem including appropriate SMP locks .