Make initgroups() fail if user has any supplemental groups.
This commit is contained in:
parent
5911460ce5
commit
39816868de
1 changed files with 4 additions and 2 deletions
|
@ -43,8 +43,10 @@ int initgroups(const char *name, gid_t basegid)
|
||||||
/* Because supplemental groups aren't implemented, this call
|
/* Because supplemental groups aren't implemented, this call
|
||||||
* should fail if the user is in any supplemental groups.
|
* should fail if the user is in any supplemental groups.
|
||||||
*/
|
*/
|
||||||
if(found)
|
if(found) {
|
||||||
return EINVAL;
|
errno = EINVAL;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue