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

Go to the source code of this file.

Defines

#define CAP_FOWNER   42

Functions

int explain_capability_fowner (void)

Define Documentation

#define CAP_FOWNER   42

Definition at line 25 of file fowner.c.


Function Documentation

int explain_capability_fowner ( void  )

The explain_capability_fowner function may be used to determine whether or not the process has the CAP_FOWNER capability

Overrides all restrictions about allowed operations on files, where file owner ID must be equal to the user ID, except where CAP_FSETID is applicable. It doesn't override MAC and DAC restrictions.

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

Definition at line 30 of file fowner.c.