1CAPNG_HAVE_CAPABILITIES(3)       Libcap-ng API      CAPNG_HAVE_CAPABILITIES(3)
2
3
4

NAME

6       capng_have_capabilities, capng_have_permitted_capabilities - check for capabilities
7

SYNOPSIS

9       #include <cap-ng.h>
10
11       capng_results_t       capng_have_capabilities(capng_select_t      set);
12       capng_results_t capng_have_permitted_capabilities(void);
13
14

DESCRIPTION

16       capng_have_capabilities will check the selected  internal  capabilities
17       sets  to  see  what the status is. The capabilities sets must be previ‐
18       ously setup with calls to capng_get_caps_process, capng_get_caps_fd, or
19       in some other way setup. The options are CAPNG_SELECT_CAPS for the tra‐
20       ditional capabilities, CAPNG_SELECT_BOUNDS for  the  bounding  set,  or
21       CAPNG_SELECT_BOTH  if  clearing  both is desired. When capabilities are
22       checked, it will only look at the effective capabilities.
23
24       If, however, the source of capabilities comes from a file, then you may
25       need  to  additionally  check the permitted capabilities. It's for this
26       reason that capng_have_permitted_capabilities was created. It takes  no
27       arguments because it simply checks the permitted set.
28
29

RETURN VALUE

31       This  funtion  will  return  one of the following four self explanatory
32       values: CAPNG_FAIL, CAPNG_NONE, CAPNG_PARTIAL, CAPNG_FULL.
33
34

SEE ALSO

36       capng_get_caps_process(3),  capng_get_caps_fd(3),   capng_have_capabil‐
37       ity(3), capabilities(7)
38
39

AUTHOR

41       Steve Grubb
42
43
44
45Red Hat                            Aug 2018         CAPNG_HAVE_CAPABILITIES(3)
Impressum