secure_computing_mode

Function secure_computing_mode 

Source
pub fn secure_computing_mode() -> Result<SecureComputingMode>
Expand description

Get the secure computing mode of the calling thread.

If the caller is not in secure computing mode, this returns SecureComputingMode::Disabled. If the caller is in strict secure computing mode, then this call will cause a Signal::KILL signal to be sent to the process. If the caller is in filter mode, and this system call is allowed by the seccomp filters, it returns SecureComputingMode::Filter; otherwise, the process is killed with a Signal::KILL signal.

Since Linux 3.8, the Seccomp field of the /proc/[pid]/status file provides a method of obtaining the same information, without the risk that the process is killed; see the proc manual page.

§References