Merge pull request #522 from weberhofer/master

Drop of supplementary group IDs
This commit is contained in:
Mészáros Mihály 2020-04-28 09:06:57 +02:00 committed by GitHub
commit 24346fbaba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2061,6 +2061,7 @@ static void set_network_engine(void)
static void drop_privileges(void)
{
setgroups(0, NULL);
if(procgroupid_set) {
if(getgid() != procgroupid) {
if (setgid(procgroupid) != 0) {