| 1 |
.TH "CAPNG_GET_ROOTID" "3" "Sept 2020" "Red Hat" "Libcap-ng API" |
| 2 |
.SH NAME |
| 3 |
capng_get_rootid \- get namespace root id |
| 4 |
.SH "SYNOPSIS" |
| 5 |
.B #include <cap-ng.h> |
| 6 |
.sp |
| 7 |
int capng_get_rootid(void); |
| 8 |
|
| 9 |
.SH "DESCRIPTION" |
| 10 |
|
| 11 |
capng_get_rootid gets the rootid for capabilities operations. This is only applicable for file system operations. |
| 12 |
|
| 13 |
.SH "RETURN VALUE" |
| 14 |
|
| 15 |
If the file is in the init namespace or the kernel does not support V3 file system capabilities, it returns CAPNG_UNSET_ROOTID. Otherwise it return an integer for the namespace root id. |
| 16 |
|
| 17 |
.SH "SEE ALSO" |
| 18 |
|
| 19 |
.BR capng_get_caps_fd (3), |
| 20 |
.BR capabilities (7) |
| 21 |
|
| 22 |
.SH AUTHOR |
| 23 |
Steve Grubb |