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); capng_re‐
12       sults_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,
21       CAPNG_SELECT_BOTH if checking both are desired, CAPNG_SELECT_AMBIENT if
22       only checking the ambient capabilities, or CAPNG_SELECT_ALL if  testing
23       all  sets  is desired. When capabilities are checked, it will only look
24       at the effective capabilities.
25
26       If, however, the source of capabilities comes from a file, then you may
27       need  to  additionally  check the permitted capabilities. It's for this
28       reason that capng_have_permitted_capabilities was created. It takes  no
29       arguments because it simply checks the permitted set.
30
31

RETURN VALUE

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

SEE ALSO

38       capng_get_caps_process(3),  capng_get_caps_fd(3),   capng_have_capabil‐
39       ity(3), capabilities(7)
40
41

AUTHOR

43       Steve Grubb
44
45
46
47Red Hat                            Sept 2020        CAPNG_HAVE_CAPABILITIES(3)
Impressum