Expand description
Linux prctl
wrappers.
Rustix wraps variadic/dynamic-dispatch functions like prctl
in type-safe
wrappers.
§Safety
The inner prctl
calls are dynamically typed and must be called correctly.
Structs§
SECBIT_*
.- Scalable Vector Extension vector length configuration.
- Zero means addresses that are passed for the purpose of being dereferenced by the kernel must be untagged.
Enums§
- Linux per-thread capability.
PR_SCHED_CORE_SCOPE_*
.SECCOMP_MODE_*
.- Value of the fast switch flag controlling system calls user dispatch mechanism without the need to issue a syscall.
Constants§
- Allow system calls to be executed.
- Block system calls from executing.
Functions§
- Get the
securebits
flags of the calling thread. - Check if the specified capability is in the ambient set.
- Check if the specified capability is in the calling thread’s capability bounding set.
- Remove all capabilities from the ambient set.
- Add or remove the specified capability to the ambient set.
- Get core scheduling cookie of a process.
- Create unique core scheduling cookie.
- Get the current tagged address mode for the calling thread.
- Get the
current
timer slack value of the calling thread. - Disable Syscall User Dispatch mechanism.
- Set the state of the
THP disable
flag for the calling thread. - Enable Syscall User Dispatch mechanism.
- Get the
clear_child_tid
address set byset_tid_address
andclone
’sCLONE_CHILD_CLEARTID
flag. - Get the current state of the calling thread’s
keep capabilities
flag. - Get the name of the calling thread.
- Get the value of the
no_new_privs
attribute for the calling thread. - Pull core scheduling cookie from a process.
- Push core scheduling cookie to a process.
- If the calling thread has the
Capability::SetPermittedCapabilities
capability within its user namespace, then drop the specified capability from the thread’s capability bounding set. - Securely reset the thread’s pointer authentication keys to fresh random values generated by the kernel.
- Set the
securebits
flags of the calling thread. - Controls support for passing tagged user-space addresses to the kernel.
- Sets the
current
timer slack value for the calling thread. - Set the state of the calling thread’s
keep capabilities
flag. - Set the name of the calling thread.
- Set the calling thread’s
no_new_privs
attribute. - Set the secure computing mode for the calling thread, to limit the available system calls.
- Configure the thread’s vector length of Scalable Vector Extension.
- Get the thread’s current SVE vector length configuration.
- Get the current setting of the
THP disable
flag for the calling thread.