Created attachment 841337 [details] Patch to stun to make it switch users This small patch adds an extra argument to stun to allow it to change users, which is useful for init scripts not having to deal with a double-fork.
To clarify the problem I'm trying to solve: without stun being able to change users by itself, init scrips have to use sudo to run it as a non-privileged user. As a result, they can only easily obtain the PID of the sudo process, and not the stun daemon itself. This makes it possible to launch the stun server without making it difficult for the init script to get the stun server's PID.
*** Bug 1046369 has been marked as a duplicate of this bug. ***
Hi, Have you tried sending this patch upstream to check if they would consider including it on their linux port?
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.