libexplain  1.4.D001
Functions
libexplain/group_in_groups.h File Reference

Go to the source code of this file.

Functions

int explain_group_in_groups (int gid, const struct explain_have_identity_t *hip)

Function Documentation

int explain_group_in_groups ( int  gid,
const struct explain_have_identity_t hip 
)

The explain_group_in_groups function may be used to determine whether or not the given geoup matches the process' effective GID, or is in the process' groups list.

Parameters:
gidThe group ID to test
hipThe identity to check against
Returns:
int; non-zero (true) if in groups, zero (false) if not