mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
systemd: Only set @sockmode@ once
The decision is based only on whether Polkit support is enabled, so there's no need to go through it again for every single service. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
e9d4dc9512
commit
18a1b25c22
@ -797,13 +797,13 @@ if conf.has('WITH_LIBVIRTD')
|
|||||||
install_dir: systemd_unit_dir,
|
install_dir: systemd_unit_dir,
|
||||||
)
|
)
|
||||||
|
|
||||||
foreach unit : virt_daemon_units
|
if conf.has('WITH_POLKIT')
|
||||||
if conf.has('WITH_POLKIT')
|
sockmode = '0666'
|
||||||
sockmode = '0666'
|
else
|
||||||
else
|
sockmode = '0600'
|
||||||
sockmode = '0600'
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
|
foreach unit : virt_daemon_units
|
||||||
unit_conf = configuration_data({
|
unit_conf = configuration_data({
|
||||||
'runstatedir': runstatedir,
|
'runstatedir': runstatedir,
|
||||||
'sbindir': sbindir,
|
'sbindir': sbindir,
|
||||||
|
Loading…
Reference in New Issue
Block a user