Home
last modified time | relevance | path

Searched refs:getegid (Results 1 - 25 of 87) sorted by relevance

1234

/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dsetegid.c27 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 Dsetregid.c28 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 Dgetegid.c28 gid_t egid = getegid(); in getegid_0100()
/third_party/rust/crates/rustix/tests/process/
H A Did.rs32 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 Duserns02.c27 gid = getegid(); in child_fn1()
51 parentgid = getegid(); in run()
H A Duserns07.c47 parentgid = getegid(); in child_fn1()
75 parentgid = getegid(); in run()
H A Duserns06.c53 gid = getegid(); in child_fn2()
77 parentgid = getegid(); in run()
H A Duserns03.c61 gid = getegid(); in child_fn2()
131 parentgid = getegid(); in run()
/third_party/ltp/testcases/kernel/syscalls/getresgid/
H A Dgetresgid01.c144 pe_gid = getegid(); in setup()
147 ps_gid = getegid(); in setup()
/third_party/ltp/testcases/kernel/syscalls/setregid/
H A Dsetregid04.c53 if ((getgid() != rg) || (getegid() != eg)) { in gid_verify()
55 when, getgid(), getegid()); in gid_verify()
H A Dsetregid03.c98 if ((getgid() != rg) || (getegid() != eg)) { in gid_verify()
100 when, getgid(), getegid()); in gid_verify()
H A Dsetregid02.c57 if ((getgid() != rg) || (getegid() != eg)) { in gid_verify()
59 when, getgid(), getegid()); in gid_verify()
/third_party/ntfs-3g/libfuse-lite/
H A Dfusermount.c90 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 Dgetgroups03.c112 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 Dlchown03.c119 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 Dipc_sem.c61 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 Dipc_shm.c55 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 Dipc_msg.c58 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 Dgetegid.c4 gid_t getegid(void) in getegid() function
/third_party/ltp/testcases/kernel/syscalls/statx/
H A Dstatx01.c117 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 Did.rs228 /// `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 Dnode_credentials.cc83 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 Dchown01.c31 GID16_CHECK((gid = getegid()), "chown"); in setup()
/third_party/ltp/testcases/kernel/syscalls/prctl/
H A Dprctl06_execve.c29 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 Dsetfsgid01.c35 gid = getegid(); in run()

Completed in 9 milliseconds

1234