summaryrefslogtreecommitdiff
path: root/test/system/500-networking.bats
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-06-01 15:26:18 -0600
committerEd Santiago <santiago@redhat.com>2021-06-01 15:26:18 -0600
commitb6167cedb2ba69a66646a94eb27c49bbbea88e15 (patch)
treed1608fa1bbf16dc3808854338e3bc0c6d28f60cd /test/system/500-networking.bats
parentcbffdddce6d741eac4f3efa132016aba99683500 (diff)
downloadpodman-b6167cedb2ba69a66646a94eb27c49bbbea88e15.tar.gz
podman-b6167cedb2ba69a66646a94eb27c49bbbea88e15.tar.bz2
podman-b6167cedb2ba69a66646a94eb27c49bbbea88e15.zip
System tests: add :Z to volume mounts
selinux-policy-34.9-1.fc34 breaks a behavior we've relied on since (at least) January 2020: - Revert "Add permission open to files_read_inherited_tmp_files() interface" That's probably the correct thing to do, but it breaks our existing tests. Solution: add ':Z' where needed. Tested on Ed's laptop, which has the offending selinux-policy as of 2021-05-31. Tests pass root and rootless. (I mention this because tests will obviously pass in CI, which has a much older selinux-policy). Also: add a 'podman rmi' for cleanup in one test, to avoid noise in test logs. Fixes: #10522 Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/system/500-networking.bats')
-rw-r--r--test/system/500-networking.bats4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/system/500-networking.bats b/test/system/500-networking.bats
index 1cec50827..63b9a7c14 100644
--- a/test/system/500-networking.bats
+++ b/test/system/500-networking.bats
@@ -34,7 +34,7 @@ load helpers
# Bind-mount this file with a different name to a container running httpd
run_podman run -d --name myweb -p "$HOST_PORT:80" \
--restart always \
- -v $INDEX1:/var/www/index.txt \
+ -v $INDEX1:/var/www/index.txt:Z \
-w /var/www \
$IMAGE /bin/busybox-extras httpd -f -p 80
cid=$output
@@ -257,7 +257,7 @@ load helpers
# Bind-mount this file with a different name to a container running httpd
run_podman run -d --name myweb -p "$HOST_PORT:80" \
--network $netname \
- -v $INDEX1:/var/www/index.txt \
+ -v $INDEX1:/var/www/index.txt:Z \
-w /var/www \
$IMAGE /bin/busybox-extras httpd -f -p 80
cid=$output