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

Go to the source code of this file.

Functions

int explain_capability (int cap)

Function Documentation

int explain_capability ( int  cap)

The explain_capability function may be used to determine whether or not the process has the given capability; or, on systems without capabilities, euid == root.

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

Definition at line 27 of file capability.c.