Debian Codegraph @

docs/capng_set_rootid.3

raw
1 .TH "CAPNG_SET_ROOTID" "3" "March 2026" "Red Hat" "Libcap-ng API"
2 .SH NAME
3 capng_set_rootid \- set namespace root id
4 .SH "SYNOPSIS"
5 .B #include <cap-ng.h>
6 .sp
7 int capng_set_rootid(int rootid);
8
9 .SH "DESCRIPTION"
10
11 capng_set_rootid sets the rootid for file capabilities operations. Pass CAPNG_UNSET_ROOTID to clear a previously selected namespace root id and go back to writing regular V2 file capabilities.
12
13 .SH "RETURN VALUE"
14
15 On success, it returns 0. It returns -1 if there is an internal error, the kernel does not support V3 filesystem capabilities, or an invalid rootid is supplied.
16
17 .SH "SEE ALSO"
18
19 .BR capng_apply_caps_fd (3),
20 .BR capabilities (7)
21
22 .SH AUTHOR
23 Steve Grubb