(bits: CapabilitiesSecureBits)
| 568 | /// [`prctl(PR_SET_SECUREBITS,…)`]: https://man7.org/linux/man-pages/man2/prctl.2.html |
| 569 | #[inline] |
| 570 | pub 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 |
nothing calls this directly
no test coverage detected