mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-23 02:01:55 +00:00
Sysdep: Drop supplementary groups when dropping GID
We forgot to do that. Oops.
This commit is contained in:
parent
8525d7104e
commit
8cf32b6bb5
@ -87,6 +87,9 @@ drop_gid(gid_t gid)
|
|||||||
{
|
{
|
||||||
if (setgid(gid) < 0)
|
if (setgid(gid) < 0)
|
||||||
die("setgid: %m");
|
die("setgid: %m");
|
||||||
|
|
||||||
|
if (setgroups(0, NULL) < 0)
|
||||||
|
die("setgroups: %m");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user