diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-04-25 06:28:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-25 06:28:40 -0700 |
commit | ee8488555b2a105bb48e8bf049133889e5e34bdf (patch) | |
tree | b45c99fd05c6e9349ddfcba83559d2bc1aaa135f /test/system/400-unprivileged-access.bats | |
parent | bc98f1c736f7559affd47b3f006b5a4151b82dab (diff) | |
parent | 78bd2eac0637fdcd93afbb6f9069b016d826e12c (diff) | |
download | podman-ee8488555b2a105bb48e8bf049133889e5e34bdf.tar.gz podman-ee8488555b2a105bb48e8bf049133889e5e34bdf.tar.bz2 podman-ee8488555b2a105bb48e8bf049133889e5e34bdf.zip |
Merge pull request #2974 from edsantiago/bats
bats - various small updates
Diffstat (limited to 'test/system/400-unprivileged-access.bats')
-rw-r--r-- | test/system/400-unprivileged-access.bats | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/system/400-unprivileged-access.bats b/test/system/400-unprivileged-access.bats index 0358b3beb..738d8d87b 100644 --- a/test/system/400-unprivileged-access.bats +++ b/test/system/400-unprivileged-access.bats @@ -31,6 +31,12 @@ die() { echo "#| FAIL: $*" >&2 echo "#\\^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" >&2 + # Show permissions of directories from here on up + while expr "$path" : "/var/lib/containers" >/dev/null; do + echo "#| $(ls -ld $path)" + path=$(dirname $path) + done + exit 1 } @@ -65,8 +71,10 @@ EOF # get podman image and container storage directories run_podman info --format '{{.store.GraphRoot}}' + is "$output" "/var/lib/containers/storage" "GraphRoot in expected place" GRAPH_ROOT="$output" run_podman info --format '{{.store.RunRoot}}' + is "$output" "/var/run/containers/storage" "RunRoot in expected place" RUN_ROOT="$output" # The main test: find all world-writable files or directories underneath |