Home
last modified time | relevance | path

Searched refs:getegid (Results 1 – 25 of 118) sorted by relevance

12345

/third_party/rust/crates/rustix/tests/process/
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/musl/libc-test/src/functionalext/supplement/unistd/
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()
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()
Dgetegid.c28 gid_t egid = getegid(); in getegid_0100()
/third_party/node/test/parallel/
Dtest-process-euid-egid.js8 assert.strictEqual(process.getegid, undefined);
39 process.getegid();
54 const oldgid = process.getegid();
64 const newgid = process.getegid();
/third_party/ltp/testcases/kernel/containers/userns/
Duserns02.c27 gid = getegid(); in child_fn1()
51 parentgid = getegid(); in run()
Duserns07.c47 parentgid = getegid(); in child_fn1()
75 parentgid = getegid(); in run()
Duserns06.c53 gid = getegid(); in child_fn2()
77 parentgid = getegid(); in run()
Duserns03.c61 gid = getegid(); in child_fn2()
131 parentgid = getegid(); in run()
/third_party/ltp/testcases/kernel/syscalls/getresgid/
Dgetresgid01.c144 pe_gid = getegid(); in setup()
147 ps_gid = getegid(); in setup()
/third_party/ltp/testcases/kernel/syscalls/setregid/
Dsetregid04.c53 if ((getgid() != rg) || (getegid() != eg)) { in gid_verify()
55 when, getgid(), getegid()); in gid_verify()
Dsetregid02.c57 if ((getgid() != rg) || (getegid() != eg)) { in gid_verify()
59 when, getgid(), getegid()); in gid_verify()
Dsetregid03.c98 if ((getgid() != rg) || (getegid() != eg)) { in gid_verify()
100 when, getgid(), getegid()); in gid_verify()
/third_party/ltp/testcases/kernel/syscalls/lchown/
Dlchown03.c119 GID16_CHECK(getegid(), "lchown", cleanup) in lchown_verify()
121 TEST(LCHOWN(cleanup, test->pathname, geteuid(), getegid())); in lchown_verify()
/third_party/ntfs-3g/libfuse-lite/
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/
Dgetgroups03.c117 g = getegid(); in readgroups()
193 egid = getegid(); in verify_groups()
/third_party/musl/libc-test/src/functional/
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()
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()
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/ltp/testcases/kernel/syscalls/statx/
Dstatx01.c117 if (getegid() == buff.stx_gid) in test_normal_file()
121 buff.stx_gid, getegid()); in test_normal_file()
/third_party/node/src/
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()
/third_party/rust/crates/rustix/src/process/
Did.rs238 pub fn getegid() -> Gid { in getegid() function
239 backend::process::syscalls::getegid() in getegid()
/third_party/musl/src/unistd/
Dgetegid.c4 gid_t getegid(void) in getegid() function
/third_party/ltp/testcases/kernel/syscalls/chown/
Dchown01.c31 GID16_CHECK((gid = getegid()), "chown"); in setup()
/third_party/node/deps/openssl/openssl/crypto/
Duid.c52 return getuid() != geteuid() || getgid() != getegid(); in OPENSSL_issetugid()

12345