/kernel/liteos_a/testsuites/unittest/security/reugid/smoke/ |
D | reugid_test_001.cpp | 42 int euid = 0; in Child1() local 54 ret = getresgid(reinterpret_cast<gid_t *>(&ruid), reinterpret_cast<gid_t *>(&euid), in Child1() 58 ICUNIT_ASSERT_EQUAL(euid, 300, euid); // 300: expected euid in Child1() 63 euid = geteuid(); in Child1() 64 ICUNIT_ASSERT_EQUAL(euid, 300, euid); in Child1() 66 ret = getresuid(reinterpret_cast<gid_t *>(&ruid), reinterpret_cast<gid_t *>(&euid), in Child1() 70 ICUNIT_ASSERT_EQUAL(euid, 300, euid); in Child1() 103 int euid = 0; in Child() local 250 euid = geteuid(); in Child() 251 ICUNIT_ASSERT_EQUAL(euid, 3000, euid); // 3000: expected value of euid in Child() [all …]
|
/kernel/liteos_a/syscall/ |
D | process_syscall.c | 413 int euid; in SysGetEffUserID() local 416 euid = (int)OsCurrUserGet()->effUserID; in SysGetEffUserID() 418 return euid; in SysGetEffUserID() 439 int SysGetRealEffSaveUserID(int *ruid, int *euid, int *suid) in SysGetRealEffSaveUserID() argument 462 ret = LOS_ArchCopyToUser(euid, &effUserID, sizeof(int)); in SysGetRealEffSaveUserID() 510 static int SetRealEffSaveUserIDCheck(int ruid, int euid, int suid) in SetRealEffSaveUserIDCheck() argument 516 if ((euid < 0) && (euid != -1)) { in SetRealEffSaveUserIDCheck() 528 int SysSetRealEffSaveUserID(int ruid, int euid, int suid) in SysSetRealEffSaveUserID() argument 533 if ((ruid == -1) && (euid == -1) && (suid == -1)) { in SysSetRealEffSaveUserID() 537 ret = SetRealEffSaveUserIDCheck(ruid, euid, suid); in SysSetRealEffSaveUserID() [all …]
|
D | los_syscall.h | 95 extern int SysGetRealEffSaveUserID(int *ruid, int *euid, int *suid); 97 extern int SysSetRealEffUserID(int ruid, int euid); 100 extern int SysSetRealEffSaveUserID(int ruid, int euid, int suid);
|
/kernel/linux/linux-5.10/kernel/ |
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()
|
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);
|
D | sys.c | 162 if (uid_eq(pcred->uid, cred->euid) || in set_one_prio_perm() 163 uid_eq(pcred->euid, cred->euid)) in set_one_prio_perm() 503 long __sys_setreuid(uid_t ruid, uid_t euid) in __sys_setreuid() argument 512 keuid = make_kuid(ns, euid); in __sys_setreuid() 516 if ((euid != (uid_t) -1) && !uid_valid(keuid)) in __sys_setreuid() 528 !uid_eq(old->euid, kruid) && in __sys_setreuid() 533 if (euid != (uid_t) -1) { in __sys_setreuid() 534 new->euid = keuid; in __sys_setreuid() 536 !uid_eq(old->euid, keuid) && in __sys_setreuid() 548 (euid != (uid_t) -1 && !uid_eq(keuid, old->uid))) in __sys_setreuid() [all …]
|
D | cred.c | 51 .euid = GLOBAL_ROOT_UID, 318 new->suid = new->fsuid = new->euid; in prepare_exec_creds() 416 uid_eq(subset_ns->owner, set->euid)) in cred_cap_issubset() 457 if (!uid_eq(old->euid, new->euid) || in commit_creds() 498 !uid_eq(new->euid, old->euid) || in commit_creds() 817 from_kuid_munged(&init_user_ns, cred->euid), in dump_invalid_creds()
|
/kernel/linux/linux-5.10/ipc/ |
D | util.c | 279 kuid_t euid; in ipc_addid() local 298 current_euid_egid(&euid, &egid); in ipc_addid() 299 new->cuid = new->uid = euid; in ipc_addid() 521 kuid_t euid = current_euid(); in ipcperms() local 527 if (uid_eq(euid, ipcp->cuid) || in ipcperms() 528 uid_eq(euid, ipcp->uid)) in ipcperms() 692 kuid_t euid; in ipcctl_obtain_check() local 707 euid = current_euid(); in ipcctl_obtain_check() 708 if (uid_eq(euid, ipcp->cuid) || uid_eq(euid, ipcp->uid) || in ipcctl_obtain_check()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
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()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
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()
|
/kernel/linux/linux-5.10/include/linux/ |
D | cred.h | 124 kuid_t euid; /* effective UID of the task */ member 372 #define task_euid(task) (task_cred_xxx((task), euid)) 381 #define current_euid() (current_cred_xxx(euid)) 413 *(_euid) = __cred->euid; \
|
/kernel/linux/linux-5.10/security/ |
D | commoncap.c | 90 if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid)) in cap_capable() 716 { return uid_eq(cred->euid, uid); } in __is_eff() 775 { return !uid_eq(new->euid, old->uid); } in __is_setuid() 865 new->euid = new->uid; in cap_bprm_creds_from_file() 872 new->suid = new->fsuid = new->euid; in cap_bprm_creds_from_file() 1023 uid_eq(old->euid, root_uid) || in cap_emulate_setxuid() 1026 !uid_eq(new->euid, root_uid) && in cap_emulate_setxuid() 1040 if (uid_eq(old->euid, root_uid) && !uid_eq(new->euid, root_uid)) in cap_emulate_setxuid() 1042 if (!uid_eq(old->euid, root_uid) && uid_eq(new->euid, root_uid)) in cap_emulate_setxuid()
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
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);
|
/kernel/linux/linux-5.10/security/safesetid/ |
D | lsm.c | 162 if (uid_eq(new_id.uid, old->uid) || uid_eq(new_id.uid, old->euid) || in id_permitted_for_cred() 182 __kuid_val(old->uid), __kuid_val(old->euid), in id_permitted_for_cred() 209 id_permitted_for_cred(old, (kid_t){.uid = new->euid}, UID) && in safesetid_task_fix_setuid()
|
/kernel/liteos_a/compat/posix/src/ |
D | mqueue.c | 122 mqueueCB->euid = -1; in DoMqueueDelete() 399 mqueueCB->euid = user->effUserID; in MqueueModeAnalysisSet() 427 uid_t euid; in GetPermissionOfVisitor() local 440 euid = user->effUserID; in GetPermissionOfVisitor() 445 if (euid == 0) { in GetPermissionOfVisitor() 448 if (euid == mqueueCB->euid) { /* usr */ in GetPermissionOfVisitor()
|
/kernel/linux/linux-5.10/fs/ |
D | fcntl.c | 99 filp->f_owner.euid = cred->euid; in f_modown() 246 src[1] = from_kuid(user_ns, filp->f_owner.euid); in f_getowner_uids() 716 ret = ((uid_eq(fown->euid, GLOBAL_ROOT_UID) || in sigio_perm() 717 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm()
|
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
D | asm-offsets.c | 30 DEFINE(CRED_EUID, offsetof(struct cred, euid)); in foo()
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | cn_proc.h | 63 __u32 euid; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | cn_proc.h | 93 __u32 euid; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | cn_proc.h | 54 __u32 euid; member
|
/kernel/liteos_m/kal/posix/src/ |
D | mqueue_impl.h | 126 uid_t euid; /* euid of mqueue */ member
|
/kernel/liteos_a/compat/posix/include/ |
D | mqueue.h | 96 uid_t euid; /* euid of mqueue */ member
|
/kernel/linux/linux-5.10/Documentation/ABI/testing/ |
D | ima_policy | 26 [euid=] [fowner=] [fsname=]] 41 euid:= decimal value
|
/kernel/linux/linux-5.10/kernel/cgroup/ |
D | cgroup-v1.c | 515 if (!uid_eq(cred->euid, GLOBAL_MEMMGR_UID) && in __cgroup1_procs_write() 516 !uid_eq(cred->euid, GLOBAL_ROOT_UID) && in __cgroup1_procs_write() 518 if (!uid_eq(cred->euid, GLOBAL_ROOT_UID) && in __cgroup1_procs_write() 520 !uid_eq(cred->euid, tcred->uid) && in __cgroup1_procs_write() 521 !uid_eq(cred->euid, tcred->suid)) in __cgroup1_procs_write()
|
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
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()
|