Function caps::runtime::thread_all_supported[][src]

pub fn thread_all_supported() -> CapsHashSet

Return the set of all capabilities supported on the current thread.

This does not require a mounted procfs, and it works with any kernel version >= 2.6.25. It internally uses prctl(2) and PR_CAPBSET_READ; if those are unavailable, this will result in an empty set.