Summary: | net-p2p/deluge uses single rc script for two daemons | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Cameron Tacklind <cameron> |
Component: | New packages | Assignee: | Paolo Pedroni <paolo.pedroni> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | cameron, chris.burroughs, flow, net-p2p |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Initial split of daemons in patch form
Patch for current ebuild to use deluge patches and multiple init.d files Adding support to deluged to switch uid on it's own Adding support to deluge-web to switch uid on it's own New init.d file for deluged New init.d file for deluge-web New conf.d file for deluged New conf.d file for deluge-web Fixed group support for deluged Fixed group support for deluge-web |
Description
Cameron Tacklind
2010-12-31 09:52:38 UTC
Created attachment 258495 [details, diff]
Initial split of daemons in patch form
I've written a simple patch (that I also will submit upstream) to let deluged and deluge-web switch uid (and gid) on their own. This lets them write a pidfile as root and then switch to a lower privilege. (which I think is the standard?) I've also updated the init.d files to: - use this patch - let the daemons fork themselves - use symlink to run a second instance - use explicit variables for (without disabling old style I hope) - group - config dir It all seems to work for me! Created attachment 258969 [details, diff]
Patch for current ebuild to use deluge patches and multiple init.d files
Created attachment 258971 [details, diff]
Adding support to deluged to switch uid on it's own
Created attachment 258973 [details, diff]
Adding support to deluge-web to switch uid on it's own
Created attachment 258975 [details]
New init.d file for deluged
Created attachment 258976 [details]
New init.d file for deluge-web
Created attachment 258978 [details]
New conf.d file for deluged
Created attachment 258979 [details]
New conf.d file for deluge-web
Created attachment 259879 [details, diff]
Fixed group support for deluged
I accidentally used setuid for both user and group (instead of setgid)
I've also put the setgid before setuid so we are still root when we try to change groups
Created attachment 259880 [details, diff]
Fixed group support for deluge-web
The same fix for deluge-web
Fixed in deluge-1.3.12-r2 |