1CAPNG_GET_ROOTID(3) Libcap-ng API CAPNG_GET_ROOTID(3)
2
3
4
6 capng_get_rootid - get namespace root id
7
9 #include <cap-ng.h>
10
11 int capng_get_rootid(void);
12
13
15 capng_get_rootid gets the rootid for capabilities operations. This is
16 only applicable for file system operations.
17
18
20 If the file is in the init namespace or the kernel does not support V3
21 file system capabilities, it returns CAPNG_UNSET_ROOTID. Otherwise it
22 return an integer for the namespace root id.
23
24
26 capng_get_caps_fd(3), capabilities(7)
27
28
30 Steve Grubb
31
32
33
34Red Hat Sept 2020 CAPNG_GET_ROOTID(3)