1
0
mirror of https://github.com/coturn/coturn.git synced 2025-11-03 00:10:59 +01:00

Drop of supplementary group IDs

Fix related to POS36-C and rpmlint error "missing-call-to-setgroups-before-setuid".
This commit is contained in:
Johannes Weberhofer 2020-04-11 10:33:55 +02:00 committed by GitHub
parent 4722697645
commit acbf7e15c9
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) {