From 18a1b25c22b64666475fda2890e1d9d9debe27d8 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Tue, 19 Sep 2023 15:36:18 +0200 Subject: [PATCH] systemd: Only set @sockmode@ once MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Daniel P. Berrangé --- src/meson.build | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/meson.build b/src/meson.build index 3fae80d67c..9d5085a8aa 100644 --- a/src/meson.build +++ b/src/meson.build @@ -797,13 +797,13 @@ if conf.has('WITH_LIBVIRTD') install_dir: systemd_unit_dir, ) - foreach unit : virt_daemon_units - if conf.has('WITH_POLKIT') - sockmode = '0666' - else - sockmode = '0600' - endif + if conf.has('WITH_POLKIT') + sockmode = '0666' + else + sockmode = '0600' + endif + foreach unit : virt_daemon_units unit_conf = configuration_data({ 'runstatedir': runstatedir, 'sbindir': sbindir, -- 2.39.5