blob: 3c3e39955d5bd73a176f88248f744341c7987fd3 [file] [log] [blame]
Nick Kralevich1d1011a2012-09-06 10:14:03 -07001.TH "CAPNG_SET_CAPS_FD" "3" "June 2009" "Red Hat" "Libcap-ng API"
2.SH NAME
3capng_set_caps_fd \-
4.SH "SYNOPSIS"
5.B #include <cap-ng.h>
6.sp
7int capng_set_caps_fd(int fd);
8
9.SH "DESCRIPTION"
10
11This function will write the file based capabilities to the extended attributes of the file that the descriptor was opened against. The bounding set is not included in file based capabilities operations. Note that this function will only work if compiled on a kernel that supports file based capabilities such as 2.6.2
126 and later.
13
14.SH "RETURN VALUE"
15
16This returns 0 on success and -1 on failure.
17
18.SH "SEE ALSO"
19
20.BR capng_get_caps_fd (3),
21.BR capabilities (7)
22
23.SH AUTHOR
24Steve Grubb