Lines Matching refs:root_uid
789 bool *effective, kuid_t root_uid) in handle_privileged_root() argument
801 if (has_fcap && __is_suid(root_uid, new)) { in handle_privileged_root()
810 if (__is_eff(root_uid, new) || __is_real(root_uid, new)) { in handle_privileged_root()
818 if (__is_eff(root_uid, new)) in handle_privileged_root()
892 kuid_t root_uid; in cap_bprm_creds_from_file() local
901 root_uid = make_kuid(new->user_ns, 0); in cap_bprm_creds_from_file()
903 handle_privileged_root(bprm, has_fcap, &effective, root_uid); in cap_bprm_creds_from_file()
954 if (nonroot_raised_pE(new, old, root_uid, has_fcap)) { in cap_bprm_creds_from_file()
967 (!__is_real(root_uid, new) && in cap_bprm_creds_from_file()
1086 kuid_t root_uid = make_kuid(old->user_ns, 0); in cap_emulate_setxuid() local
1088 if ((uid_eq(old->uid, root_uid) || in cap_emulate_setxuid()
1089 uid_eq(old->euid, root_uid) || in cap_emulate_setxuid()
1090 uid_eq(old->suid, root_uid)) && in cap_emulate_setxuid()
1091 (!uid_eq(new->uid, root_uid) && in cap_emulate_setxuid()
1092 !uid_eq(new->euid, root_uid) && in cap_emulate_setxuid()
1093 !uid_eq(new->suid, root_uid))) { in cap_emulate_setxuid()
1106 if (uid_eq(old->euid, root_uid) && !uid_eq(new->euid, root_uid)) in cap_emulate_setxuid()
1108 if (!uid_eq(old->euid, root_uid) && uid_eq(new->euid, root_uid)) in cap_emulate_setxuid()
1143 kuid_t root_uid = make_kuid(old->user_ns, 0); in cap_task_fix_setuid() local
1144 if (uid_eq(old->fsuid, root_uid) && !uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()
1148 if (!uid_eq(old->fsuid, root_uid) && uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()