| /linux/Documentation/userspace-api/ |
| H A D | no_new_privs.rst | 6 its parent did not have. The most obvious examples are setuid/setgid 13 a program is setuid. 27 been done without the execve call. For example, the setuid and setgid 43 ``setuid(2)`` and receive SCM_RIGHTS datagrams. 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 42 适当权限的任务仍然可以调用 ``setuid(2)`` 并接收 SCM_RIGHTS 数据报。 50 运行的程序都设置了 ``no_new_privs`` ,那么那个 uid 将无法通过攻击 setuid,
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | cred_change_test.c | 27 * Test setuid() in a user namespace properly swaps active references. 28 * Create a user namespace with multiple UIDs mapped, then setuid() between them. 96 * Perform multiple setuid() calls. in TEST() 97 * Each setuid() triggers commit_creds() which should properly in TEST() 102 if (setuid(target_uid) < 0) { in TEST() 162 TH_LOG("setuid() correctly preserved active references (no leak)"); in TEST() 496 setuid(0); in TEST() 638 * Mix setuid, setgid, setreuid, setregid, setresuid, setresgid. in TEST() 643 setuid(change_count % 50); in TEST()
|
| /linux/fs/devpts/ |
| H A D | inode.c | 76 int setuid; member 235 opts->setuid = 1; in devpts_parse_param() 317 fsi->mount_opts.setuid = new->mount_opts.setuid; in devpts_reconfigure() 341 if (opts->setuid) in devpts_show_options() 515 inode->i_uid = opts->setuid ? opts->uid : current_fsuid(); in devpts_pty_new()
|
| /linux/security/ |
| H A D | commoncap.c | 34 * If a non-root user executes a setuid-root binary in 37 * the file capabilities to be applied, and the setuid-root 48 printk(KERN_INFO "warning: `%s' has both setuid-root and" in warn_setuid_and_fcaps_mixed() 838 * for a setuid root binary run by a non-root user. Do set it in handle_privileged_root() 882 * 2) something prevented setuid root getting all caps 883 * 3) non-setuid root gets fcaps 884 * 4) non-setuid root gets ambient 1093 * a process after a call to setuid, setreuid, or setresuid. 1112 * calls setuid() and switches away from uid==0. Both permitted and 1115 * of its privilege. The call to setuid(! [all...] |
| /linux/tools/testing/selftests/rlimits/ |
| H A D | rlimits-per-userns.c | 67 if (setuid(user) < 0) in fork_child() 68 err(EXIT_FAILURE, "(pid=%d): setuid(%d)", pid, user); in fork_child()
|
| /linux/tools/testing/selftests/mount/ |
| H A D | nosymfollow-test.c | 108 if (setuid(0) != 0) in create_and_enter_ns() 109 die("setuid(0) failed %s\n", strerror(errno)); in create_and_enter_ns()
|
| H A D | unprivileged-remount-test.c | 175 if (setuid(0) != 0) { in create_and_enter_userns() 176 die("setuid(0) failed %s\n", in create_and_enter_userns()
|
| /linux/tools/testing/selftests/safesetid/ |
| H A D | safesetid-test.c | 277 if (setuid(child_uid) < 0) in test_setuid() 492 if (setuid(NO_POLICY_UGID) < 0) in main() 507 if (setuid(RESTRICTED_PARENT_UGID) < 0) in main()
|
| /linux/tools/testing/selftests/net/ |
| H A D | ipv6_flowlabel_mgr.c | 328 if (setuid(USHRT_MAX)) in TEST_F() 333 TH_LOG("child unexpectedly got label after setuid"); in TEST_F() 341 "setuid(USHRT_MAX) unavailable (no CAP_SETUID or uid unmapped)"); in TEST_F()
|
| /linux/arch/xtensa/platforms/iss/include/platform/ |
| H A D | simcall-iss.h | 34 #define SYS_time 23 /* 13 - setuid */
|
| /linux/arch/powerpc/kernel/ |
| H A D | dexcr.c | 102 * a setuid process's hash check instructions in set_dexcr_prctl()
|
| /linux/samples/seccomp/ |
| H A D | user-trap.c | 232 if (setuid(1000) < 0) { in main() 233 perror("setuid"); in main()
|
| /linux/tools/perf/arch/sparc/entry/syscalls/ |
| H A D | syscall.tbl | 37 23 32 setuid sys_setuid16 38 23 64 setuid sys_setuid
|
| /linux/include/uapi/linux/ |
| H A D | securebits.h | 25 /* When set, setuid to/from uid 0 does not trigger capability-"fixup".
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | test_cpuset.c | 25 if (setuid(TEST_UID)) in do_migration_fn() 41 if (setuid(TEST_UID)) in do_controller_fn()
|
| /linux/tools/testing/selftests/clone3/ |
| H A D | clone3_cap_checkpoint_restore.c | 153 ASSERT_EQ(setuid(65534), 0); in TEST()
|
| /linux/Documentation/filesystems/fuse/ |
| H A D | fuse.rst | 222 program (fusermount) is needed, which is installed setuid root. 247 setuid and setgid bits when executing programs. To ensure this
|
| /linux/kernel/ |
| H A D | user.c | 84 * when changing user ID's (ie setuid() and friends).
|
| /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 | 113 103 n64 setuid sys_setuid
|
| /linux/tools/perf/arch/s390/entry/syscalls/ |
| H A D | syscall.tbl | 172 213 common setuid sys_setuid
|
| /linux/scripts/ |
| H A D | syscall.tbl | 183 146 common setuid sys_setuid
|
| /linux/tools/testing/selftests/move_mount_set_group/ |
| H A D | move_mount_set_group_test.c | 104 if (setuid(0)) in create_and_enter_userns()
|
| /linux/tools/perf/arch/xtensa/entry/syscalls/ |
| H A D | syscall.tbl | 150 136 common setuid sys_setuid
|