MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / secure_computing_mode

Function secure_computing_mode

src/thread/prctl.rs:159–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157/// [the `proc` manual page]: https://man7.org/linux/man-pages/man5/proc.5.html
158#[inline]
159pub fn secure_computing_mode() -> io::Result<SecureComputingMode> {
160 unsafe { prctl_1arg(PR_GET_SECCOMP) }.and_then(TryInto::try_into)
161}
162
163const PR_SET_SECCOMP: c_int = 22;
164

Callers

nothing calls this directly

Calls 1

prctl_1argFunction · 0.85

Tested by

no test coverage detected