Home
last modified time | relevance | path

Searched refs:PR_SET_NO_NEW_PRIVS (Results 1 – 23 of 23) sorted by relevance

/linux-6.15/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c76 #ifndef PR_SET_NO_NEW_PRIVS
77 #define PR_SET_NO_NEW_PRIVS 38 macro
380 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
450 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
487 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
521 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
544 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
569 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
586 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
606 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
[all …]
H A Dseccomp_benchmark.c220 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in main()
/linux-6.15/samples/seccomp/
H A Dbpf-fancy.c23 #ifndef PR_SET_NO_NEW_PRIVS
24 #define PR_SET_NO_NEW_PRIVS 38 macro
88 if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in main()
H A Dbpf-direct.c54 #ifndef PR_SET_NO_NEW_PRIVS
55 #define PR_SET_NO_NEW_PRIVS 38 macro
150 if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in install_filter()
H A Ddropper.c49 if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in install_filter()
/linux-6.15/tools/testing/selftests/landlock/
H A Dsandbox-and-launch.c46 if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in main()
H A Daudit_test.c90 EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in TEST_F()
242 EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in TEST_F()
371 EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in TEST_F()
577 prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
H A Dbase_test.c265 ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in TEST()
427 ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in TEST()
475 EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in TEST()
H A Dcommon.h204 ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in enforce_ruleset()
H A Dptrace_test.c41 EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in create_domain()
H A Dscoped_abstract_unix_test.c43 EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in create_fs_domain()
H A Dfs_test.c565 ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in TEST_F_FORK()
2549 ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in TEST_F_FORK()
/linux-6.15/Documentation/translations/zh_CN/userspace-api/
H A Dno_new_privs.rst35 prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
H A Dseccomp_filter.rst63 在调用之前,进程必须调用 ``prctl(PR_SET_NO_NEW_PRIVS, 1)`` 或者在它的
/linux-6.15/tools/perf/bench/
H A Dsched-seccomp-notify.c107 prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in bench_sched_seccomp_notify()
/linux-6.15/tools/include/uapi/linux/
H A Dprctl.h175 #define PR_SET_NO_NEW_PRIVS 38 macro
/linux-6.15/include/uapi/linux/
H A Dprctl.h175 #define PR_SET_NO_NEW_PRIVS 38 macro
/linux-6.15/tools/perf/trace/beauty/include/uapi/linux/
H A Dprctl.h175 #define PR_SET_NO_NEW_PRIVS 38 macro
/linux-6.15/Documentation/userspace-api/
H A Dno_new_privs.rst34 prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
H A Dseccomp_filter.rst71 Prior to use, the task must call ``prctl(PR_SET_NO_NEW_PRIVS, 1)`` or
H A Dlandlock.rst201 if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
/linux-6.15/samples/landlock/
H A Dsandboxer.c513 if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in main()
/linux-6.15/kernel/
H A Dsys.c2635 case PR_SET_NO_NEW_PRIVS: in SYSCALL_DEFINE5()