Home
last modified time | relevance | path

Searched refs:setgid (Results 1 - 25 of 71) sorted by relevance

123

/third_party/node/lib/internal/bootstrap/switches/
H A Ddoes_own_process_state.js18 process.setgid = wrapped.setgid;
47 setgid: _setgid,
101 setgid: wrapIdSetter('Group', _setgid),
H A Ddoes_not_own_process_state.js18 process.setgid = unavailable('process.setgid()');
/kernel/liteos_a/testsuites/unittest/container/smoke/
H A DIt_user_container_003.cpp64 ret = setgid(TEST_SET_NEW_ID); in TestMap()
106 ret = setgid(TEST_SET_OLD_ID); in childFunc()
H A DIt_user_container_002.cpp100 ret = setgid(TEST_SET_NEW_ID); in childFunc()
126 ret = setgid(TEST_SET_OLD_ID); in ItUserContainer002()
/kernel/linux/linux-5.10/fs/devpts/
H A Dinode.c95 int setgid; member
253 opts->setgid = 0; in parse_mount_options()
293 opts->setgid = 1; in parse_mount_options()
411 if (opts->setgid) in devpts_show_options()
580 inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); in devpts_pty_new()
/kernel/linux/linux-6.6/fs/devpts/
H A Dinode.c77 int setgid; member
235 opts->setgid = 0; in parse_mount_options()
275 opts->setgid = 1; in parse_mount_options()
393 if (opts->setgid) in devpts_show_options()
562 inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); in devpts_pty_new()
/third_party/musl/src/unistd/
H A Dsetgid.c5 int setgid(gid_t gid) in setgid() function
/third_party/ltp/testcases/kernel/syscalls/setgid/
H A Dsetgid01.c11 * Calls setgid() with current gid and expects success.
27 GID16_CHECK(gid, setgid); in setup()
H A Dsetgid02.c10 * Test if setgid() system call sets errno to EPERM correctly.
14 * Call setgid() to set the gid to that of root. Run this test as
28 GID16_CHECK(rootpwent->pw_gid, setgid); in run()
H A Dsetgid03.c24 tst_res(TFAIL, "setgid failed to set gid to nobody gid"); in run()
32 GID16_CHECK(nobody->pw_gid, setgid); in setup()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dsetgid.c22 * @tc.desc : Call the setgid method to set the process gid
28 int result = setgid(gid); in setgid_0100()
30 t_error("%s setgid error get result is %d are not 0\n", __func__, result); in setgid_0100()
33 t_error("%s setgid failed", __func__); in setgid_0100()
/third_party/musl/libc-test/src/functionalext/supplement/misc/
H A Dgetresgid.c29 setgid(GID1000); in getresgid_0100()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/
H A D5-1.c38 if (setgid(pwd->pw_gid)) { in main()
39 perror("setgid"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/
H A D6-1.c46 if (setgid(pw->pw_gid) != 0) { in set_nonroot()
51 perror("setgid failed"); in set_nonroot()
/kernel/linux/linux-5.10/tools/testing/selftests/safesetid/
H A Dsafesetid-test.c297 if (setgid(NO_POLICY_USER) < 0) in main()
314 if (setgid(RESTRICTED_PARENT) < 0) in main()
/kernel/linux/linux-6.6/tools/testing/selftests/safesetid/
H A Dsafesetid-test.c333 if (setgid(child_gid) < 0) in test_setgid()
490 if (setgid(NO_POLICY_UGID) < 0) in main()
505 if (setgid(RESTRICTED_PARENT_UGID) < 0) in main()
/third_party/pulseaudio/src/daemon/
H A Dcaps.c65 pa_assert_se(setgid(gid) >= 0); in pa_drop_root()
/kernel/linux/linux-5.10/tools/testing/selftests/clone3/
H A Dclone3_cap_checkpoint_restore.c169 EXPECT_EQ(setgid(65534), 0) in TEST()
170 TH_LOG("Failed to setgid(65534)"); in TEST()
/kernel/linux/linux-6.6/tools/testing/selftests/clone3/
H A Dclone3_cap_checkpoint_restore.c169 EXPECT_EQ(setgid(65534), 0) in TEST()
170 TH_LOG("Failed to setgid(65534)"); in TEST()
/kernel/linux/linux-6.6/tools/testing/selftests/rlimits/
H A Drlimits-per-userns.c65 if (setgid(group) < 0) in fork_child()
66 err(EXIT_FAILURE, "(pid=%d): setgid(%d)", pid, group); in fork_child()
/third_party/cups-filters/backend/
H A Dcups-brf.c83 if (setgid(pw->pw_gid)) { in main()
/third_party/ltp/testcases/kernel/fs/fs_perms/
H A Dfs_perms.c114 if (setgid(group_id)) in testfperm()
116 "Could not setgid to %d.", group_id); in testfperm()
/third_party/ltp/testcases/kernel/syscalls/utils/
H A Dcompat_tst_16.h94 TST_CREATE_SYSCALL(setgid, gid); in SETGID()
/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()
/kernel/linux/linux-5.10/tools/testing/selftests/mount/
H A Dnosymfollow-test.c106 if (setgid(0) != 0) in create_and_enter_ns()
107 die("setgid(0) failed %s\n", strerror(errno)); in create_and_enter_ns()

Completed in 8 milliseconds

123