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

Function get_keep_capabilities

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

Source from the content-addressed store, hash-verified

44/// [`prctl(PR_GET_KEEPCAPS,…)`]: https://man7.org/linux/man-pages/man2/prctl.2.html
45#[inline]
46pub fn get_keep_capabilities() -> io::Result<bool> {
47 unsafe { prctl_1arg(PR_GET_KEEPCAPS) }.map(|r| r != 0)
48}
49
50const PR_SET_KEEPCAPS: c_int = 8;
51

Callers

nothing calls this directly

Calls 1

prctl_1argFunction · 0.85

Tested by

no test coverage detected