Searched refs:oldpolicy (Results 1 – 2 of 2) sorted by relevance
2164 static int security_preserve_bools(struct selinux_policy *oldpolicy,2188 struct selinux_policy *oldpolicy; in selinux_policy_cancel() local2190 oldpolicy = rcu_dereference_protected(state->policy, in selinux_policy_cancel()2193 sidtab_cancel_convert(oldpolicy->sidtab); in selinux_policy_cancel()2212 struct selinux_policy *oldpolicy, *newpolicy = load_state->policy; in selinux_policy_commit() local2216 oldpolicy = rcu_dereference_protected(state->policy, in selinux_policy_commit()2220 if (oldpolicy) { in selinux_policy_commit()2221 if (oldpolicy->policydb.mls_enabled && !newpolicy->policydb.mls_enabled) in selinux_policy_commit()2223 else if (!oldpolicy->policydb.mls_enabled && newpolicy->policydb.mls_enabled) in selinux_policy_commit()2228 if (oldpolicy) in selinux_policy_commit()[all …]
5411 int oldpolicy = -1, policy = attr->sched_policy; in __sched_setscheduler() local5425 policy = oldpolicy = p->policy; in __sched_setscheduler()5600 if (unlikely(oldpolicy != -1 && oldpolicy != p->policy)) { in __sched_setscheduler()5601 policy = oldpolicy = -1; in __sched_setscheduler()