Home
last modified time | relevance | path

Searched refs:setgid (Results 1 – 25 of 37) sorted by relevance

12

/linux/Documentation/translations/zh_CN/userspace-api/
H A Dno_new_privs.rst15 例子就是setuid/setgid控制程序和文件的能力。为了避免父程序也获得这些权限,内
29 不会授予权限去做任何没有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()
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 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/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/namespaces/
H A Dcred_change_test.c234 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 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()
/linux/tools/testing/selftests/filesystems/mount_cycle/
H A Dovermount_reparent_test.c67 if (setgid(0) || setuid(0)) in enter_userns()
H A Dnsfs_rbind_loop_test.c77 if (setgid(0) || setuid(0)) in enter_userns()
H A Dovermount_ns_file_test.c87 if (setgid(0) || setuid(0)) in enter_userns()
H A Dlocked_handle_test.c94 if (setgid(0) || setuid(0)) in enter_userns()
H A Dunmounted_tree_test.c88 if (setgid(0) || setuid(0)) in enter_userns()
H A Dmount_cover_test.c102 if (setgid(0) || setuid(0)) in enter_userns()
/linux/tools/testing/selftests/mount/
H A Dnosymfollow-test.c106 if (setgid(0) != 0) in create_and_enter_ns()
H A Dunprivileged-remount-test.c171 if (setgid(0) != 0) { in create_and_enter_userns()
/linux/tools/testing/selftests/filesystems/open_tree_ns/
H A Dopen_tree_ns_covered_test.c84 return setgid(0) || setuid(0) ? -1 : 0; in enter_userns()
/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/sparc/entry/syscalls/
H A Dsyscall.tbl65 46 32 setgid sys_setgid16
66 46 64 setgid sys_setgid
/linux/tools/testing/selftests/tty/
H A Dtty_tiocsti_test.c326 ASSERT_EQ(setgid(1000), 0); in drop_all_privs()
/linux/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c211 if (setgid(0)) in setid_userns_root()
/linux/tools/testing/selftests/filesystems/umount_propagation/
H A Dlocked_mount_test.c97 return setgid(0) || setuid(0) ? -1 : 0; in enter_userns()
/linux/tools/perf/arch/mips/entry/syscalls/
H A Dsyscall_n64.tbl114 104 n64 setgid sys_setgid
/linux/scripts/
H A Dsyscall.tbl181 144 common setgid sys_setgid
/linux/tools/scripts/
H A Dsyscall.tbl181 144 common setgid sys_setgid
/linux/tools/perf/arch/s390/entry/syscalls/
H A Dsyscall.tbl173 214 common setgid sys_setgid

12