Expand description
Module provides safe abstraction over the prctl interface.
Provided functions map to a single prctl()
call, although some of them
may be usable only on a specific architecture or only with root
privileges. All known enums that may be used as parameters are
provided in this crate.
Each function provides result which will be Err(errno)
in case the
prctl() call fails.
To run tests requiring root privileges, enable feature “root_test”.
Enums§
- Prctl
Cap - Prctl
Endian - Prctl
Fpemu - PrctlMM
- Prctl
MceKill - Prctl
Seccomp - Prctl
Securebits - Prctl
Timing - Prctl
Tsc - Prctl
Unalign
Functions§
- clear_
mce_ kill - disable_
perf_ events - drop_
capability - enable_
perf_ events - get_
child_ subreaper - get_
death_ signal - get_
dumpable - get_
endian - get_
fpemu - get_
keep_ capabilities - get_
mce_ kill - get_
name - get_
no_ new_ privileges - get_
seccomp - get_
securebits - get_
thp_ disable - get_
timer_ slack - get_
timing - get_tsc
- get_
unaligned_ access - read_
capability - set_
child_ subreaper - set_
death_ signal - set_
dumpable - set_
endian - set_
fpemu - set_
keep_ capabilities - set_
mce_ kill - set_mm
- set_
name - set_
no_ new_ privileges - set_
seccomp_ strict - set_
securebits - set_
thp_ disable - set_
timer_ slack - set_
timing - set_tsc
- set_
unaligned_ access