Bug 1046370 - new feature for changing uid at runtime, to prevent double-forking
Summary: new feature for changing uid at runtime, to prevent double-forking
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: stun
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Huzaifa S. Sidhpurwala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1046369 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-24 23:09 UTC by sdyoung
Modified: 2016-07-19 10:49 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-19 10:49:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch to stun to make it switch users (920 bytes, text/plain)
2013-12-24 23:09 UTC, sdyoung
no flags Details

Description sdyoung 2013-12-24 23:09:29 UTC
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.

Comment 1 sdyoung 2013-12-25 10:47:47 UTC
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.

Comment 2 Huzaifa S. Sidhpurwala 2014-08-08 16:11:56 UTC
*** Bug 1046369 has been marked as a duplicate of this bug. ***

Comment 3 Huzaifa S. Sidhpurwala 2014-08-08 16:12:51 UTC
Hi, 

Have you tried sending this patch upstream to check if they would consider including it on their linux port?

Comment 4 Jaroslav Reznik 2015-03-03 15:21:12 UTC
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

Comment 5 Fedora End Of Life 2016-07-19 10:49:25 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.