pub fn thread_all_supported() -> CapsHashSet
Expand description
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.