Module prctl

Source
Expand description

Interfaces to prctl() commands that don’t deal with capabilities.

Structs§

MDWEFlags
Flags controlling memory-deny-write-execute behavior.
Secbits
Represents the thread’s securebits flags.
SpecFlags
Flags indicating the state of the “speculation misfeature”. See get_speculation_ctrl() and set_speculation_ctrl().

Enums§

MceKill
The possible memory corruption kill policies.
Ptracer
A value that can be passed to set_ptracer().
SpecVariant
The different types of speculation misfeatures that can be passed to get_speculation_ctrl() and set_speculation_ctrl().

Functions§

disable_perf_events
Disable all performance counters attached to the current process.
enable_perf_events
Enable all performance counters attached to the current process.
get_dumpable
Get the “dumpable” flag for the current process.
get_io_flusher
Get the “I/O flusher” flag for the current process.
get_keepcaps
Get the “keep capabilities” flag of the current thread.
get_mce_kill
Get the current thread’s memory corruption kill policy.
get_mdwe
Get the memory-deny-write execute flags.
get_namestd
Get the name of the current thread.
get_no_new_privs
Get the no-new-privileges flag of the current thread.
get_pdeathsig
Get the parent-death signal of the current process.
get_seccomp
Get the secure computing mode of the current thread.
get_securebits
Get the “securebits” flags of the current thread.
get_speculation_ctrl
Get the current state of the “speculation misfeature”.
get_subreaper
Get the “child subreaper” flag for the current process.
get_thp_disable
Get the status of the “THP” disable flag.
get_tid_address
Get this thread’s clear_child_tid address.
get_timerslack
Get the current timer slack value.
set_dumpable
Set the “dumpable” flag for the current process.
set_io_flusher
Set the “I/O flusher” flag for the current process. (Linux 5.6+)
set_keepcaps
Set the “keep capabilities” flag of the current thread.
set_mce_kill
Set the current thread’s memory corruption kill policy.
set_mdwe
Set the memory-deny-write execute flags.
set_namestd
Set the name of the current thread.
set_no_new_privs
Enable the no-new-privileges flag on the current thread.
set_pdeathsig
Set the parent-death signal of the current process.
set_ptracer
Set the calling process’s “ptracer process ID”.
set_seccomp_strict
Enable strict secure computing mode.
set_securebits
Set the “securebits” flags of the current thread.
set_speculation_ctrl
Set the per-thread state of the “speculation misfeature”.
set_subreaper
Set the “child subreaper” flag for the current process.
set_thp_disable
Set the status of the “THP” disable flag.
set_timerslack
Set the current timer slack value.