Commit 7ce9cd69 authored by Byron Clark's avatar Byron Clark Committed by Aaron Griffin
Browse files

Reset umask before touching the chroot.



This prevents problems when running with a umask that masks permissions
for others.

Signed-off-by: default avatarByron Clark <byron@theclarkfamily.name>
Signed-off-by: default avatarAaron Griffin <aaronmgriffin@gmail.com>
parent a7d88845
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -104,6 +104,7 @@ if [ ! -d "$chrootdir/root" ]; then
    usage
fi

umask 000
[ -d "$chrootdir/$LAYER" -a "$clean_first" -eq "1" ] && rm -rf "$chrootdir/$LAYER/" 
[ -d "$chrootdir/$LAYER" ] || mkdir "$chrootdir/$LAYER"
[ -d "$chrootdir/union" ] || mkdir "$chrootdir/union"
+1 −0
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@ chroot_umount ()
}
# }}}

umask 000
if [ "$RUN" != "" ]; then
    # run chroot {{{
    #Sanity check