/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | setegid.c | 27 gid_t cegid = getegid(); in setegid_0100() 35 gid_t egid = getegid(); in setegid_0100() 53 gid_t cegid = getegid(); in setegid_0200() 61 gid_t egid = getegid(); in setegid_0200()
|
H A D | setregid.c | 28 gid_t cegid = getegid(); in setregid_0100() 38 gid_t egid = getegid(); in setregid_0100() 58 gid_t cegid = getegid(); in setregid_0200() 68 gid_t egid = getegid(); in setregid_0200()
|
H A D | getegid.c | 28 gid_t egid = getegid(); in getegid_0100()
|
/third_party/rust/crates/rustix/tests/process/ |
H A D | id.rs | 32 assert_eq!(process::getegid(), process::getegid()); in test_getegid() 34 assert_eq!(process::getegid().as_raw(), libc::getegid()); in test_getegid() 35 assert_eq!(process::getegid().is_root(), libc::getegid() == 0); in test_getegid()
|
/third_party/ltp/testcases/kernel/containers/userns/ |
H A D | userns02.c | 27 gid = getegid(); in child_fn1() 51 parentgid = getegid(); in run()
|
H A D | userns07.c | 47 parentgid = getegid(); in child_fn1() 75 parentgid = getegid(); in run()
|
H A D | userns06.c | 53 gid = getegid(); in child_fn2() 77 parentgid = getegid(); in run()
|
H A D | userns03.c | 61 gid = getegid(); in child_fn2() 131 parentgid = getegid(); in run()
|
/third_party/ltp/testcases/kernel/syscalls/getresgid/ |
H A D | getresgid01.c | 144 pe_gid = getegid(); in setup() 147 ps_gid = getegid(); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/setregid/ |
H A D | setregid04.c | 53 if ((getgid() != rg) || (getegid() != eg)) { in gid_verify() 55 when, getgid(), getegid()); in gid_verify()
|
H A D | setregid03.c | 98 if ((getgid() != rg) || (getegid() != eg)) { in gid_verify() 100 when, getgid(), getegid()); in gid_verify()
|
H A D | setregid02.c | 57 if ((getgid() != rg) || (getegid() != eg)) { in gid_verify() 59 when, getgid(), getegid()); in gid_verify()
|
/third_party/ntfs-3g/libfuse-lite/ |
H A D | fusermount.c | 90 if (!getegid()) { in drop_privs() 94 if (setresgid(-1, new_gid, getegid()) < 0) { in drop_privs() 98 if (getegid() != new_gid){ in drop_privs() 141 if (getegid()) { in restore_privs() 153 if (getegid() != sgid){ in restore_privs()
|
/third_party/ltp/testcases/kernel/syscalls/getgroups/ |
H A D | getgroups03.c | 112 an application should also call getegid(2) and add or in readgroups() 117 g = getegid(); in readgroups() 193 egid = getegid(); in verify_groups()
|
/third_party/ltp/testcases/kernel/syscalls/lchown/ |
H A D | lchown03.c | 119 GID16_CHECK(getegid(), "lchown", cleanup) in lchown_verify() 121 TEST(LCHOWN(cleanup, test->pathname, geteuid(), getegid())); in lchown_verify()
|
/third_party/musl/libc-test/src/functional/ |
H A D | ipc_sem.c | 61 EQ(semid_ds.sem_perm.cgid, getegid(), "got %d, want %d"); in inc() 62 EQ(semid_ds.sem_perm.gid, getegid(), "got %d, want %d"); in inc()
|
H A D | ipc_shm.c | 55 EQ(shmid_ds.shm_perm.cgid, getegid(), "got %d, want %d"); in set() 56 EQ(shmid_ds.shm_perm.gid, getegid(), "got %d, want %d"); in set()
|
H A D | ipc_msg.c | 58 EQ(qid_ds.msg_perm.cgid, getegid(), "got %d, want %d"); in snd() 59 EQ(qid_ds.msg_perm.gid, getegid(), "got %d, want %d"); in snd()
|
/third_party/musl/src/unistd/ |
H A D | getegid.c | 4 gid_t getegid(void) in getegid() function
|
/third_party/ltp/testcases/kernel/syscalls/statx/ |
H A D | statx01.c | 117 if (getegid() == buff.stx_gid) in test_normal_file() 121 buff.stx_gid, getegid()); in test_normal_file()
|
/third_party/rust/crates/rustix/src/process/ |
H A D | id.rs | 228 /// `getegid()`—Returns the process' effective group ID. 234 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getegid.html 235 /// [Linux]: https://man7.org/linux/man-pages/man2/getegid.2.html 238 pub fn getegid() -> Gid { in getegid() functions 239 backend::process::syscalls::getegid() in getegid()
|
/third_party/node/src/ |
H A D | node_credentials.cc | 83 getuid() != geteuid() || getgid() != getegid()) in SafeGetenv() 85 if (linux_at_secure() || getuid() != geteuid() || getgid() != getegid()) in SafeGetenv() 260 args.GetReturnValue().Set(static_cast<uint32_t>(getegid())); in GetEGid() 353 gid_t egid = getegid(); in GetGroups() 468 SetMethodNoSideEffect(context, target, "getegid", GetEGid); in Initialize()
|
/third_party/ltp/testcases/kernel/syscalls/chown/ |
H A D | chown01.c | 31 GID16_CHECK((gid = getegid()), "chown"); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/prctl/ |
H A D | prctl06_execve.c | 29 TEST(getegid()); in main() 32 "%s getegid() returns 0 unexpectedly, it gains root privileges", in main() 36 "%s getegid() returns nobody, it doesn't gain root privileges", in main()
|
/third_party/ltp/testcases/kernel/syscalls/setfsgid/ |
H A D | setfsgid01.c | 35 gid = getegid(); in run()
|