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

Function set_capabilities_secure_bits

src/thread/prctl.rs:570–572  ·  view source on GitHub ↗
(bits: CapabilitiesSecureBits)

Source from the content-addressed store, hash-verified

568/// [`prctl(PR_SET_SECUREBITS,…)`]: https://man7.org/linux/man-pages/man2/prctl.2.html
569#[inline]
570pub fn set_capabilities_secure_bits(bits: CapabilitiesSecureBits) -> io::Result<()> {
571 unsafe { prctl_2args(PR_SET_SECUREBITS, bits.bits() as usize as *mut _) }.map(|_r| ())
572}
573
574//
575// PR_GET_TIMERSLACK/PR_SET_TIMERSLACK

Callers

nothing calls this directly

Calls 1

prctl_2argsFunction · 0.85

Tested by

no test coverage detected