Lines Matching refs:root_uid
792 bool *effective, kuid_t root_uid) in handle_privileged_root() argument
804 if (has_fcap && __is_suid(root_uid, new)) { in handle_privileged_root()
813 if (__is_eff(root_uid, new) || __is_real(root_uid, new)) { in handle_privileged_root()
821 if (__is_eff(root_uid, new)) in handle_privileged_root()
895 kuid_t root_uid; in cap_bprm_creds_from_file() local
904 root_uid = make_kuid(new->user_ns, 0); in cap_bprm_creds_from_file()
906 handle_privileged_root(bprm, has_fcap, &effective, root_uid); in cap_bprm_creds_from_file()
957 if (nonroot_raised_pE(new, old, root_uid, has_fcap)) { in cap_bprm_creds_from_file()
970 (!__is_real(root_uid, new) && in cap_bprm_creds_from_file()
1089 kuid_t root_uid = make_kuid(old->user_ns, 0); in cap_emulate_setxuid() local
1091 if ((uid_eq(old->uid, root_uid) || in cap_emulate_setxuid()
1092 uid_eq(old->euid, root_uid) || in cap_emulate_setxuid()
1093 uid_eq(old->suid, root_uid)) && in cap_emulate_setxuid()
1094 (!uid_eq(new->uid, root_uid) && in cap_emulate_setxuid()
1095 !uid_eq(new->euid, root_uid) && in cap_emulate_setxuid()
1096 !uid_eq(new->suid, root_uid))) { in cap_emulate_setxuid()
1109 if (uid_eq(old->euid, root_uid) && !uid_eq(new->euid, root_uid)) in cap_emulate_setxuid()
1111 if (!uid_eq(old->euid, root_uid) && uid_eq(new->euid, root_uid)) in cap_emulate_setxuid()
1146 kuid_t root_uid = make_kuid(old->user_ns, 0); in cap_task_fix_setuid() local
1147 if (uid_eq(old->fsuid, root_uid) && !uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()
1151 if (!uid_eq(old->fsuid, root_uid) && uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()