Sysdep: Drop supplementary groups when dropping GID
We forgot to do that. Oops.
This commit is contained in:
parent
4fa0e472cf
commit
5ab3447de1
1 changed files with 3 additions and 0 deletions
|
@ -83,6 +83,9 @@ drop_gid(gid_t gid)
|
|||
{
|
||||
if (setgid(gid) < 0)
|
||||
die("setgid: %m");
|
||||
|
||||
if (setgroups(0, NULL) < 0)
|
||||
die("setgroups: %m");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue