/third_party/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl07.c | 43 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, cap, 0, 0, 0)); in check_cap_raise() 69 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, cap, 0, 0, 0)); in check_cap_is_set() 82 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_LOWER, cap, 0, 0, 0)); in check_cap_lower() 117 prctl(PR_SET_SECUREBITS, SECBIT_NO_CAP_AMBIENT_RAISE); in verify_prctl() 119 prctl(PR_SET_SECUREBITS, 0); in verify_prctl() 137 prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0); in verify_prctl() 139 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0, 0)); in verify_prctl() 156 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0, 0)); in setup()
|
D | prctl08.c | 58 TEST(prctl(PR_GET_TIMERSLACK)); in check_get_timerslack() 78 current_value = prctl(PR_GET_TIMERSLACK); in check_inherit_timerslack() 79 prctl(PR_SET_TIMERSLACK, 0); in check_inherit_timerslack() 80 default_value = prctl(PR_GET_TIMERSLACK); in check_inherit_timerslack() 97 TEST(prctl(PR_SET_TIMERSLACK, tc->setvalue)); in verify_prctl() 115 TEST(prctl(PR_GET_TIMERSLACK)); in setup()
|
D | prctl02.c | 144 TEST(prctl(tc->option, *tc->arg2, *tc->arg3, 0, 0)); in verify_prctl() 165 TEST(prctl(PR_GET_SECCOMP)); in setup() 169 TEST(prctl(PR_GET_NO_NEW_PRIVS, 0, 0, 0, 0)); in setup() 173 TEST(prctl(PR_GET_THP_DISABLE, 0, 0, 0, 0)); in setup() 177 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0, 0)); in setup() 181 TEST(prctl(PR_GET_SPECULATION_CTRL, 0, 0, 0, 0)); in setup()
|
D | prctl04.c | 115 TEST(prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT)); in check_strict_mode() 126 prctl(PR_GET_SECCOMP); in check_strict_mode() 151 TEST(prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &strict)); in check_filter_mode() 166 prctl(PR_GET_SECCOMP); in check_filter_mode() 211 TEST(prctl(PR_GET_SECCOMP)); in setup()
|
D | prctl01.c | 19 TEST(prctl(PR_SET_PDEATHSIG, SIGUSR2)); in verify_prctl() 27 TEST(prctl(PR_GET_PDEATHSIG, &get_sig)); in verify_prctl()
|
D | prctl05.c | 38 TEST(prctl(PR_SET_NAME, tc->setname)); in verify_prctl() 45 TEST(prctl(PR_GET_NAME, buf)); in verify_prctl()
|
D | prctl03.c | 38 TEST(prctl(PR_GET_CHILD_SUBREAPER, &get_val)); in check_get_subreaper() 61 TEST(prctl(PR_SET_CHILD_SUBREAPER, 1)); in verify_prctl()
|
D | prctl06.c | 37 TEST(prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in do_prctl() 96 TEST(prctl(PR_GET_NO_NEW_PRIVS, 0, 0, 0, 0)); in setup()
|
/third_party/ltp/testcases/kernel/mce-test/tsrc/ |
D | tprctl.c | 72 err = prctl(PR_MCE_KILL_GET, 0, 0, 0, 0, 0); in main() 77 if (prctl(PR_MCE_KILL, PR_MCE_KILL_SET, PR_MCE_KILL_LATE, 0, 0, 0) < 0) in main() 80 if (prctl(PR_MCE_KILL, PR_MCE_KILL_SET, PR_MCE_KILL_EARLY, 0, 0, 0) < 0) in main() 83 err = prctl(PR_MCE_KILL_GET, 0, 0, 0,0,0); in main() 88 if (prctl(PR_MCE_KILL, PR_MCE_KILL_CLEAR, 0, 0,0,0) < 0) in main() 90 err = prctl(PR_MCE_KILL_GET, 0, 0, 0, 0, 0); in main()
|
/third_party/ltp/testcases/kernel/security/securebits/ |
D | check_keepcaps.c | 104 ret = prctl(PR_GET_KEEPCAPS); in main() 119 ret = prctl(PR_SET_KEEPCAPS, 1); in main() 124 ret = prctl(PR_GET_KEEPCAPS); in main() 131 ret = prctl(PR_GET_SECUREBITS); in main() 132 ret = prctl(PR_SET_SECUREBITS, ret | SECBIT_KEEP_CAPS); in main() 137 ret = prctl(PR_GET_KEEPCAPS); in main()
|
/third_party/ltp/testcases/kernel/security/cap_bound/ |
D | cap_bounds_rw.c | 49 ret = prctl(PR_CAPBSET_READ, i); in check_remaining_caps() 69 ret = prctl(PR_CAPBSET_READ, i); in check_remaining_caps() 103 ret = prctl(PR_CAPBSET_READ, -1); in main() 120 ret = prctl(PR_CAPBSET_DROP, max(INSANE, CAP_LAST_CAP + 1)); in main() 134 ret = prctl(PR_CAPBSET_DROP, i); in main()
|
D | cap_bounds_r.c | 57 ret = prctl(PR_CAPBSET_READ, i); in main() 72 ret = prctl(PR_CAPBSET_READ, -1); in main() 90 ret = prctl(PR_CAPBSET_READ, max(INSANE, CAP_LAST_CAP + 1)); in main()
|
D | cap_bset_inh_bounds.c | 53 ret = prctl(PR_CAPBSET_READ, CAP_SYS_ADMIN); in main() 82 ret = prctl(PR_CAPBSET_DROP, CAP_SYS_ADMIN); in main()
|
/third_party/musl/porting/linux/user/src/hook/ |
D | musl_preinit_common.c | 26 .prctl = MuslMalloc(prctl), 37 .prctl = MuslMalloc(prctl),
|
D | malloc_common.c | 149 int prctl(int option, ...) in prctl() function 159 return dispatch_table->prctl(option, x[0], x[1], x[2], x[3]); in prctl() 161 return MuslMalloc(prctl)(option, x[0], x[1], x[2], x[3]); in prctl()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
D | prctl.c | 29 int result = prctl(PR_SET_NAME, (unsigned long)"TestThread"); in prctl_0100() 32 result = prctl(PR_GET_NAME, (unsigned long)buf); in prctl_0100()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/linux_gtest/ |
D | linux_prctl_test.cpp | 22 int setResult = prctl(PR_SET_NAME, static_cast<const void*>(threadName)); 26 int getResult = prctl(PR_GET_NAME, static_cast<void*>(buffer));
|
/third_party/libfuse/util/ |
D | mount.fuse.c | 189 if (prctl(PR_SET_SECUREBITS, in drop_and_lock_capabilities() 203 int cap_status = prctl(PR_CAPBSET_READ, cap); in drop_and_lock_capabilities() 217 if (prctl(PR_CAPBSET_DROP, cap) == -1) { in drop_and_lock_capabilities() 228 if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0) == -1) { in drop_and_lock_capabilities() 398 if (prctl(PR_SET_SECUREBITS, in main()
|
/third_party/rust/crates/rustix/src/thread/ |
D | mod.rs | 10 mod prctl; module 33 pub use prctl::*;
|
D | prctl.rs | 857 syscalls::prctl( in enable_syscall_user_dispatch() 914 syscalls::prctl( in core_scheduling_cookie() 936 syscalls::prctl( in create_core_scheduling_cookie() 958 syscalls::prctl( in push_core_scheduling_cookie() 980 syscalls::prctl( in pull_core_scheduling_cookie()
|
/third_party/pulseaudio/src/pulsecore/ |
D | thread-posix.c | 71 prctl(PR_SET_NAME, t->name); in internal_thread_func() 184 prctl(PR_SET_NAME, name); in pa_thread_set_name() 197 if (prctl(PR_GET_NAME, t->name) >= 0) in pa_thread_get_name()
|
D | core-rtclock.c | 159 if ((slack_ns = prctl(PR_GET_TIMERSLACK, 0, 0, 0, 0)) < 0) { in pa_rtclock_hrtimer_enable() 171 if (prctl(PR_SET_TIMERSLACK, slack_ns, 0, 0, 0) < 0) { in pa_rtclock_hrtimer_enable()
|
/third_party/rust/crates/rustix/src/process/ |
D | mod.rs | 13 mod prctl; module 56 pub use prctl::*;
|
D | prctl.rs | 30 syscalls::prctl(option, NULL, NULL, NULL, NULL) in prctl_1arg() 36 syscalls::prctl(option, arg2, NULL, NULL, NULL) in prctl_2args() 45 syscalls::prctl(option, arg2, arg3, ptr::null_mut(), ptr::null_mut()) in prctl_3args() 679 syscalls::prctl( in set_auxiliary_vector() 752 syscalls::prctl( in configure_virtual_memory_map() 1111 syscalls::prctl( in set_virtual_memory_region_name()
|
/third_party/musl/libc-test/src/functionalext/unittest/ |
D | unit_test_mock_fatal_message.c | 18 int prctl(int op, ...) in prctl() function
|