| /linux/Documentation/userspace-api/ |
| H A D | no_new_privs.rst | 6 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 D | no_new_privs.rst | 29 不会授予权限去做任何没有execve调用就不能做的事情。比如, setuid 和 setgid 51 setgid 和使用文件能力的二进制来提权;它需要先攻击一些没有被设置 ``no_new_privs``
|
| /linux/fs/devpts/ |
| H A D | inode.c | 77 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 D | attr.c | 21 * 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 D | cred_change_test.c | 166 * 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 D | clone3_cap_checkpoint_restore.c | 151 EXPECT_EQ(setgid(65534), 0) in TEST() 152 TH_LOG("Failed to setgid(65534)"); in TEST()
|
| /linux/tools/testing/selftests/rlimits/ |
| H A D | rlimits-per-userns.c | 65 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 D | nosymfollow-test.c | 106 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 D | unprivileged-remount-test.c | 171 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 D | safesetid-test.c | 333 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 D | validate_cap.c | 34 * Be careful just in case a setgid or setcapped copy of this in main()
|
| /linux/security/safesetid/ |
| H A D | lsm.c | 220 /* 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 D | syscall.tbl | 65 46 32 setgid sys_setgid16 66 46 64 setgid sys_setgid
|
| /linux/security/selinux/include/ |
| H A D | classmap.h | 24 "kill", "setgid", "setuid", "setpcap", "linux_immutable", \
|
| /linux/tools/perf/arch/mips/entry/syscalls/ |
| H A D | syscall_n64.tbl | 114 104 n64 setgid sys_setgid
|
| /linux/tools/perf/arch/s390/entry/syscalls/ |
| H A D | syscall.tbl | 173 214 common setgid sys_setgid
|
| /linux/scripts/ |
| H A D | syscall.tbl | 181 144 common setgid sys_setgid
|
| /linux/tools/testing/selftests/move_mount_set_group/ |
| H A D | move_mount_set_group_test.c | 101 if (setgid(0)) in create_and_enter_userns()
|
| /linux/tools/perf/arch/xtensa/entry/syscalls/ |
| H A D | syscall.tbl | 152 138 common setgid sys_setgid
|
| /linux/tools/scripts/ |
| H A D | syscall.tbl | 181 144 common setgid sys_setgid
|
| /linux/tools/perf/arch/x86/entry/syscalls/ |
| H A D | syscall_64.tbl | 118 106 common setgid sys_setgid
|
| H A D | syscall_32.tbl | 61 46 i386 setgid sys_setgid16
|
| /linux/tools/perf/arch/sh/entry/syscalls/ |
| H A D | syscall.tbl | 56 46 common setgid sys_setgid16
|
| /linux/tools/perf/arch/arm/entry/syscalls/ |
| H A D | syscall.tbl | 61 46 common setgid sys_setgid16
|
| /linux/Documentation/filesystems/ |
| H A D | affs.rst | 51 setgid[=gid]
|