version 1.2.2.4, 2001/05/07 21:09:29 |
version 1.2.2.5, 2001/09/27 00:15:42 |
|
|
|
|
#include <grp.h> |
#include <grp.h> |
|
|
/* |
int ga_init(const char *, gid_t); |
* Initialize group access list for user with primary (base) and |
int ga_match(char * const *, int); |
* supplementary groups. Return the number of groups in the list. |
void ga_free(void); |
*/ |
|
int ga_init(const char *user, gid_t base); |
|
|
|
/* |
|
* Return 1 if one of user's groups is contained in groups. |
|
* Return 0 otherwise. Use match_pattern() for string comparison. |
|
*/ |
|
int ga_match(char * const *groups, int ngroups); |
|
|
|
/* |
|
* Free memory allocated for group access list. |
|
*/ |
|
void ga_free(void); |
|
|
|
#endif |
#endif |