Bug 1326623

Summary: dnsdist should not be run as root
Product: [Fedora] Fedora Reporter: Pieter Lexis <pieter+redhat>
Component: dnsdistAssignee: Sander Hoentjen <sander>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: ruben, sander
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-15 15:34:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pieter Lexis 2016-04-13 08:40:40 UTC
Description of problem:
In it's current packaged form, dnsdist is run as root and does not drop privileges. Upstream, we have a PR that will make the packages provided by PowerDNS drop privileges to the 'dnsdist' user and group (https://github.com/PowerDNS/pdns/pull/3700). It is recommended that Fedora and EPEL do the same.

Comment 1 Sander Hoentjen 2016-04-13 20:49:08 UTC
Thanks for reminding me. You are definitely right, it is something we should really do. I won't get around to it this week I am afraid.

something to think about maybe is to add support for specifying the user/group in configure. make would then add -u and -g to dnsdistdist/dnsdist.service.in

This way we can all use the same upstream dnsdist.service

Comment 2 Ruben Kerkhof 2016-04-15 15:34:07 UTC
I took a stab at this. I agree with Sander that it would be nice to be able to specify the user/group from ./configure in the future.