[python-daemon-Bugs][315239] 2.1 requires root permissions
python-daemon-bugs at alioth.debian.org
python-daemon-bugs at alioth.debian.org
Fri Dec 11 21:44:34 UTC 2015
python-daemon-Bugs item #315239 was changed at 2015-12-11 13:44 by Justin Patrin
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413098&aid=315239&group_id=100328
Status: Open
Priority: 3
Submitted By: Adrian M (thiefmaster-guest)
Assigned to: Nobody (None)
Summary: 2.1 requires root permissions
Initial Comment:
Since version 2.1, python-daemon always tries to setuid+setgid even if no uid change is necessary. This fails when running without root privileges (which is a perfectly valid use case).
This kind of breaking change seem pretty inappropriate for a minor version number change, and additionally it doesn't seem to make sense at all - especially not in a way that cannot be disabled without using monkeypatching.
----------------------------------------------------------------------
Comment By: Justin Patrin (papercrane-guest)
Date: 2015-12-11 13:44
Message:
I've pushed a fix for this which checks the uid and euid before trying to change the uid and checks the gid and egid before trying to change the gid.
https://code.launchpad.net/~reversefold/python-daemon/trunk
----------------------------------------------------------------------
Comment By: Justin Patrin (papercrane-guest)
Date: 2015-12-10 17:39
Message:
+1, also seeing this issue
----------------------------------------------------------------------
Comment By: Adrian M (thiefmaster-guest)
Date: 2015-11-28 06:29
Message:
After having a closer look: this happens only with `initgroups=True` which didn't exist before. Maybe it would be better to make it default to `False`?
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413098&aid=315239&group_id=100328
More information about the python-daemon-bugs
mailing list