Add a wrapper for setgroups() that trims off extra groups and retries

if setgroups() fails.  Also add some missing addrefs for PERM_USER
and PERM_FULL_USER.
This commit is contained in:
Todd C. Miller
2011-07-20 16:54:12 -04:00
parent b124635b04
commit 022591f4bf
8 changed files with 140 additions and 67 deletions

View File

@@ -227,6 +227,9 @@ void aix_setauthdb(char *user);
/* interfaces.c */
int get_net_ifs(char **addrinfo);
/* setgroups.c */
int sudo_setgroups(int ngids, const GETGROUPS_T *gids);
#ifndef errno
extern int errno;
#endif