3a9410
From 48f4d21cf73e15e145258bf1d590ca279838168c Mon Sep 17 00:00:00 2001
3a9410
Message-Id: <48f4d21cf73e15e145258bf1d590ca279838168c@dist-git>
e8a9ad
From: Michal Privoznik <mprivozn@redhat.com>
e8a9ad
Date: Thu, 8 Dec 2022 08:39:24 +0100
e8a9ad
Subject: [PATCH] tools: Fix install_mode for some scripts
e8a9ad
e8a9ad
Scripts from the following list were installed with group write
e8a9ad
bit set: virt-xml-validate, virt-pki-validate,
e8a9ad
virt-sanlock-cleanup, libvirt-guests.sh. This is very unusual and
e8a9ad
in contrast with the way other scripts/binaries are installed.
e8a9ad
e8a9ad
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2151202
e8a9ad
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
e8a9ad
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
e8a9ad
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
e8a9ad
(cherry picked from commit e771e32f15ff2b263ca70306d93080541a96792b)
3a9410
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2153688
e8a9ad
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
e8a9ad
---
e8a9ad
 tools/meson.build | 8 ++++----
e8a9ad
 1 file changed, 4 insertions(+), 4 deletions(-)
e8a9ad
e8a9ad
diff --git a/tools/meson.build b/tools/meson.build
e8a9ad
index 2d0aecb90b..7c6e527939 100644
e8a9ad
--- a/tools/meson.build
e8a9ad
+++ b/tools/meson.build
e8a9ad
@@ -247,7 +247,7 @@ configure_file(
e8a9ad
   configuration: tools_conf,
e8a9ad
   install: true,
e8a9ad
   install_dir: bindir,
e8a9ad
-  install_mode: 'rwxrwxr-x',
e8a9ad
+  install_mode: 'rwxr-xr-x',
e8a9ad
 )
e8a9ad
 
e8a9ad
 configure_file(
e8a9ad
@@ -256,7 +256,7 @@ configure_file(
e8a9ad
   configuration: tools_conf,
e8a9ad
   install: true,
e8a9ad
   install_dir: bindir,
e8a9ad
-  install_mode: 'rwxrwxr-x',
e8a9ad
+  install_mode: 'rwxr-xr-x',
e8a9ad
 )
e8a9ad
 
e8a9ad
 executable(
e8a9ad
@@ -293,7 +293,7 @@ if conf.has('WITH_SANLOCK')
e8a9ad
     configuration: tools_conf,
e8a9ad
     install: true,
e8a9ad
     install_dir: sbindir,
e8a9ad
-    install_mode: 'rwxrwxr-x',
e8a9ad
+    install_mode: 'rwxr-xr-x',
e8a9ad
   )
e8a9ad
 endif
e8a9ad
 
e8a9ad
@@ -304,7 +304,7 @@ if conf.has('WITH_LIBVIRTD')
e8a9ad
     configuration: tools_conf,
e8a9ad
     install: true,
e8a9ad
     install_dir: libexecdir,
e8a9ad
-    install_mode: 'rwxrwxr-x',
e8a9ad
+    install_mode: 'rwxr-xr-x',
e8a9ad
   )
e8a9ad
 
e8a9ad
   if init_script == 'systemd'
e8a9ad
-- 
e8a9ad
2.39.0
e8a9ad