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

NAME

6       capng_have_capability - check for specific capability
7

SYNOPSIS

9       #include <cap-ng.h>
10
11       int capng_have_capability(capng_type_t which, unsigned int capability);
12
13

DESCRIPTION

15       capng_have_capability  will  check  the specified internal capabilities
16       set to see if the specified capability is set.  The  capabilities  sets
17       must   be   previously  setup  with  calls  to  capng_get_caps_process,
18       capng_get_caps_fd, or in some other way setup.  The  values  for  which
19       should  be one of: CAPNG_EFFECTIVE, CAPNG_PERMITTED, CAPNG_INHERITABLE,
20       CAPNG_BOUNDING_SET, or CAPNG_AMBIENT.
21
22

RETURN VALUE

24       This funtion will return 1 if yes and 0 otherwise.
25
26

SEE ALSO

28       capng_get_caps_process(3),  capng_get_caps_fd(3),  capng_have_capabiliā€
29       ties(3), capabilities(7)
30
31

AUTHOR

33       Steve Grubb
34
35
36
37Red Hat                            June 2009          CAPNG_HAVE_CAPABILITY(3)
Impressum