]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
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)
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

index 204088de772947be121eb9e46d183ea29f80cb95..5353a852231d98ed864639be7e2992925835439e 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: CC0-1.0
 # tmpfiles.d(5) directories for knot-resolver (kresd)
 #Type Path                            Mode UID           GID          Age Argument
-    d @run_dir@                       0750 @user@        @group@       -   -
-    d @systemd_work_dir@              0750 @user@        @group@       -   -
-    d @systemd_cache_dir@             0750 @user@        @group@       -   -
+    d @run_dir@                       0770 root          @group@       -   -
+    d @systemd_work_dir@              0770 root          @group@       -   -
+    d @systemd_cache_dir@             0770 root          @group@       -   -