Skip to main content

probe_kernel

Function probe_kernel 

Source
pub fn probe_kernel() -> KernelSupport
Expand description

Probes kernel support. On Linux this applies a no-op Landlock ruleset to the calling process (the only way to learn the ABI through the landlock crate), so call it only from a process that is about to exit, such as cant check.