summaryrefslogtreecommitdiff
path: root/test/system/030-run.bats
diff options
context:
space:
mode:
authorNiall Crowe <nicrowe@redhat.com>2022-05-30 11:11:00 +0100
committerMatthew Heon <mheon@redhat.com>2022-06-14 14:35:36 -0400
commit5b6252467335656980cb4c3acdd5e7b0e2478429 (patch)
treeda4d2ce2bb5a20f974577c335702e65aa95bdaa8 /test/system/030-run.bats
parent8612facae52b6f45c291bda2bcda28d850b48128 (diff)
downloadpodman-5b6252467335656980cb4c3acdd5e7b0e2478429.tar.gz
podman-5b6252467335656980cb4c3acdd5e7b0e2478429.tar.bz2
podman-5b6252467335656980cb4c3acdd5e7b0e2478429.zip
Podman no-new-privileges format
In docker, the format of no-new-privileges is "no-new-privileges:true". However, for Podman all that's required is "no-new-privileges", leading to issues when attempting to use features desgined for docker in podman. Adding support for the ":" format to be used along with the "=" format, depedning on which one is entered by the user. fixes #14133 Signed-off-by: Niall Crowe <nicrowe@redhat.com>
Diffstat (limited to 'test/system/030-run.bats')
-rw-r--r--test/system/030-run.bats11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats
index 283c3aea9..241831257 100644
--- a/test/system/030-run.bats
+++ b/test/system/030-run.bats
@@ -855,4 +855,15 @@ EOF
run_podman rmi $test_image
}
+@test "podman create --security-opt" {
+ run_podman create --security-opt no-new-privileges=true $IMAGE
+ run_podman rm $output
+ run_podman create --security-opt no-new-privileges:true $IMAGE
+ run_podman rm $output
+ run_podman create --security-opt no-new-privileges=false $IMAGE
+ run_podman rm $output
+ run_podman create --security-opt no-new-privileges $IMAGE
+ run_podman rm $output
+}
+
# vim: filetype=sh