]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
systemd/tmpfiles: change directory owner to root obs-knot-resolver-bs4hbr/deployments/743
authorTomas Krizek <tomas.krizek@nic.cz>
Thu, 2 Apr 2020 13:29:56 +0000 (15:29 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 14 Apr 2020 10:31:23 +0000 (12:31 +0200)
commitf0045fed1aec74234cfbdfeb87d9e0852dd4c89a
tree8ca34100a96bcf5a693c4f30dacc043a70b7d949
parent856b6133533ac5845043d539146cba89ce11ff4b
systemd/tmpfiles: change directory owner to root

Change the owner of kresd files to root:knot-resolver. This improves
behaviour for Fedora, where kresd can run under root (e.g. in Docker).
Otherwise, running kresd as root on Fedora would fail because of dropped
capabilities and attempting to access /var/lib/knot-resolver, which was
owned by knot-resolver.

This change makes it possible for both root (user) and knot-resolver
(group) to have the same permissions on these directories despite
dropped capabilities.
systemd/tmpfiles.d/knot-resolver.conf.in