Skip to content

Commit

Permalink
verify: Simulate strict umask
Browse files Browse the repository at this point in the history
  • Loading branch information
phlax committed Aug 1, 2024
1 parent f010aa3 commit 8e0fd0d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion verify_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ complete () {
}

verify () {
tar xf $EXAMPLE_DIR -C $RUNDIR
tar xf "$EXAMPLE_DIR" -C "$RUNDIR"
export DOCKER_NO_PULL=1
export DOCKER_RMI_CLEANUP=1
# This is set to simulate an environment where users have shared home drives protected
# by a strong umask (ie only group readable by default).
umask 027
chmod -R o-rwx "$RUNDIR"
cd "$RUNDIR"
dirlist=$(ls .)
if [[ "$dirlist" == "external" ]]; then
Expand Down

0 comments on commit 8e0fd0d

Please sign in to comment.