1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-31 05:47:15 +03:00

systemd: Rename @mode@ -> @sockmode@

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Andrea Bolognani 2023-09-25 16:54:37 +02:00
parent 6922526dbb
commit e9d4dc9512
2 changed files with 4 additions and 4 deletions

View File

@ -799,9 +799,9 @@ if conf.has('WITH_LIBVIRTD')
foreach unit : virt_daemon_units
if conf.has('WITH_POLKIT')
mode = '0666'
sockmode = '0666'
else
mode = '0600'
sockmode = '0600'
endif
unit_conf = configuration_data({
@ -813,7 +813,7 @@ if conf.has('WITH_LIBVIRTD')
'service': unit['service'],
'sockprefix': unit['sockprefix'],
'deps': unit.get('deps', ''),
'mode': mode,
'sockmode': sockmode,
})
configure_file(

View File

@ -6,7 +6,7 @@ Before=@service@.service
[Socket]
ListenStream=@runstatedir@/libvirt/@sockprefix@-sock
Service=@service@.service
SocketMode=@mode@
SocketMode=@sockmode@
RemoveOnStop=yes
[Install]