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

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