summaryrefslogtreecommitdiff
path: root/test/system/030-run.bats
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-12-31 08:57:37 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2021-12-31 08:59:09 -0500
commit2ff5644bf8d0fec91d74a541d680bf91c7008bd1 (patch)
tree53784697ad1c6fa1afce973ebeb03400b9cf2349 /test/system/030-run.bats
parentfc65b0f73c8803d98f772d07c7a8e9f47769f3fd (diff)
downloadpodman-2ff5644bf8d0fec91d74a541d680bf91c7008bd1.tar.gz
podman-2ff5644bf8d0fec91d74a541d680bf91c7008bd1.tar.bz2
podman-2ff5644bf8d0fec91d74a541d680bf91c7008bd1.zip
test/system: podman run image with filesystem permission
This test case is used for covering rhbz#1854566. Replaces: #12220 Signed-off-by: Alex Jia <ajia@redhat.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/system/030-run.bats')
-rw-r--r--test/system/030-run.bats7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats
index 5e85e9869..d81a0758c 100644
--- a/test/system/030-run.bats
+++ b/test/system/030-run.bats
@@ -778,6 +778,13 @@ EOF
is "$output" "1.2.3.4 foo.com.*" "users can add hosts even without /etc/hosts"
}
+# rhbz#1854566 : $IMAGE has incorrect permission 555 on the root '/' filesystem
+@test "podman run image with filesystem permission" {
+ # make sure the IMAGE image have permissiong of 555 like filesystem RPM expects
+ run_podman run --rm $IMAGE stat -c %a /
+ is "$output" "555" "directory permissions on /"
+}
+
# rhbz#1763007 : the --log-opt for podman run does not work as expected
@test "podman run with log-opt option" {
# Pseudorandom size of the form N.NNN. The '| 1' handles '0.NNN' or 'N.NN0',