Home
last modified time | relevance | path

Searched refs:oldpolicy (Results 1 – 2 of 2) sorted by relevance

/linux/security/selinux/ss/
H A Dservices.c2139 static int security_preserve_bools(struct selinux_policy *oldpolicy,
2163 struct selinux_policy *oldpolicy; in selinux_policy_cancel() local
2165 oldpolicy = rcu_dereference_protected(state->policy, in selinux_policy_cancel()
2168 sidtab_cancel_convert(oldpolicy->sidtab); in selinux_policy_cancel()
2187 struct selinux_policy *oldpolicy, *newpolicy = load_state->policy; in selinux_policy_commit() local
2191 oldpolicy = rcu_dereference_protected(state->policy, in selinux_policy_commit()
2195 if (oldpolicy) { in selinux_policy_commit()
2196 if (oldpolicy->policydb.mls_enabled && !newpolicy->policydb.mls_enabled) in selinux_policy_commit()
2198 else if (!oldpolicy->policydb.mls_enabled && newpolicy->policydb.mls_enabled) in selinux_policy_commit()
2203 if (oldpolicy) in selinux_policy_commit()
[all …]
/linux/kernel/sched/
H A Dsyscalls.c530 int oldpolicy = -1, policy = attr->sched_policy; in __sched_setscheduler() local
546 policy = oldpolicy = p->policy; in __sched_setscheduler()
674 if (unlikely(oldpolicy != -1 && oldpolicy != p->policy)) { in __sched_setscheduler()
675 policy = oldpolicy = -1; in __sched_setscheduler()