Home
last modified time | relevance | path

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

/linux-6.6.21/security/selinux/ss/
Dservices.c2127 static int security_preserve_bools(struct selinux_policy *oldpolicy,
2151 struct selinux_policy *oldpolicy; in selinux_policy_cancel() local
2153 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() local
2179 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 …]
/linux-6.6.21/kernel/sched/
Dcore.c7625 int oldpolicy = -1, policy = attr->sched_policy; in __sched_setscheduler() local
7641 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()