/external/openssh/ |
D | uidswap.c | 81 saved_egid = getegid(); in temporarily_use_uid() 139 if (setgid(getegid()) == -1) in temporarily_use_uid() 140 debug("setgid %u: %.100s", (u_int) getegid(), strerror(errno)); in temporarily_use_uid() 258 if (getgid() != pw->pw_gid || getegid() != pw->pw_gid) { in permanently_set_uid() 260 __func__, (u_int)getgid(), (u_int)getegid(), in permanently_set_uid()
|
/external/libbrillo/brillo/ |
D | file_utils_test.cc | 125 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid() + 1, getegid())); in TEST_F() 131 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid() + 1)); in TEST_F() 136 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid())); in TEST_F() 142 EXPECT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid())); in TEST_F() 148 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid())); in TEST_F() 149 EXPECT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid())); in TEST_F() 156 ASSERT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid())); in TEST_F() 163 ASSERT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid())); in TEST_F() 177 ASSERT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid())); in TEST_F()
|
/external/rust/crates/tokio/tests/ |
D | uds_cred.rs | 7 use libc::getegid; 26 let gid = unsafe { getegid() }; in test_socket_pair()
|
/external/ltp/testcases/kernel/syscalls/fchown/ |
D | fchown01.c | 67 GID16_CHECK(getegid(), "fchown", cleanup) in main() 69 TEST(FCHOWN(cleanup, fd, geteuid(), getegid())); in main()
|
D | fchown04.c | 132 GID16_CHECK(getegid(), "fchown", cleanup) in fchown_verify() 134 TEST(FCHOWN(cleanup, *test_cases[i].fd, geteuid(), getegid())); in fchown_verify()
|
/external/ltp/testcases/kernel/syscalls/getresgid/ |
D | getresgid01.c | 144 pe_gid = getegid(); in setup() 147 ps_gid = getegid(); in setup()
|
/external/llvm-project/lldb/unittests/Host/linux/ |
D | HostTest.cpp | 47 EXPECT_EQ(getegid(), Info.GetEffectiveGroupID()); in TEST_F() 53 EXPECT_EQ(getegid(), Info.GetGroupID()); in TEST_F()
|
/external/mtools/ |
D | privileges.c | 68 fprintf(stderr,"%s egid=%d rgid=%d\n", message, getegid(), getgid()); in print_privs() 164 egid = getegid(); in init_privs()
|
/external/ltp/testcases/kernel/containers/userns/ |
D | userns02.c | 49 gid = getegid(); in child_fn1() 91 parentgid = getegid(); in main()
|
D | userns07.c | 68 parentgid = getegid(); in child_fn1() 102 parentgid = getegid(); in test_max_nest()
|
D | userns06.c | 77 gid = getegid(); in child_fn2() 123 parentgid = getegid(); in main()
|
D | userns03.c | 87 gid = getegid(); in child_fn2() 176 parentgid = getegid(); in main()
|
/external/ltp/testcases/kernel/syscalls/setregid/ |
D | setregid04.c | 54 if ((getgid() != rg->gr_gid) || (getegid() != eg->gr_gid)) { in gid_verify() 56 when, getgid(), getegid()); in gid_verify()
|
D | setregid02.c | 76 if ((getgid() != rg->gr_gid) || (getegid() != eg->gr_gid)) { in gid_verify() 78 when, getgid(), getegid()); in gid_verify()
|
D | setregid03.c | 114 if ((getgid() != rg->gr_gid) || (getegid() != eg->gr_gid)) { in gid_verify() 116 when, getgid(), getegid()); in gid_verify()
|
/external/ltp/testcases/kernel/syscalls/lchown/ |
D | lchown03.c | 119 GID16_CHECK(getegid(), "lchown", cleanup) in lchown_verify() 121 TEST(LCHOWN(cleanup, test->pathname, geteuid(), getegid())); in lchown_verify()
|
/external/ltp/testcases/kernel/syscalls/getgroups/ |
D | getgroups03.c | 117 g = getegid(); in readgroups() 193 egid = getegid(); in verify_groups()
|
/external/ltp/testcases/kernel/syscalls/statx/ |
D | statx01.c | 74 if (getegid() == buff.stx_gid) in test_normal_file() 78 buff.stx_gid, getegid()); in test_normal_file()
|
/external/strace/tests/ |
D | setfsgid32.c | 9 # define GETUGID getegid()
|
D | int_0x80.c | 42 printf("getgid32() = %d\n", getegid()); in main()
|
/external/strace/tests-m32/ |
D | setfsgid32.c | 9 # define GETUGID getegid()
|
D | int_0x80.c | 42 printf("getgid32() = %d\n", getegid()); in main()
|
/external/strace/tests-mx32/ |
D | int_0x80.c | 42 printf("getgid32() = %d\n", getegid()); in main()
|
D | setfsgid32.c | 9 # define GETUGID getegid()
|
D | setresgid32.c | 9 # define GETUGID getegid()
|