Lines Matching refs:uid_eq
98 if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid)) in cap_capable()
504 if (has_cap && !uid_eq(new->uid, root_uid) && uid_eq(new->euid, root_uid)) { in cap_bprm_set_creds()
515 if (uid_eq(new->euid, root_uid) || uid_eq(new->uid, root_uid)) { in cap_bprm_set_creds()
520 if (uid_eq(new->euid, root_uid)) in cap_bprm_set_creds()
535 if ((!uid_eq(new->euid, old->uid) || in cap_bprm_set_creds()
572 !uid_eq(new->euid, root_uid) || !uid_eq(new->uid, root_uid) || in cap_bprm_set_creds()
599 if (!uid_eq(cred->uid, root_uid)) { in cap_bprm_secureexec()
606 return (!uid_eq(cred->euid, cred->uid) || in cap_bprm_secureexec()
699 if ((uid_eq(old->uid, root_uid) || in cap_emulate_setxuid()
700 uid_eq(old->euid, root_uid) || in cap_emulate_setxuid()
701 uid_eq(old->suid, root_uid)) && in cap_emulate_setxuid()
702 (!uid_eq(new->uid, root_uid) && in cap_emulate_setxuid()
703 !uid_eq(new->euid, root_uid) && in cap_emulate_setxuid()
704 !uid_eq(new->suid, root_uid)) && in cap_emulate_setxuid()
709 if (uid_eq(old->euid, root_uid) && !uid_eq(new->euid, root_uid)) in cap_emulate_setxuid()
711 if (!uid_eq(old->euid, root_uid) && uid_eq(new->euid, root_uid)) in cap_emulate_setxuid()
745 if (uid_eq(old->fsuid, root_uid) && !uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()
749 if (!uid_eq(old->fsuid, root_uid) && uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()