Home
last modified time | relevance | path

Searched full:setgid (Results 1 – 25 of 42) sorted by relevance

12

/linux/Documentation/userspace-api/
H A Dno_new_privs.rst6 its parent did not have. The most obvious examples are setuid/setgid
27 been done without the execve call. For example, the setuid and setgid
55 escalate its privileges by directly attacking setuid, setgid, and
/linux/Documentation/translations/zh_CN/userspace-api/
H A Dno_new_privs.rst29 不会授予权限去做任何没有execve调用就不能做的事情。比如, setuid 和 setgid
51 setgid 和使用文件能力的二进制来提权;它需要先攻击一些没有被设置 ``no_new_privs``
/linux/fs/devpts/
H A Dinode.c77 int setgid; member
239 opts->setgid = 1; in devpts_parse_param()
318 fsi->mount_opts.setgid = new->mount_opts.setgid; in devpts_reconfigure()
344 if (opts->setgid) in devpts_show_options()
516 inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); in devpts_pty_new()
/linux/fs/
H A Dattr.c21 * setattr_should_drop_sgid - determine whether the setgid bit needs to be
26 * This function determines whether the setgid bit needs to be removed.
27 * We retain backwards compatibility and require setgid bit to be removed
31 * Return: ATTR_KILL_SGID if setgid bit needs to be removed, 0 otherwise.
56 * setgid bit needs to be removed ATTR_KILL_SGID is returned. If both
213 /* Also check the setgid bit! */ in setattr_prepare()
/linux/tools/testing/selftests/namespaces/
H A Dcred_change_test.c166 * Test setgid() in a user namespace properly handles active references.
231 /* Perform multiple setgid() calls */ in TEST()
234 if (setgid(target_gid) < 0) { in TEST()
277 TH_LOG("setgid() correctly preserved active references (no leak)"); in TEST()
497 setgid(0); in TEST()
638 * Mix setuid, setgid, setreuid, setregid, setresuid, setresgid. in TEST()
646 setgid(change_count % 50); in TEST()
/linux/tools/testing/selftests/clone3/
H A Dclone3_cap_checkpoint_restore.c151 EXPECT_EQ(setgid(65534), 0) in TEST()
152 TH_LOG("Failed to setgid(65534)"); in TEST()
/linux/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()
/linux/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()
H A Dunprivileged-remount-test.c171 if (setgid(0) != 0) { in create_and_enter_userns()
172 die ("setgid(0) failed %s\n", in create_and_enter_userns()
/linux/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()
/linux/tools/testing/selftests/capabilities/
H A Dvalidate_cap.c34 * Be careful just in case a setgid or setcapped copy of this in main()
/linux/security/safesetid/
H A Dlsm.c220 /* Do nothing if there are no setgid restrictions for our old RGID. */ in safesetid_task_fix_setgid()
243 /* Do nothing if there are no setgid restrictions for our old RGID. */ in safesetid_task_fix_setgroups()
/linux/tools/perf/arch/sparc/entry/syscalls/
H A Dsyscall.tbl65 46 32 setgid sys_setgid16
66 46 64 setgid sys_setgid
/linux/security/selinux/include/
H A Dclassmap.h24 "kill", "setgid", "setuid", "setpcap", "linux_immutable", \
/linux/tools/perf/arch/mips/entry/syscalls/
H A Dsyscall_n64.tbl114 104 n64 setgid sys_setgid
/linux/tools/perf/arch/s390/entry/syscalls/
H A Dsyscall.tbl173 214 common setgid sys_setgid
/linux/scripts/
H A Dsyscall.tbl181 144 common setgid sys_setgid
/linux/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c101 if (setgid(0)) in create_and_enter_userns()
/linux/tools/perf/arch/xtensa/entry/syscalls/
H A Dsyscall.tbl152 138 common setgid sys_setgid
/linux/tools/scripts/
H A Dsyscall.tbl181 144 common setgid sys_setgid
/linux/tools/perf/arch/x86/entry/syscalls/
H A Dsyscall_64.tbl118 106 common setgid sys_setgid
H A Dsyscall_32.tbl61 46 i386 setgid sys_setgid16
/linux/tools/perf/arch/sh/entry/syscalls/
H A Dsyscall.tbl56 46 common setgid sys_setgid16
/linux/tools/perf/arch/arm/entry/syscalls/
H A Dsyscall.tbl61 46 common setgid sys_setgid16
/linux/Documentation/filesystems/
H A Daffs.rst51 setgid[=gid]

12