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

Function capabilities_secure_bits

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

Source from the content-addressed store, hash-verified

554/// [`prctl(PR_GET_SECUREBITS,…)`]: https://man7.org/linux/man-pages/man2/prctl.2.html
555#[inline]
556pub fn capabilities_secure_bits() -> io::Result<CapabilitiesSecureBits> {
557 let r = unsafe { prctl_1arg(PR_GET_SECUREBITS)? } as c_uint;
558 CapabilitiesSecureBits::from_bits(r).ok_or(io::Errno::RANGE)
559}
560
561const PR_SET_SECUREBITS: c_int = 28;
562

Callers

nothing calls this directly

Calls 1

prctl_1argFunction · 0.85

Tested by

no test coverage detected