compose: Make sure temporary dirs are world readable
When the temporary directory is created with 0700, other programs (potentially on another host) will have problems reading it. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com> JIRA: RHELCMP-7635
This commit is contained in:
parent
20c2e59218
commit
260b3fce8d
@ -607,7 +607,9 @@ class Compose(kobo.log.LoggingBase):
|
||||
<compose_topdir>/work/{global,<arch>}/tmp[-<variant>]/
|
||||
"""
|
||||
path = os.path.join(self.paths.work.tmp_dir(arch=arch, variant=variant))
|
||||
return tempfile.mkdtemp(suffix=suffix, prefix=prefix, dir=path)
|
||||
tmpdir = tempfile.mkdtemp(suffix=suffix, prefix=prefix, dir=path)
|
||||
os.chmod(tmpdir, 0o755)
|
||||
return tmpdir
|
||||
|
||||
def dump_containers_metadata(self):
|
||||
"""Create a file with container metadata if there are any containers."""
|
||||
|
Loading…
Reference in New Issue
Block a user