diff mbox series

[styhead,08/12] resulttool/store: Fix permissions of logarchive

Message ID 3600dc1053e083c5379ebf38fa1dd53a7f44a6f9.1738965898.git.steve@sakoman.com
State Accepted
Delegated to: Steve Sakoman
Headers show
Series [styhead,01/12] libnsl2: set CVE_PRODUCT | expand

Commit Message

Steve Sakoman Feb. 7, 2025, 10:06 p.m. UTC
From: Richard Purdie <richard.purdie@linuxfoundation.org>

We want the results directory to be visable to other users, tweak the
permissions of the created directory to ensure this is the case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ed9d887e8d71a800db19826264de552f7736dc6a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
 scripts/lib/resulttool/store.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/scripts/lib/resulttool/store.py b/scripts/lib/resulttool/store.py
index 578910d234..b143334e69 100644
--- a/scripts/lib/resulttool/store.py
+++ b/scripts/lib/resulttool/store.py
@@ -87,6 +87,7 @@  def store(args, logger):
             if args.logfile_archive:
                 logdir = args.logfile_archive + "/" + tagname
                 shutil.copytree(tempdir, logdir)
+                os.chmod(logdir, 0o755)
                 for root, dirs,  files in os.walk(logdir):
                     for name in files:
                         if not name.endswith(".log"):