Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/security/selinux/ss/
Dservices.c2164 static int security_preserve_bools(struct selinux_policy *oldpolicy,
2188 struct selinux_policy *oldpolicy; in selinux_policy_cancel() local
2190 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() local
2216 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 …]
/kernel/linux/linux-5.10/kernel/sched/
Dcore.c5411 int oldpolicy = -1, policy = attr->sched_policy; in __sched_setscheduler() local
5425 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()