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

Go to the source code of this file.

Defines

#define CAP_SETGID   42

Functions

int explain_capability_setgid (void)

Define Documentation

#define CAP_SETGID   42

Definition at line 25 of file setgid.c.


Function Documentation

int explain_capability_setgid ( void  )

The explain_capability_setgid function may be used to determine whether or not the process has the CAP_SETGID capability

Allows setgid(2) manipulation Allows setgroups(2) Allows forged gids on socket credentials passing.

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

Definition at line 30 of file setgid.c.