/linux/kernel/ |
A D | uid16.c | 48 SYSCALL_DEFINE2(setreuid16, old_uid_t, ruid, old_uid_t, euid) in SYSCALL_DEFINE2() argument 50 return __sys_setreuid(low2highuid(ruid), low2highuid(euid)); in SYSCALL_DEFINE2() 58 SYSCALL_DEFINE3(setresuid16, old_uid_t, ruid, old_uid_t, euid, old_uid_t, suid) in SYSCALL_DEFINE3() argument 60 return __sys_setresuid(low2highuid(ruid), low2highuid(euid), in SYSCALL_DEFINE3() 68 old_uid_t ruid, euid, suid; in SYSCALL_DEFINE3() local 71 euid = high2lowuid(from_kuid_munged(cred->user_ns, cred->euid)); in SYSCALL_DEFINE3() 75 !(retval = put_user(euid, euidp))) in SYSCALL_DEFINE3()
|
A D | sys.c | 168 uid_eq(pcred->euid, cred->euid)) in set_one_prio_perm() 518 keuid = make_kuid(ns, euid); in __sys_setreuid() 539 if (euid != (uid_t) -1) { in __sys_setreuid() 540 new->euid = keuid; in __sys_setreuid() 555 new->suid = new->euid; in __sys_setreuid() 556 new->fsuid = new->euid; in __sys_setreuid() 693 if (euid != (uid_t) -1) in __sys_setresuid() 694 new->euid = keuid; in __sys_setresuid() 697 new->fsuid = new->euid; in __sys_setresuid() 723 uid_t ruid, euid, suid; in SYSCALL_DEFINE3() local [all …]
|
A D | cred.c | 51 .euid = GLOBAL_ROOT_UID, 325 new->suid = new->fsuid = new->euid; in prepare_exec_creds() 426 uid_eq(subset_ns->owner, set->euid)) in cred_cap_issubset() 467 if (!uid_eq(old->euid, new->euid) || in commit_creds() 508 !uid_eq(new->euid, old->euid) || in commit_creds() 679 if (old_ucounts->ns == new->user_ns && uid_eq(old_ucounts->uid, new->euid)) in set_cred_ucounts() 682 if (!(new_ucounts = alloc_ucounts(new->user_ns, new->euid))) in set_cred_ucounts() 856 from_kuid_munged(&init_user_ns, cred->euid), in dump_invalid_creds()
|
A D | uid16.h | 7 long __sys_setreuid(uid_t ruid, uid_t euid); 9 long __sys_setresuid(uid_t ruid, uid_t euid, uid_t suid);
|
A D | auditsc.c | 390 return audit_compare_uid(cred->euid, name, f, ctx); in audit_field_compare() 408 return audit_uid_comparator(cred->uid, f->op, cred->euid); in audit_field_compare() 416 cred->euid); in audit_field_compare() 425 return audit_uid_comparator(cred->euid, f->op, cred->suid); in audit_field_compare() 427 return audit_uid_comparator(cred->euid, f->op, cred->fsuid); in audit_field_compare() 505 result = audit_uid_comparator(cred->euid, f->op, f->uid); in audit_filter_rules() 997 ctx->uid = ctx->euid = ctx->suid = ctx->fsuid = KUIDT_INIT(0); in audit_reset_context() 1627 from_kuid(&init_user_ns, cred->euid), in audit_log_uring()
|
A D | user_namespace.c | 72 kuid_t owner = new->euid; in create_user_ns() 1156 uid_eq(ns->owner, cred->euid)) { in new_idmap_permitted() 1160 if (uid_eq(uid, cred->euid)) in new_idmap_permitted()
|
A D | audit.h | 137 kuid_t uid, euid, suid, fsuid; member
|
/linux/ipc/ |
A D | util.c | 280 kuid_t euid; in ipc_addid() local 299 current_euid_egid(&euid, &egid); in ipc_addid() 300 new->cuid = new->uid = euid; in ipc_addid() 555 kuid_t euid = current_euid(); in ipcperms() local 561 if (uid_eq(euid, ipcp->cuid) || in ipcperms() 562 uid_eq(euid, ipcp->uid)) in ipcperms() 726 kuid_t euid; in ipcctl_obtain_check() local 741 euid = current_euid(); in ipcctl_obtain_check() 742 if (uid_eq(euid, ipcp->cuid) || uid_eq(euid, ipcp->uid) || in ipcctl_obtain_check()
|
/linux/security/ |
A D | commoncap.c | 90 if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid)) in cap_capable() 774 { return uid_eq(cred->euid, uid); } in __is_eff() 833 { return !uid_eq(new->euid, old->uid); } in __is_setuid() 925 new->euid = new->uid; in cap_bprm_creds_from_file() 932 new->suid = new->fsuid = new->euid; in cap_bprm_creds_from_file() 1092 uid_eq(old->euid, root_uid) || in cap_emulate_setxuid() 1095 !uid_eq(new->euid, 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()
|
/linux/tools/testing/selftests/net/ |
A D | reuseaddr_ports_exhausted.c | 130 uid_t euid[2] = {10, 20}; in TEST() local 136 ret = seteuid(euid[j]); in TEST() 137 ASSERT_EQ(0, ret) TH_LOG("failed to seteuid: %d.", euid[j]); in TEST()
|
/linux/arch/mips/kernel/ |
A D | mips-mt-fpaff.c | 56 match = (uid_eq(cred->euid, pcred->euid) || in check_same_owner() 57 uid_eq(cred->euid, pcred->uid)); in check_same_owner()
|
/linux/include/linux/ |
A D | cred.h | 123 kuid_t euid; /* effective UID of the task */ member 373 #define task_euid(task) (task_cred_xxx((task), euid)) 383 #define current_euid() (current_cred_xxx(euid)) 416 *(_euid) = __cred->euid; \
|
A D | syscalls.h | 750 asmlinkage long sys_setreuid(uid_t ruid, uid_t euid); 752 asmlinkage long sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); 753 asmlinkage long sys_getresuid(uid_t __user *ruid, uid_t __user *euid, uid_t __user *suid); 1218 asmlinkage long sys_setreuid16(old_uid_t ruid, old_uid_t euid); 1220 asmlinkage long sys_setresuid16(old_uid_t ruid, old_uid_t euid, old_uid_t suid); 1222 old_uid_t __user *euid, old_uid_t __user *suid);
|
/linux/arch/s390/kernel/ |
A D | compat_linux.h | 96 long compat_sys_s390_setreuid16(u16 ruid, u16 euid); 98 long compat_sys_s390_setresuid16(u16 ruid, u16 euid, u16 suid); 99 long compat_sys_s390_getresuid16(u16 __user *ruid, u16 __user *euid, u16 __user *suid);
|
/linux/security/safesetid/ |
A D | lsm.c | 159 if (uid_eq(new_id.uid, old->uid) || uid_eq(new_id.uid, old->euid) || in id_permitted_for_cred() 179 __kuid_val(old->uid), __kuid_val(old->euid), in id_permitted_for_cred() 206 id_permitted_for_cred(old, (kid_t){.uid = new->euid}, UID) && in safesetid_task_fix_setuid()
|
/linux/fs/ |
A D | fcntl.c | 100 filp->f_owner.euid = cred->euid; in f_modown() 255 src[1] = from_kuid(user_ns, filp->f_owner.euid); in f_getowner_uids() 725 ret = ((uid_eq(fown->euid, GLOBAL_ROOT_UID) || in sigio_perm() 726 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm()
|
/linux/arch/alpha/kernel/ |
A D | asm-offsets.c | 30 DEFINE(CRED_EUID, offsetof(struct cred, euid)); in foo()
|
/linux/include/uapi/linux/ |
A D | cn_proc.h | 93 __u32 euid; member
|
/linux/Documentation/ABI/testing/ |
A D | ima_policy | 26 [uid=] [euid=] [gid=] [egid=] 43 euid:= decimal value
|
/linux/security/keys/ |
A D | keyctl.c | 1677 if (!uid_eq(pcred->uid, mycred->euid) || in keyctl_session_to_parent() 1678 !uid_eq(pcred->euid, mycred->euid) || in keyctl_session_to_parent() 1679 !uid_eq(pcred->suid, mycred->euid) || in keyctl_session_to_parent() 1687 !uid_eq(pcred->session_keyring->uid, mycred->euid)) || in keyctl_session_to_parent() 1688 !uid_eq(mycred->session_keyring->uid, mycred->euid)) in keyctl_session_to_parent()
|
A D | process_keys.c | 929 new-> euid = old-> euid; in key_change_session_keyring()
|
/linux/drivers/staging/greybus/ |
A D | authentication.c | 84 static int cap_get_endpoint_uid(struct gb_cap *cap, u8 *euid) in cap_get_endpoint_uid() argument 97 memcpy(euid, response.uid, sizeof(response.uid)); in cap_get_endpoint_uid()
|
/linux/drivers/connector/ |
A D | cn_proc.c | 143 ev->event_data.id.e.euid = from_kuid_munged(&init_user_ns, cred->euid); in proc_id_connector()
|
/linux/block/ |
A D | ioprio.c | 44 if (!uid_eq(tcred->uid, cred->euid) && in set_task_ioprio()
|
/linux/kernel/cgroup/ |
A D | cgroup-v1.c | 515 if (!uid_eq(cred->euid, GLOBAL_ROOT_UID) && in __cgroup1_procs_write() 516 !uid_eq(cred->euid, tcred->uid) && in __cgroup1_procs_write() 517 !uid_eq(cred->euid, tcred->suid)) in __cgroup1_procs_write()
|