File: capng_set_rootid.3

package info (click to toggle)
libcap-ng 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 776 kB
  • sloc: ansic: 7,464; makefile: 188; python: 161; sh: 24
file content (23 lines) | stat: -rw-r--r-- 679 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.TH "CAPNG_SET_ROOTID" "3" "March 2026" "Red Hat" "Libcap-ng API"
.SH NAME
capng_set_rootid \- set namespace root id
.SH "SYNOPSIS"
.B #include <cap-ng.h>
.sp
int capng_set_rootid(int rootid);

.SH "DESCRIPTION"

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.

.SH "RETURN VALUE"

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.

.SH "SEE ALSO"

.BR capng_apply_caps_fd (3),
.BR capabilities (7)

.SH AUTHOR
Steve Grubb