Merge pull request #803 from mjibson/aci-rootfs
Allow listing of ACI rootfs by non-root
This commit is contained in:
commit
9df80d713e
1 changed files with 2 additions and 0 deletions
|
@ -43,4 +43,6 @@ class TarImageFormatter(object):
|
|||
""" Returns TAR file header data for a folder with the given name. """
|
||||
info = tarfile.TarInfo(name=name)
|
||||
info.type = tarfile.DIRTYPE
|
||||
# allow the directory to be readable by non-root users
|
||||
info.mode = 0755
|
||||
return info.tobuf()
|
Reference in a new issue