Blame SOURCES/scap-security-guide-0.1.58-ensure_test_helper_scripts_executable-PR_7302.patch

76240a
From 030557e3c4b48f568f6fef7de36de4dca6c66838 Mon Sep 17 00:00:00 2001
76240a
From: Watson Sato <wsato@redhat.com>
76240a
Date: Thu, 29 Jul 2021 19:02:11 +0200
76240a
Subject: [PATCH] Ensure test scenarios and scripts are excutable
76240a
76240a
After Jinja processing the test scenarios and test helper scripts they
76240a
lose their original permissions. This ensures they are readable and
76240a
executable.
76240a
76240a
The helper scripts are called by test scenarios and they need to be
76240a
executable.
76240a
---
76240a
 tests/ssg_test_suite/common.py | 2 ++
76240a
 1 file changed, 2 insertions(+)
76240a
76240a
diff --git a/tests/ssg_test_suite/common.py b/tests/ssg_test_suite/common.py
76240a
index 3dbeaf304a..130e5c960c 100644
76240a
--- a/tests/ssg_test_suite/common.py
76240a
+++ b/tests/ssg_test_suite/common.py
76240a
@@ -245,6 +245,8 @@ def _make_file_root_owned(tarinfo):
76240a
     if tarinfo:
76240a
         tarinfo.uid = 0
76240a
         tarinfo.gid = 0
76240a
+        # set permission to 775
76240a
+        tarinfo.mode = 509
76240a
     return tarinfo
76240a
 
76240a