commit bb5683029a6c98d69fb09f9198f9afd1b956315a Author: Arturo Filastò art@fuffa.org Date: Thu Jun 6 19:58:05 2013 +0200
Set the group and user id if specified --- oonib/oonibackend.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/oonib/oonibackend.py b/oonib/oonibackend.py index c042463..9e3e9cb 100644 --- a/oonib/oonibackend.py +++ b/oonib/oonibackend.py @@ -23,7 +23,12 @@ from oonib import log from oonib import db_threadpool from oonib import config
-application = service.Application('oonibackend') +if config.uid and config.gid: + application = service.Application('oonibackend', uid=config.uid, + gid=config.gid) +else: + application = service.Application('oonibackend') + serviceCollection = service.IServiceCollection(application)
if config.helpers.ssl.port:
tor-commits@lists.torproject.org