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

Function set_keep_capabilities

src/thread/prctl.rs:59–61  ·  view source on GitHub ↗
(enable: bool)

Source from the content-addressed store, hash-verified

57/// [`prctl(PR_SET_KEEPCAPS,…)`]: https://man7.org/linux/man-pages/man2/prctl.2.html
58#[inline]
59pub fn set_keep_capabilities(enable: bool) -> io::Result<()> {
60 unsafe { prctl_2args(PR_SET_KEEPCAPS, usize::from(enable) as *mut _) }.map(|_r| ())
61}
62
63//
64// PR_GET_NAME/PR_SET_NAME

Callers

nothing calls this directly

Calls 1

prctl_2argsFunction · 0.85

Tested by

no test coverage detected