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

Go to the source code of this file.

Defines

#define CAP_DAC_READ_SEARCH   42

Functions

int explain_capability_dac_read_search (void)

Define Documentation

#define CAP_DAC_READ_SEARCH   42

Definition at line 25 of file dac_read_search.c.


Function Documentation

The explain_capability_dac_read_search function may be used to determine whether or not the process has the CAP_DAC_READ_SEARCH capability

Overrides all DAC restrictions regarding read and search on files and directories, including ACL restrictions if [_POSIX_ACL] is defined. Excluding DAC access covered by CAP_LINUX_IMMUTABLE.

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

Definition at line 30 of file dac_read_search.c.