/kernel/liteos_a/testsuites/unittest/security/reugid/smoke/ |
D | reugid_test_001.cpp | 45 int egid = 0; in Child1() local 51 egid = getegid(); in Child1() 52 ICUNIT_ASSERT_EQUAL(egid, 300, egid); in Child1() 106 int egid = 0; in Child() local 209 egid = getegid(); in Child() 210 ICUNIT_ASSERT_EQUAL(egid, 5000, egid); // 5000: expected value of egid in Child() 216 egid = getegid(); in Child() 217 ICUNIT_ASSERT_EQUAL(egid, 5000, egid); // 5000: expected value of egid in Child() 231 egid = getegid(); in Child() 232 ICUNIT_ASSERT_EQUAL(egid, 3000, egid); // 3000: expected value of egid in Child() [all …]
|
/kernel/liteos_a/syscall/ |
D | process_syscall.c | 428 int egid; in SysGetEffGID() local 431 egid = (int)OsCurrUserGet()->effGid; in SysGetEffGID() 433 return egid; in SysGetEffGID() 620 int SysGetRealEffSaveGroupID(int *rgid, int *egid, int *sgid) in SysGetRealEffSaveGroupID() argument 643 ret = LOS_ArchCopyToUser(egid, &effGroupID, sizeof(int)); in SysGetRealEffSaveGroupID() 657 static int SetRealEffSaveGroupIDCheck(int rgid, int egid, int sgid) in SetRealEffSaveGroupIDCheck() argument 663 if ((egid < 0) && (egid != -1)) { in SetRealEffSaveGroupIDCheck() 675 int SysSetRealEffSaveGroupID(int rgid, int egid, int sgid) in SysSetRealEffSaveGroupID() argument 680 if ((rgid == -1) && (egid == -1) && (sgid == -1)) { in SysSetRealEffSaveGroupID() 684 ret = SetRealEffSaveGroupIDCheck(rgid, egid, sgid); in SysSetRealEffSaveGroupID() [all …]
|
D | los_syscall.h | 96 extern int SysGetRealEffSaveGroupID(int *rgid, int *egid, int *sgid); 98 extern int SysSetRealEffGroupID(int rgid, int egid); 99 extern int SysSetRealEffSaveGroupID(int rgid, int egid, int sgid);
|
/kernel/linux/linux-5.10/kernel/ |
D | uid16.c | 38 SYSCALL_DEFINE2(setregid16, old_gid_t, rgid, old_gid_t, egid) in SYSCALL_DEFINE2() argument 40 return __sys_setregid(low2highgid(rgid), low2highgid(egid)); in SYSCALL_DEFINE2() 81 SYSCALL_DEFINE3(setresgid16, old_gid_t, rgid, old_gid_t, egid, old_gid_t, sgid) in SYSCALL_DEFINE3() argument 83 return __sys_setresgid(low2highgid(rgid), low2highgid(egid), in SYSCALL_DEFINE3() 91 old_gid_t rgid, egid, sgid; in SYSCALL_DEFINE3() local 94 egid = high2lowgid(from_kgid_munged(cred->user_ns, cred->egid)); in SYSCALL_DEFINE3() 98 !(retval = put_user(egid, egidp))) in SYSCALL_DEFINE3()
|
D | uid16.h | 8 long __sys_setregid(gid_t rgid, gid_t egid); 10 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid);
|
D | sys.c | 352 long __sys_setregid(gid_t rgid, gid_t egid) in __sys_setregid() argument 361 kegid = make_kgid(ns, egid); in __sys_setregid() 365 if ((egid != (gid_t) -1) && !gid_valid(kegid)) in __sys_setregid() 376 gid_eq(old->egid, krgid) || in __sys_setregid() 382 if (egid != (gid_t) -1) { in __sys_setregid() 384 gid_eq(old->egid, kegid) || in __sys_setregid() 387 new->egid = kegid; in __sys_setregid() 393 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid() 394 new->sgid = new->egid; in __sys_setregid() 395 new->fsgid = new->egid; in __sys_setregid() [all …]
|
D | cred.c | 52 .egid = GLOBAL_ROOT_GID, 319 new->sgid = new->fsgid = new->egid; in prepare_exec_creds() 458 !gid_eq(old->egid, new->egid) || in commit_creds() 504 !gid_eq(new->egid, old->egid) || in commit_creds() 822 from_kgid_munged(&init_user_ns, cred->egid), in dump_invalid_creds()
|
D | groups.c | 236 if (!gid_eq(grp, cred->egid)) in in_egroup_p()
|
D | audit.h | 129 kgid_t gid, egid, sgid, fsgid; member
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
D | compat_linux.h | 94 long compat_sys_s390_setregid16(u16 rgid, u16 egid); 100 long compat_sys_s390_setresgid16(u16 rgid, u16 egid, u16 sgid); 101 long compat_sys_s390_getresgid16(u16 __user *rgid, u16 __user *egid, u16 __user *sgid);
|
/kernel/linux/linux-5.10/security/safesetid/ |
D | lsm.c | 166 if (gid_eq(new_id.gid, old->gid) || gid_eq(new_id.gid, old->egid) || in id_permitted_for_cred() 186 __kgid_val(old->gid), __kgid_val(old->egid), in id_permitted_for_cred() 233 id_permitted_for_cred(old, (kid_t){.gid = new->egid}, GID) && in safesetid_task_fix_setgid()
|
/kernel/linux/linux-5.10/include/linux/ |
D | cred.h | 125 kgid_t egid; /* effective GID of the task */ member 382 #define current_egid() (current_cred_xxx(egid)) 414 *(_egid) = __cred->egid; \
|
D | syscalls.h | 733 asmlinkage long sys_setregid(gid_t rgid, gid_t egid); 739 asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); 740 asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid); 1192 asmlinkage long sys_setregid16(old_gid_t rgid, old_gid_t egid); 1199 asmlinkage long sys_setresgid16(old_gid_t rgid, old_gid_t egid, old_gid_t sgid); 1201 old_gid_t __user *egid, old_gid_t __user *sgid);
|
/kernel/liteos_a/compat/posix/src/ |
D | mqueue.c | 123 mqueueCB->egid = -1; in DoMqueueDelete() 400 mqueueCB->egid = user->effGid; in MqueueModeAnalysisSet() 428 gid_t egid; in GetPermissionOfVisitor() local 441 egid = user->effGid; in GetPermissionOfVisitor() 453 } else if (egid == mqueueCB->egid) { /* grp */ in GetPermissionOfVisitor()
|
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
D | asm-offsets.c | 32 DEFINE(CRED_EGID, offsetof(struct cred, egid)); in foo()
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | cn_proc.h | 64 __u32 egid; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | cn_proc.h | 94 __u32 egid; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | cn_proc.h | 55 __u32 egid; member
|
/kernel/liteos_m/kal/posix/src/ |
D | mqueue_impl.h | 127 gid_t egid; /* egid of mqueue */ member
|
/kernel/liteos_a/compat/posix/include/ |
D | mqueue.h | 97 gid_t egid; /* egid of mqueue */ member
|
/kernel/linux/linux-5.10/ipc/ |
D | util.c | 280 kgid_t egid; in ipc_addid() local 298 current_euid_egid(&euid, &egid); in ipc_addid() 300 new->gid = new->cgid = egid; in ipc_addid()
|
/kernel/linux/linux-5.10/drivers/connector/ |
D | cn_proc.c | 146 ev->event_data.id.e.egid = from_kgid_munged(&init_user_ns, cred->egid); in proc_id_connector()
|
/kernel/linux/linux-5.10/security/ |
D | commoncap.c | 778 { return !gid_eq(new->egid, old->gid); } in __is_setgid() 866 new->egid = new->gid; in cap_bprm_creds_from_file() 873 new->sgid = new->fsgid = new->egid; in cap_bprm_creds_from_file()
|
/kernel/linux/linux-5.10/security/keys/ |
D | keyctl.c | 1680 !gid_eq(pcred->gid, mycred->egid) || in keyctl_session_to_parent() 1681 !gid_eq(pcred->egid, mycred->egid) || in keyctl_session_to_parent() 1682 !gid_eq(pcred->sgid, mycred->egid)) in keyctl_session_to_parent()
|
D | process_keys.c | 925 new-> egid = old-> egid; in key_change_session_keyring()
|