libexplain  1.4.D001
Defines | Functions
libexplain/capability/setpcap.c File Reference
#include <libexplain/ac/sys/capability.h>
#include <libexplain/capability.h>

Go to the source code of this file.

Defines

#define CAP_SETPCAP   42

Functions

int explain_capability_setpcap (void)

Define Documentation

#define CAP_SETPCAP   42

Definition at line 25 of file setpcap.c.


Function Documentation

The explain_capability_setpcap function may be used to determine whether or not the process has the CAP_SETPCAP capability

Transfer any capability in your permitted set to any pid, remove any capability in your permitted set from any pid

Returns:
int; non-zero (true) if have the capability, zero (false) if not

Definition at line 30 of file setpcap.c.