Lines Matching refs:old
100 static bool uid_permitted_for_cred(const struct cred *old, kuid_t new_uid) in uid_permitted_for_cred() argument
105 if (uid_eq(new_uid, old->uid) || uid_eq(new_uid, old->euid) || in uid_permitted_for_cred()
106 uid_eq(new_uid, old->suid)) in uid_permitted_for_cred()
114 setuid_policy_lookup(old->uid, new_uid) != SIDPOL_CONSTRAINED; in uid_permitted_for_cred()
117 __kuid_val(old->uid), __kuid_val(old->euid), in uid_permitted_for_cred()
118 __kuid_val(old->suid), __kuid_val(new_uid)); in uid_permitted_for_cred()
129 const struct cred *old, in safesetid_task_fix_setuid() argument
134 if (setuid_policy_lookup(old->uid, INVALID_UID) == SIDPOL_DEFAULT) in safesetid_task_fix_setuid()
137 if (uid_permitted_for_cred(old, new->uid) && in safesetid_task_fix_setuid()
138 uid_permitted_for_cred(old, new->euid) && in safesetid_task_fix_setuid()
139 uid_permitted_for_cred(old, new->suid) && in safesetid_task_fix_setuid()
140 uid_permitted_for_cred(old, new->fsuid)) in safesetid_task_fix_setuid()