Home
last modified time | relevance | path

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

12345678

/external/openssh/
Duidswap.c81 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/
Dfile_utils_test.cc125 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/
Duds_cred.rs7 use libc::getegid;
26 let gid = unsafe { getegid() }; in test_socket_pair()
/external/ltp/testcases/kernel/syscalls/fchown/
Dfchown01.c67 GID16_CHECK(getegid(), "fchown", cleanup) in main()
69 TEST(FCHOWN(cleanup, fd, geteuid(), getegid())); in main()
Dfchown04.c132 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/
Dgetresgid01.c144 pe_gid = getegid(); in setup()
147 ps_gid = getegid(); in setup()
/external/llvm-project/lldb/unittests/Host/linux/
DHostTest.cpp47 EXPECT_EQ(getegid(), Info.GetEffectiveGroupID()); in TEST_F()
53 EXPECT_EQ(getegid(), Info.GetGroupID()); in TEST_F()
/external/mtools/
Dprivileges.c68 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/
Duserns02.c49 gid = getegid(); in child_fn1()
91 parentgid = getegid(); in main()
Duserns07.c68 parentgid = getegid(); in child_fn1()
102 parentgid = getegid(); in test_max_nest()
Duserns06.c77 gid = getegid(); in child_fn2()
123 parentgid = getegid(); in main()
Duserns03.c87 gid = getegid(); in child_fn2()
176 parentgid = getegid(); in main()
/external/ltp/testcases/kernel/syscalls/setregid/
Dsetregid04.c54 if ((getgid() != rg->gr_gid) || (getegid() != eg->gr_gid)) { in gid_verify()
56 when, getgid(), getegid()); in gid_verify()
Dsetregid02.c76 if ((getgid() != rg->gr_gid) || (getegid() != eg->gr_gid)) { in gid_verify()
78 when, getgid(), getegid()); in gid_verify()
Dsetregid03.c114 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/
Dlchown03.c119 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/
Dgetgroups03.c117 g = getegid(); in readgroups()
193 egid = getegid(); in verify_groups()
/external/ltp/testcases/kernel/syscalls/statx/
Dstatx01.c74 if (getegid() == buff.stx_gid) in test_normal_file()
78 buff.stx_gid, getegid()); in test_normal_file()
/external/strace/tests/
Dsetfsgid32.c9 # define GETUGID getegid()
Dint_0x80.c42 printf("getgid32() = %d\n", getegid()); in main()
/external/strace/tests-m32/
Dsetfsgid32.c9 # define GETUGID getegid()
Dint_0x80.c42 printf("getgid32() = %d\n", getegid()); in main()
/external/strace/tests-mx32/
Dint_0x80.c42 printf("getgid32() = %d\n", getegid()); in main()
Dsetfsgid32.c9 # define GETUGID getegid()
Dsetresgid32.c9 # define GETUGID getegid()

12345678