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:
parent
4722697645
commit
acbf7e15c9
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user