Home
last modified time | relevance | path

Searched refs:euid (Results 1 – 25 of 51) sorted by relevance

123

/linux/kernel/
A Duid16.c48 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 Dsys.c168 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 Dcred.c51 .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 Duid16.h7 long __sys_setreuid(uid_t ruid, uid_t euid);
9 long __sys_setresuid(uid_t ruid, uid_t euid, uid_t suid);
A Dauditsc.c390 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 Duser_namespace.c72 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 Daudit.h137 kuid_t uid, euid, suid, fsuid; member
/linux/ipc/
A Dutil.c280 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 Dcommoncap.c90 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 Dreuseaddr_ports_exhausted.c130 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 Dmips-mt-fpaff.c56 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 Dcred.h123 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 Dsyscalls.h750 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 Dcompat_linux.h96 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 Dlsm.c159 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 Dfcntl.c100 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 Dasm-offsets.c30 DEFINE(CRED_EUID, offsetof(struct cred, euid)); in foo()
/linux/include/uapi/linux/
A Dcn_proc.h93 __u32 euid; member
/linux/Documentation/ABI/testing/
A Dima_policy26 [uid=] [euid=] [gid=] [egid=]
43 euid:= decimal value
/linux/security/keys/
A Dkeyctl.c1677 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 Dprocess_keys.c929 new-> euid = old-> euid; in key_change_session_keyring()
/linux/drivers/staging/greybus/
A Dauthentication.c84 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 Dcn_proc.c143 ev->event_data.id.e.euid = from_kuid_munged(&init_user_ns, cred->euid); in proc_id_connector()
/linux/block/
A Dioprio.c44 if (!uid_eq(tcred->uid, cred->euid) && in set_task_ioprio()
/linux/kernel/cgroup/
A Dcgroup-v1.c515 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()

Completed in 54 milliseconds

123