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