Lines Matching refs:uid_eq
91 if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid)) in cap_capable()
776 { return uid_eq(cred->uid, uid); } in __is_real()
779 { return uid_eq(cred->euid, uid); } in __is_eff()
838 { return !uid_eq(new->euid, old->uid); } in __is_setuid()
1096 if ((uid_eq(old->uid, root_uid) || in cap_emulate_setxuid()
1097 uid_eq(old->euid, root_uid) || in cap_emulate_setxuid()
1098 uid_eq(old->suid, root_uid)) && in cap_emulate_setxuid()
1099 (!uid_eq(new->uid, root_uid) && in cap_emulate_setxuid()
1100 !uid_eq(new->euid, root_uid) && in cap_emulate_setxuid()
1101 !uid_eq(new->suid, root_uid))) { in cap_emulate_setxuid()
1114 if (uid_eq(old->euid, root_uid) && !uid_eq(new->euid, root_uid)) in cap_emulate_setxuid()
1116 if (!uid_eq(old->euid, root_uid) && uid_eq(new->euid, root_uid)) in cap_emulate_setxuid()
1152 if (uid_eq(old->fsuid, root_uid) && !uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()
1156 if (!uid_eq(old->fsuid, root_uid) && uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()