()
| 554 | /// [`prctl(PR_GET_SECUREBITS,…)`]: https://man7.org/linux/man-pages/man2/prctl.2.html |
| 555 | #[inline] |
| 556 | pub 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 | |
| 561 | const PR_SET_SECUREBITS: c_int = 28; |
| 562 |
nothing calls this directly
no test coverage detected