Home
last modified time | relevance | path

Searched refs:setgid (Results 51 - 74 of 74) sorted by relevance

123

/third_party/ltp/testcases/kernel/fs/read_all/
H A Dread_all.c288 TEST(setgid(nobody->pw_gid)); in maybe_drop_privs()
/third_party/musl/libc-test/src/api/
H A Dunistd.c314 {int(*p)(gid_t) = setgid;} in f()
/third_party/toybox/toys/pending/
H A Dtcpsvd.c290 setgid(gid); in tcpsvd_main()
/third_party/nghttp2/src/
H A Dshrpx_worker_process.cc87 if (setgid(config->gid) != 0) { in drop_privileges()
/third_party/node/deps/uv/src/unix/
H A Dprocess.c365 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 Dos_unix.c351 setgid(AID_WIFI); in os_program_init()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
H A Dos_unix.c359 setgid(AID_WIFI); in os_program_init()
/third_party/libuv/src/unix/
H A Dprocess.c386 if ((options->flags & UV_PROCESS_SETGID) && setgid(options->gid)) in uv__process_child_init()
/third_party/pulseaudio/src/daemon/
H A Dmain.c306 if ((r = setgid(gr->gr_gid)) >= 0) in change_user()
H A Dohos_pa_main.c309 if ((r = setgid(gr->gr_gid)) >= 0) in change_user()
/third_party/toybox/lib/
H A Dxwrap.c726 if (initgroups(pwd->pw_name, pwd->pw_gid) || setgid(pwd->pw_uid) in xsetuser()
/third_party/libuv/test/
H A Dtest-spawn.c1519 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 Dmount_setattr_test.c213 if (setgid(0)) in create_and_enter_userns()
/third_party/ltp/lib/
H A Dsafe_macros.c352 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 Dunistd.rs1474 /// 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 Dmisc.c269 /* 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 Dmod.rs1722 pub fn setgid(gid: ::gid_t) -> ::c_int; in setgid() functions
/third_party/rust/crates/libc/src/unix/
H A Dmod.rs920 pub fn setgid(gid: gid_t) -> ::c_int; in setgid() functions
/third_party/popt/src/
H A Dpopt.c510 rc = setgid(getgid()); in execCommand()
/third_party/python/Lib/test/
H A Dtest_os.py2321 @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 Dsys.c340 * 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 Dsys.c360 * 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 Dmod.rs3625 pub fn setgid(gid: gid_t) -> ::c_int; in setgid() functions
/third_party/python/Modules/
H A Dposixmodule.c8281 os.setgid
8292 if (setgid(gid) < 0) in os_setgid_impl()

Completed in 84 milliseconds

123