/bionic/libc/bionic/ |
setegid.cpp | 32 return setresgid(-1, egid, -1);
|
/bionic/libc/arch-arm/syscalls/ |
setresgid.S | 5 ENTRY(setresgid) function 16 END(setresgid)
|
/bionic/libc/arch-arm64/syscalls/ |
setresgid.S | 5 ENTRY(setresgid) function 14 END(setresgid)
|
/bionic/libc/arch-mips/syscalls/ |
setresgid.S | 5 ENTRY(setresgid) function 19 END(setresgid)
|
/bionic/libc/arch-x86_64/syscalls/ |
setresgid.S | 5 ENTRY(setresgid) function 15 END(setresgid)
|
/bionic/libc/arch-mips64/syscalls/ |
setresgid.S | 5 ENTRY(setresgid) function 25 END(setresgid)
|
/bionic/libc/arch-x86/syscalls/ |
setresgid.S | 5 ENTRY(setresgid) function 39 END(setresgid)
|
/external/ltp/testcases/kernel/syscalls/getresgid/ |
getresgid03.c | 25 * and saved user ids after calling process invokes setresgid() to change 82 extern int setresgid(gid_t, gid_t, gid_t); 174 if (setresgid(-1, pe_gid, -1) < 0) { 176 "setresgid(-1, %d, -1) Fails, errno:%d : %s",
|
/frameworks/native/services/vr/performanced/ |
performance_service_tests.cpp | 279 ASSERT_EQ(0, setresgid(AID_NOBODY, AID_NOBODY, -1)) 357 ASSERT_EQ(0, setresgid(original_gid, original_gid, -1)) 359 ASSERT_EQ(0, setresgid(AID_SYSTEM, AID_SYSTEM, -1)) 399 ASSERT_EQ(0, setresgid(original_gid, original_gid, -1)) 401 ASSERT_EQ(0, setresgid(AID_NOBODY, AID_NOBODY, -1)) 441 ASSERT_EQ(0, setresgid(original_gid, original_gid, -1)) 443 ASSERT_EQ(0, setresgid(AID_GRAPHICS, AID_GRAPHICS, -1)) 484 ASSERT_EQ(0, setresgid(original_gid, original_gid, -1)) 486 ASSERT_EQ(0, setresgid(AID_NOBODY, AID_NOBODY, -1)) 525 ASSERT_EQ(0, setresgid(original_gid, original_gid, -1) [all...] |
main.cpp | 43 ret = setresgid(AID_SYSTEM, AID_SYSTEM, AID_SYSTEM);
|
/external/ltp/testcases/kernel/syscalls/utils/ |
compat_16.h | 38 int setresgid(gid_t rgid, gid_t egid, gid_t sgid); 139 int SETRESGID(void (cleanup)(void), GID_T rgid, GID_T egid, GID_T sgid) 141 LTP_CREATE_SYSCALL(setresgid, cleanup, rgid, egid, sgid);
|
/external/honggfuzz/libcommon/ |
ns.c | 78 if (setresgid(current_gid, current_gid, current_gid) == -1) { 79 PLOG_E("setresgid(%d)", (int)current_gid);
|
/external/ltp/testcases/kernel/syscalls/setresgid/ |
setresgid03.c | 23 * TEST TITLE : Checking error conditions for setresgid(2) 35 * 1. setresgid(2) fails with EPERM for unprivileged user in setting 37 * 2. setresgid(2) fails with EPERM for unprivileged user in setting 39 * 3. setresgid(2) fails with EPERM for unprivileged user in setting 41 * 4. setresgid(2) fails with EPERM for unprivileged user in setting 131 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, 142 tst_resm(TPASS, "setresgid() failed as " 147 "for setresgid() for %s failed", 152 tst_resm(TFAIL, "setresgid() returned " 203 GID16_CHECK((bin_gid = bin.pw_gid), "setresgid", cleanup [all...] |
setresgid02.c | 23 * TEST TITLE : Checking functionality of setresgid(2) for 36 * 1. setresgid(2) is successful for setresgid(-1, -1, -1) 37 * 2. setresgid(2) is successful for setresgid(-1, -1, bin) 38 * 3. setresgid(2) is successful for setresgid(-1, bin, -1) 39 * 4. setresgid(2) is successful for setresgid(bin, -1, -1) 40 * 5. setresgid(2) is successful for setresgid(root, root, root [all...] |
/system/extras/runconuid/ |
runconuid.cpp | 75 if (gid != (gid_t) -1 && setresgid(gid, gid, gid) < 0) {
|
/external/libbrillo/brillo/ |
process.cc | 29 #define setresgid(_g1, _g2, _g3) setregid(_g1, _g2) macro 277 if (gid_ != static_cast<gid_t>(-1) && setresgid(gid_, gid_, gid_) < 0) {
|
/external/linux-kselftest/tools/testing/selftests/capabilities/ |
test_execve.c | 397 if (setresgid(1, 1, 1) != 0) 398 ksft_exit_fail_msg("setresgid - %s\n", 416 if (setresgid(1, 1, 1) != 0) 417 ksft_exit_fail_msg("setresgid - %s\n",
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_posix.py | 77 if hasattr(posix, 'setresgid'):
80 self.assertIsNone(posix.setresgid(*current_group_ids))
82 self.assertIsNone(posix.setresgid(-1, -1, -1))
89 self.assertRaises(OSError, posix.setresgid, *new_group_ids)
|
/bionic/libc/include/ |
unistd.h | 118 int setresgid(gid_t __rgid, gid_t __egid, gid_t __sgid);
|
/external/python/cpython2/Lib/test/ |
test_posix.py | 89 @unittest.skipUnless(hasattr(posix, 'setresgid'), 90 'test needs posix.setresgid()') 93 self.assertIsNone(posix.setresgid(*current_group_ids)) 95 self.assertIsNone(posix.setresgid(-1, -1, -1)) 97 @unittest.skipUnless(hasattr(posix, 'setresgid'), 98 'test needs posix.setresgid()') 104 self.assertRaises(OSError, posix.setresgid, *new_group_ids)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_posix.py | 84 if hasattr(posix, 'setresgid'): 87 self.assertIsNone(posix.setresgid(*current_group_ids)) 89 self.assertIsNone(posix.setresgid(-1, -1, -1)) 96 self.assertRaises(OSError, posix.setresgid, *new_group_ids)
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_posix.py | 84 if hasattr(posix, 'setresgid'): 87 self.assertIsNone(posix.setresgid(*current_group_ids)) 89 self.assertIsNone(posix.setresgid(-1, -1, -1)) 96 self.assertRaises(OSError, posix.setresgid, *new_group_ids)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_posix.py | 84 if hasattr(posix, 'setresgid'): 87 self.assertIsNone(posix.setresgid(*current_group_ids)) 89 self.assertIsNone(posix.setresgid(-1, -1, -1)) 96 self.assertRaises(OSError, posix.setresgid, *new_group_ids)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_posix.py | 84 if hasattr(posix, 'setresgid'): 87 self.assertIsNone(posix.setresgid(*current_group_ids)) 89 self.assertIsNone(posix.setresgid(-1, -1, -1)) 96 self.assertRaises(OSError, posix.setresgid, *new_group_ids)
|
/external/e2fsprogs/misc/ |
uuidd.c | 515 if (setresgid(gid, gid, gid) < 0) 516 die("setresgid");
|