Home
last modified time | relevance | path

Searched refs:prctl (Results 1 – 25 of 114) sorted by relevance

12345

/third_party/ltp/testcases/kernel/syscalls/prctl/
Dprctl07.c43 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()
Dprctl08.c58 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()
Dprctl02.c144 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()
Dprctl04.c115 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()
Dprctl01.c19 TEST(prctl(PR_SET_PDEATHSIG, SIGUSR2)); in verify_prctl()
27 TEST(prctl(PR_GET_PDEATHSIG, &get_sig)); in verify_prctl()
Dprctl05.c38 TEST(prctl(PR_SET_NAME, tc->setname)); in verify_prctl()
45 TEST(prctl(PR_GET_NAME, buf)); in verify_prctl()
Dprctl03.c38 TEST(prctl(PR_GET_CHILD_SUBREAPER, &get_val)); in check_get_subreaper()
61 TEST(prctl(PR_SET_CHILD_SUBREAPER, 1)); in verify_prctl()
Dprctl06.c37 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/
Dtprctl.c72 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/
Dcheck_keepcaps.c104 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/
Dcap_bounds_rw.c49 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()
Dcap_bounds_r.c57 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()
Dcap_bset_inh_bounds.c53 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/
Dmusl_preinit_common.c26 .prctl = MuslMalloc(prctl),
37 .prctl = MuslMalloc(prctl),
Dmalloc_common.c149 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/
Dprctl.c29 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/
Dlinux_prctl_test.cpp22 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/
Dmount.fuse.c189 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/
Dmod.rs10 mod prctl; module
33 pub use prctl::*;
Dprctl.rs857 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/
Dthread-posix.c71 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()
Dcore-rtclock.c159 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/
Dmod.rs13 mod prctl; module
56 pub use prctl::*;
Dprctl.rs30 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/
Dunit_test_mock_fatal_message.c18 int prctl(int op, ...) in prctl() function

12345