summaryrefslogtreecommitdiff
path: root/test/system/030-run.bats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-30 17:22:54 +0000
committerGitHub <noreply@github.com>2020-09-30 17:22:54 +0000
commitf86e01ab10821d99cebb82d10c3bd5dad77af8c6 (patch)
tree8076aa51152c2c6f5e17719e896acec1182f2676 /test/system/030-run.bats
parente2050d7c351d14cab2ccaa09f8a6409688496727 (diff)
parent703381b4a2b1dc761ffee0d8e36b47f21ffd92c5 (diff)
downloadpodman-f86e01ab10821d99cebb82d10c3bd5dad77af8c6.tar.gz
podman-f86e01ab10821d99cebb82d10c3bd5dad77af8c6.tar.bz2
podman-f86e01ab10821d99cebb82d10c3bd5dad77af8c6.zip
Merge pull request #7820 from giuseppe/fix-capabilities-not-root
capabilities: always set ambient and inheritable
Diffstat (limited to 'test/system/030-run.bats')
-rw-r--r--test/system/030-run.bats4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats
index eb740f04b..766948ecc 100644
--- a/test/system/030-run.bats
+++ b/test/system/030-run.bats
@@ -319,7 +319,7 @@ echo $rand | 0 | $rand
# #6991 : /etc/passwd is modifiable
@test "podman run : --userns=keep-id: passwd file is modifiable" {
- run_podman run -d --userns=keep-id $IMAGE sh -c 'while ! test -e /stop; do sleep 0.1; done'
+ run_podman run -d --userns=keep-id --cap-add=dac_override $IMAGE sh -c 'while ! test -e /tmp/stop; do sleep 0.1; done'
cid="$output"
# Assign a UID that is (a) not in our image /etc/passwd and (b) not
@@ -340,7 +340,7 @@ echo $rand | 0 | $rand
is "$output" "newuser3:x:$uid:999:$gecos:/home/newuser3:/bin/sh" \
"newuser3 added to /etc/passwd in container"
- run_podman exec $cid touch /stop
+ run_podman exec $cid touch /tmp/stop
run_podman wait $cid
}