version 1.2, 2001/01/29 01:58:15 |
version 1.2.6.2, 2002/03/09 00:20:44 |
|
|
|
|
#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 |