FreeBSD/sys/security/mac/mac_framework.c
/*
 * When policies are loaded or unloaded, walk the list of registered policies
 * and built mac_labeled, a bitmask representing the union of all objects
 * requiring labels across all policies.
 */
When policies are loaded or unloaded, walk the list of registered policies
and built mac_labeled, a bitmask representing the union of all objects
requiring labels across all policies.
When policies are loaded or unloaded walk the list of registered policies and built mac_labeled a bitmask representing the union of all objects requiring labels across all policies .
static void
mac_policy_update(void)
{
	struct mac_policy_conf *mpc;
	mac_policy_xlock_assert();
	mac_labeled = 0;
	mac_policy_count = 0;
	LIST_FOREACH(mpc, &mac_static_policy_list, mpc_list) {
		mac_labeled |= mac_policy_getlabeled(mpc);
		mac_policy_count++;
	}
	LIST_FOREACH(mpc, &mac_policy_list, mpc_list) {
		mac_labeled |= mac_policy_getlabeled(mpc);
		mac_policy_count++;
	}
}
static void mac_policy_update ( void ) { struct mac_policy_conf * mpc ; mac_policy_xlock_assert ( ) ; mac_labeled = 0 ; mac_policy_count = 0 ; LIST_FOREACH ( mpc , & mac_static_policy_list , mpc_list ) { mac_labeled |= mac_policy_getlabeled ( mpc ) ; mac_policy_count ++ ; } LIST_FOREACH ( mpc , & mac_policy_list , mpc_list ) { mac_labeled |= mac_policy_getlabeled ( mpc ) ; mac_policy_count ++ ; } }
When policies are loaded or unloaded, walk the list of registered policies
 and built mac_labeled, a bitmask representing the union of all objects
 requiring labels across all policies.
When policies are loaded or unloaded walk the list of registered policies and built mac_labeled a bitmask representing the union of all objects requiring labels across all policies .