(mode: SecureComputingMode)
| 171 | /// [`prctl(PR_SET_SECCOMP,…)`]: https://man7.org/linux/man-pages/man2/prctl.2.html |
| 172 | #[inline] |
| 173 | pub fn set_secure_computing_mode(mode: SecureComputingMode) -> io::Result<()> { |
| 174 | unsafe { prctl_2args(PR_SET_SECCOMP, mode as usize as *mut _) }.map(|_r| ()) |
| 175 | } |
| 176 | |
| 177 | // |
| 178 | // PR_CAPBSET_READ/PR_CAPBSET_DROP |
nothing calls this directly
no test coverage detected