mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Sysdep: Drop supplementary groups when dropping GID
We forgot to do that. Oops.
This commit is contained in:
@@ -83,6 +83,9 @@ drop_gid(gid_t gid)
|
||||
{
|
||||
if (setgid(gid) < 0)
|
||||
die("setgid: %m");
|
||||
|
||||
if (setgroups(0, NULL) < 0)
|
||||
die("setgroups: %m");
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user