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