/third_party/ltp/testcases/kernel/fs/read_all/ |
H A D | read_all.c | 288 TEST(setgid(nobody->pw_gid)); in maybe_drop_privs()
|
/third_party/musl/libc-test/src/api/ |
H A D | unistd.c | 314 {int(*p)(gid_t) = setgid;} in f()
|
/third_party/toybox/toys/pending/ |
H A D | tcpsvd.c | 290 setgid(gid); in tcpsvd_main()
|
/third_party/nghttp2/src/ |
H A D | shrpx_worker_process.cc | 87 if (setgid(config->gid) != 0) { in drop_privileges()
|
/third_party/node/deps/uv/src/unix/ |
H A D | process.c | 365 if ((options->flags & UV_PROCESS_SETGID) && setgid(options->gid)) in uv__process_child_init()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | os_unix.c | 351 setgid(AID_WIFI); in os_program_init()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | os_unix.c | 359 setgid(AID_WIFI); in os_program_init()
|
/third_party/libuv/src/unix/ |
H A D | process.c | 386 if ((options->flags & UV_PROCESS_SETGID) && setgid(options->gid)) in uv__process_child_init()
|
/third_party/pulseaudio/src/daemon/ |
H A D | main.c | 306 if ((r = setgid(gr->gr_gid)) >= 0) in change_user()
|
H A D | ohos_pa_main.c | 309 if ((r = setgid(gr->gr_gid)) >= 0) in change_user()
|
/third_party/toybox/lib/ |
H A D | xwrap.c | 726 if (initgroups(pwd->pw_name, pwd->pw_gid) || setgid(pwd->pw_uid) in xsetuser()
|
/third_party/libuv/test/ |
H A D | test-spawn.c | 1519 ASSERT_OK(setgid(pw->pw_gid)); in TEST_IMPL() 1570 ASSERT_OK(setgid(pw->pw_gid)); in TEST_IMPL()
|
/kernel/linux/linux-6.6/tools/testing/selftests/mount_setattr/ |
H A D | mount_setattr_test.c | 213 if (setgid(0)) in create_and_enter_userns()
|
/third_party/ltp/lib/ |
H A D | safe_macros.c | 352 rval = setgid(gid); in safe_setgid() 356 "setgid(%u) failed", (unsigned int)gid); in safe_setgid() 359 "Invalid setgid(%u) return value %d", in safe_setgid()
|
/third_party/rust/crates/nix/src/ |
H A D | unistd.rs | 1474 /// See also [setgid(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/setgid.html) 1476 pub fn setgid(gid: Gid) -> Result<()> { in setgid() functions 1477 let res = unsafe { libc::setgid(gid.into()) }; in setgid() 1590 /// setgid(gid)?; 1717 /// setgid(gid)?;
|
/third_party/mksh/ |
H A D | misc.c | 269 /* setgid, setegid don't EAGAIN on Linux */ in change_flag() 270 setgid(kshegid); in change_flag()
|
/third_party/rust/crates/libc/src/vxworks/ |
H A D | mod.rs | 1722 pub fn setgid(gid: ::gid_t) -> ::c_int; in setgid() functions
|
/third_party/rust/crates/libc/src/unix/ |
H A D | mod.rs | 920 pub fn setgid(gid: gid_t) -> ::c_int; in setgid() functions
|
/third_party/popt/src/ |
H A D | popt.c | 510 rc = setgid(getgid()); in execCommand()
|
/third_party/python/Lib/test/ |
H A D | test_os.py | 2321 @unittest.skipUnless(hasattr(os, 'setgid'), 'test needs os.setgid()') 2324 self.assertRaises(OSError, os.setgid, 0) 2325 self.assertRaises(TypeError, os.setgid, 'not an int') 2326 self.assertRaises(OverflowError, os.setgid, self.GID_OVERFLOW)
|
/kernel/linux/linux-5.10/kernel/ |
H A D | sys.c | 340 * This makes it possible for a setgid program to completely drop its 345 * 100% compatible with BSD. A program which uses just setgid() will be 414 * setgid() is implemented like SysV w/ SAVED_IDS 454 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | sys.c | 360 * This makes it possible for a setgid program to completely drop its 365 * 100% compatible with BSD. A program which uses just setgid() will be 434 * setgid() is implemented like SysV w/ SAVED_IDS 474 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1()
|
/third_party/rust/crates/libc/src/fuchsia/ |
H A D | mod.rs | 3625 pub fn setgid(gid: gid_t) -> ::c_int; in setgid() functions
|
/third_party/python/Modules/ |
H A D | posixmodule.c | 8281 os.setgid 8292 if (setgid(gid) < 0) in os_setgid_impl()
|