Searched refs:oldpolicy (Results 1 – 2 of 2) sorted by relevance
2127 static int security_preserve_bools(struct selinux_policy *oldpolicy,2151 struct selinux_policy *oldpolicy; in selinux_policy_cancel() local2153 oldpolicy = rcu_dereference_protected(state->policy, in selinux_policy_cancel()2156 sidtab_cancel_convert(oldpolicy->sidtab); in selinux_policy_cancel()2175 struct selinux_policy *oldpolicy, *newpolicy = load_state->policy; in selinux_policy_commit() local2179 oldpolicy = rcu_dereference_protected(state->policy, in selinux_policy_commit()2183 if (oldpolicy) { in selinux_policy_commit()2184 if (oldpolicy->policydb.mls_enabled && !newpolicy->policydb.mls_enabled) in selinux_policy_commit()2186 else if (!oldpolicy->policydb.mls_enabled && newpolicy->policydb.mls_enabled) in selinux_policy_commit()2191 if (oldpolicy) in selinux_policy_commit()[all …]
7625 int oldpolicy = -1, policy = attr->sched_policy; in __sched_setscheduler() local7641 policy = oldpolicy = p->policy; in __sched_setscheduler()7763 if (unlikely(oldpolicy != -1 && oldpolicy != p->policy)) { in __sched_setscheduler()7764 policy = oldpolicy = -1; in __sched_setscheduler()