File coturn-fix_missing-call-to-setgroups-before-setuid.patch of Package coturn

diff -Pdpru coturn-4.5.1.1.orig/src/apps/relay/mainrelay.c coturn-4.5.1.1/src/apps/relay/mainrelay.c
--- coturn-4.5.1.1.orig/src/apps/relay/mainrelay.c	2019-03-02 22:06:19.000000000 +0100
+++ coturn-4.5.1.1/src/apps/relay/mainrelay.c	2019-03-16 12:36:55.974335880 +0100
@@ -2038,6 +2038,13 @@ static void set_network_engine(void)
 
 static void drop_privileges(void)
 {
+    /* Fix rpmlint.
+     * There is a high probability this means it didn't relinquish all groups, and
+     * this would be a potential security issue to be fixed. Seek POS36-C on the web
+     * for details about the problem.
+    */
+    setgroups(0, NULL);
+    
 	if(procgroupid_set) {
 		if(getgid() != procgroupid) {
 			if (setgid(procgroupid) != 0) {
openSUSE Build Service is sponsored by