summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenWeber42 <dev.ben.weber@gmail.com>2021-02-09 19:12:43 +0100
committerGitHub <noreply@github.com>2021-02-09 10:12:43 -0800
commite5ab686d77d857a26311aadbc63e897419af7770 (patch)
tree35ceffe17e48d2669839b4f6635f43ec0cd2d114
parente4d74825f3ec1d95eb79a01eb109a4ce863609c6 (diff)
downloadspack-e5ab686d77d857a26311aadbc63e897419af7770.tar.gz
spack-e5ab686d77d857a26311aadbc63e897419af7770.tar.bz2
spack-e5ab686d77d857a26311aadbc63e897419af7770.tar.xz
spack-e5ab686d77d857a26311aadbc63e897419af7770.zip
Changed stages permissions to 750 (#21425)
-rw-r--r--lib/spack/spack/stage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/stage.py b/lib/spack/spack/stage.py
index cfdf119d49..c39b4d2f33 100644
--- a/lib/spack/spack/stage.py
+++ b/lib/spack/spack/stage.py
@@ -603,12 +603,12 @@ class Stage(object):
"""
Ensures the top-level (config:build_stage) directory exists.
"""
- # Emulate file permissions for tempfile.mkdtemp.
+ # User has full permissions and group has only read permissions
if not os.path.exists(self.path):
- mkdirp(self.path, mode=stat.S_IRWXU)
+ mkdirp(self.path, mode=stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP)
elif not os.path.isdir(self.path):
os.remove(self.path)
- mkdirp(self.path, mode=stat.S_IRWXU)
+ mkdirp(self.path, mode=stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP)
# Make sure we can actually do something with the stage we made.
ensure_access(self.path)