caps::runtime

Function procfs_all_supported

Source
pub fn procfs_all_supported(
    proc_mountpoint: Option<PathBuf>,
) -> Result<CapsHashSet, CapsError>
Expand description

Return the set of all capabilities supported by the running kernel.

This requires a mounted procfs and a kernel version >= 3.2. By default, it uses /proc/ as the procfs mountpoint.