Home
last modified time | relevance | path

Searched full:setuid (Results 1 – 25 of 58) sorted by relevance

123

/linux/Documentation/userspace-api/
H A Dno_new_privs.rst6 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 Dno_new_privs.rst29 不会授予权限去做任何没有execve调用就不能做的事情。比如, setuid 和 setgid
42 适当权限的任务仍然可以调用 ``setuid(2)`` 并接收 SCM_RIGHTS 数据报。
50 运行的程序都设置了 ``no_new_privs`` ,那么那个 uid 将无法通过攻击 setuid
/linux/tools/testing/selftests/namespaces/
H A Dcred_change_test.c27 * 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 Dinode.c76 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 Dcommoncap.c34 * 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 Drlimits-per-userns.c67 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 Dnosymfollow-test.c108 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 Dunprivileged-remount-test.c175 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 Dsafesetid-test.c277 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 Dipv6_flowlabel_mgr.c328 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 Dsimcall-iss.h34 #define SYS_time 23 /* 13 - setuid */
/linux/arch/powerpc/kernel/
H A Ddexcr.c102 * a setuid process's hash check instructions in set_dexcr_prctl()
/linux/samples/seccomp/
H A Duser-trap.c232 if (setuid(1000) < 0) { in main()
233 perror("setuid"); in main()
/linux/tools/perf/arch/sparc/entry/syscalls/
H A Dsyscall.tbl37 23 32 setuid sys_setuid16
38 23 64 setuid sys_setuid
/linux/include/uapi/linux/
H A Dsecurebits.h25 /* When set, setuid to/from uid 0 does not trigger capability-"fixup".
/linux/tools/testing/selftests/cgroup/
H A Dtest_cpuset.c25 if (setuid(TEST_UID)) in do_migration_fn()
41 if (setuid(TEST_UID)) in do_controller_fn()
/linux/tools/testing/selftests/clone3/
H A Dclone3_cap_checkpoint_restore.c153 ASSERT_EQ(setuid(65534), 0); in TEST()
/linux/Documentation/filesystems/fuse/
H A Dfuse.rst222 program (fusermount) is needed, which is installed setuid root.
247 setuid and setgid bits when executing programs. To ensure this
/linux/kernel/
H A Duser.c84 * when changing user ID's (ie setuid() and friends).
/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.tbl113 103 n64 setuid sys_setuid
/linux/tools/perf/arch/s390/entry/syscalls/
H A Dsyscall.tbl172 213 common setuid sys_setuid
/linux/scripts/
H A Dsyscall.tbl183 146 common setuid sys_setuid
/linux/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c104 if (setuid(0)) in create_and_enter_userns()
/linux/tools/perf/arch/xtensa/entry/syscalls/
H A Dsyscall.tbl150 136 common setuid sys_setuid

123