Changed stages permissions to 750 (#21425)
This commit is contained in:
@@ -603,12 +603,12 @@ def create(self):
|
|||||||
"""
|
"""
|
||||||
Ensures the top-level (config:build_stage) directory exists.
|
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):
|
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):
|
elif not os.path.isdir(self.path):
|
||||||
os.remove(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.
|
# Make sure we can actually do something with the stage we made.
|
||||||
ensure_access(self.path)
|
ensure_access(self.path)
|
||||||
|
|||||||
Reference in New Issue
Block a user