summarylogtreecommitdiffstats
path: root/pkgdistcached.service
diff options
context:
space:
mode:
authorEric Anderson2022-09-17 08:19:25 -0700
committerEric Anderson2022-09-17 08:19:25 -0700
commitefa6ccfea09c105a04f16eb673d358f43ad95caa (patch)
tree72302744733e97dc4a923c52a90bbe1f666a24b5 /pkgdistcached.service
parent921ae17720b737c1ca46d661d8ed13cabc090fc3 (diff)
downloadaur-efa6ccfea09c105a04f16eb673d358f43ad95caa.tar.gz
Avoid DynamicUser to workaround systemd/dbus regression
Systemd broke dbus for DynamicUsers, as discussed in https://github.com/systemd/systemd/issues/22737. Although the issue is avoided when using dbus-broker, I suspect most Arch systems are using dbus-daemon. This essentially reverts e0dc7e9879
Diffstat (limited to 'pkgdistcached.service')
-rw-r--r--pkgdistcached.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgdistcached.service b/pkgdistcached.service
index db1303fa3c7a..f5e58204744b 100644
--- a/pkgdistcached.service
+++ b/pkgdistcached.service
@@ -5,7 +5,8 @@ After=avahi-daemon.service
[Service]
ExecStart=/usr/lib/pkgdistcache/pkgdistcache-daemon
-DynamicUser=yes
+User=nobody
+Group=nobody
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes