Summary: | net-dns/dnsmasq: improve systemd unit (including security hardening) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Craig Andrews <candrews> |
Component: | Current packages | Assignee: | Patrick McLean <chutzpah> |
Status: | UNCONFIRMED --- | ||
Severity: | enhancement | CC: | bkohler, candrews, systemd |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=587588 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | diff based on c1 PR link |
Description
Craig Andrews
![]() Created attachment 439234 [details, diff]
diff based on c1 PR link
I've posted to the upstream mailing list requesting that upstream distribute a systemd unit and that it have these features: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2016q2/010656.html The configuration option AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_ADMIN is only with systemd-229, or newer. While I agree that some system hardening is a nice feature to introduce I would suggest that we let dnsmasq still handle the suid and sguid bits on its own. This has the advantage that the daemon can actually drop privileges/capabilities once it is done with setup. See #587588 |