unit: declare BusName= in all our units that are on the bus, event if they don't use Type=dbus

This information is always useful, so let's always declare it,
particular in the light of #16976.
This commit is contained in:
Lennart Poettering 2020-09-11 10:56:06 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent f7c87baeca
commit e67b818c2f
3 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,7 @@ Wants=systemd-networkd.socket network.target
[Service]
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW
BusName=org.freedesktop.network1
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW
DeviceAllow=char-* rw
ExecStart=!!@rootlibexecdir@/systemd-networkd

View File

@ -21,6 +21,7 @@ Wants=nss-lookup.target
[Service]
AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
BusName=org.freedesktop.resolve1
CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
ExecStart=!!@rootlibexecdir@/systemd-resolved
LockPersonality=yes

View File

@ -20,6 +20,7 @@ Wants=time-set.target time-sync.target
[Service]
AmbientCapabilities=CAP_SYS_TIME
BusName=org.freedesktop.timesync1
CapabilityBoundingSet=CAP_SYS_TIME
ExecStart=!!@rootlibexecdir@/systemd-timesyncd
LockPersonality=yes