Home
last modified time | relevance | path

Searched refs:initgroups (Results 1 - 25 of 29) sorted by relevance

12

/third_party/node/lib/internal/bootstrap/switches/
H A Ddoes_own_process_state.js14 process.initgroups = wrapped.initgroups;
43 initgroups: _initgroups,
51 function initgroups(user, extraGroup) { function
97 initgroups,
H A Ddoes_not_own_process_state.js14 process.initgroups = unavailable('process.initgroups()');
/third_party/musl/libc-test/src/functionalext/supplement/misc/
H A Dinitgroups.c28 int rev = initgroups("usr_test", TEST_GROUP_ID); in initgroups_0100()
39 int rev = initgroups("usr_test", -1); in initgroups_0200()
/third_party/musl/src/misc/
H A Dinitgroups.c5 int initgroups(const char *user, gid_t gid) in initgroups() function
/third_party/nghttp2/src/
H A Dshrpx.h48 inline int initgroups(const char *user, gid_t group) { return 0; } in initgroups() function
H A Dshrpx_worker_process.cc81 if (initgroups(config->user.c_str(), config->gid) != 0) { in drop_privileges()
/third_party/musl/porting/uniproton/kernel/include/
H A Dgrp.h46 int initgroups(const char *, gid_t);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dgrp.h46 int initgroups(const char *, gid_t);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dgrp.h45 int initgroups(const char *, gid_t);
/third_party/musl/include/
H A Dgrp.h46 int initgroups(const char *, gid_t);
/third_party/toybox/openharmony/
H A Dsu.c88 if (initgroups(pwd->pw_name, pwd->pw_gid) || setgid(pwd->pw_uid) || setuid(pwd->pw_uid)) in xsetuser()
/third_party/libwebsockets/lib/plat/unix/
H A Dunix-caps.c218 if (initgroups(p->pw_name,
/third_party/python/Lib/test/
H A Dtest_posix.py129 @unittest.skipUnless(hasattr(posix, 'initgroups'),
130 "test needs os.initgroups()")
135 self.assertRaises(TypeError, posix.initgroups)
136 self.assertRaises(TypeError, posix.initgroups, None)
137 self.assertRaises(TypeError, posix.initgroups, 3, "foo")
138 self.assertRaises(TypeError, posix.initgroups, "foo", 3, object())
149 posix.initgroups(name, 13)
153 self.fail("Expected OSError to be raised by initgroups")
1537 elif hasattr(posix, 'initgroups'):
1539 posix.initgroups(nam
[all...]
/third_party/node/src/
H A Dnode_credentials.cc424 int rc = initgroups(user, extra_group); in InitGroups()
428 if (rc) return env->ThrowErrnoException(errno, "initgroups"); in InitGroups()
472 SetMethod(context, target, "initgroups", InitGroups); in Initialize()
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/
H A Dmod.rs730 pub fn initgroups(name: *const ::c_char, basegid: ::gid_t) -> ::c_int; in initgroups() functions
/third_party/pulseaudio/src/daemon/
H A Dmain.c298 if (initgroups(PA_SYSTEM_USER, gr->gr_gid) != 0) { in change_user()
H A Dohos_pa_main.c301 if (initgroups(PA_SYSTEM_USER, 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/rust/crates/nix/test/
H A Dtest_unistd.rs274 // Skip this test when not run as root as `initgroups()` and `setgroups()` in test_initgroups()
286 // FIXME: Test the other half of initgroups' functionality: whether the in test_initgroups()
293 initgroups(&user, group).unwrap(); in test_initgroups()
/third_party/rust/crates/nix/src/
H A Dunistd.rs1693 /// [Further reading](https://man7.org/linux/man-pages/man3/initgroups.3.html)
1701 /// `initgroups` can be used when dropping privileges from the root user to
1716 /// initgroups(&user, gid)?;
1726 pub fn initgroups(user: &CStr, group: Gid) -> Result<()> { in initgroups() functions
1735 let res = unsafe { libc::initgroups(user.as_ptr(), gid as initgroups_group_t) }; in initgroups()
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/
H A Dmod.rs1519 pub fn initgroups(name: *const ::c_char, basegid: ::gid_t) -> ::c_int; in initgroups() functions
/third_party/rust/crates/libc/src/unix/haiku/
H A Dmod.rs1681 pub fn initgroups(name: *const ::c_char, basegid: ::gid_t) -> ::c_int; in initgroups() functions
/third_party/rust/crates/libc/src/unix/nto/
H A Dmod.rs2908 pub fn initgroups(user: *const ::c_char, group: ::gid_t) -> ::c_int; in initgroups() functions
/third_party/rust/crates/libc/src/unix/linux_like/android/
H A Dmod.rs3406 pub fn initgroups(user: *const ::c_char, group: ::gid_t) -> ::c_int; in initgroups() functions
/third_party/rust/crates/libc/src/unix/solarish/
H A Dmod.rs2732 pub fn initgroups(name: *const ::c_char, basegid: ::gid_t) -> ::c_int; in initgroups() functions

Completed in 69 milliseconds

12