| /linux/Documentation/translations/zh_CN/userspace-api/ |
| H A D | no_new_privs.rst | 15 例子就是setuid/setgid控制程序和文件的能力。为了避免父程序也获得这些权限,内 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() 320 fsi->mount_opts.setgid = new->mount_opts.setgid; in devpts_reconfigure() 346 if (opts->setgid) in devpts_show_options() 518 inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); in devpts_pty_new()
|
| /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/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/namespaces/ |
| H A D | cred_change_test.c | 234 if (setgid(target_gid) < 0) { in TEST() 497 setgid(0); 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()
|
| /linux/tools/testing/selftests/filesystems/mount_cycle/ |
| H A D | overmount_reparent_test.c | 67 if (setgid(0) || setuid(0)) in enter_userns()
|
| H A D | nsfs_rbind_loop_test.c | 77 if (setgid(0) || setuid(0)) in enter_userns()
|
| H A D | overmount_ns_file_test.c | 87 if (setgid(0) || setuid(0)) in enter_userns()
|
| H A D | locked_handle_test.c | 94 if (setgid(0) || setuid(0)) in enter_userns()
|
| H A D | unmounted_tree_test.c | 88 if (setgid(0) || setuid(0)) in enter_userns()
|
| H A D | mount_cover_test.c | 102 if (setgid(0) || setuid(0)) in enter_userns()
|
| /linux/tools/testing/selftests/mount/ |
| H A D | nosymfollow-test.c | 106 if (setgid(0) != 0) in create_and_enter_ns()
|
| H A D | unprivileged-remount-test.c | 171 if (setgid(0) != 0) { in create_and_enter_userns()
|
| /linux/tools/testing/selftests/filesystems/open_tree_ns/ |
| H A D | open_tree_ns_covered_test.c | 84 return setgid(0) || setuid(0) ? -1 : 0; in enter_userns()
|
| /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/sparc/entry/syscalls/ |
| H A D | syscall.tbl | 65 46 32 setgid sys_setgid16 66 46 64 setgid sys_setgid
|
| /linux/tools/testing/selftests/tty/ |
| H A D | tty_tiocsti_test.c | 326 ASSERT_EQ(setgid(1000), 0); in drop_all_privs()
|
| /linux/tools/testing/selftests/filesystems/binderfs/ |
| H A D | binderfs_test.c | 211 if (setgid(0)) in setid_userns_root()
|
| /linux/tools/testing/selftests/filesystems/umount_propagation/ |
| H A D | locked_mount_test.c | 97 return setgid(0) || setuid(0) ? -1 : 0; in enter_userns()
|
| /linux/tools/perf/arch/mips/entry/syscalls/ |
| H A D | syscall_n64.tbl | 114 104 n64 setgid sys_setgid
|
| /linux/scripts/ |
| H A D | syscall.tbl | 181 144 common setgid sys_setgid
|
| /linux/tools/scripts/ |
| H A D | syscall.tbl | 181 144 common setgid sys_setgid
|
| /linux/tools/perf/arch/s390/entry/syscalls/ |
| H A D | syscall.tbl | 173 214 common setgid sys_setgid
|