summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorNiall Crowe <nicrowe@redhat.com>2022-05-30 11:11:00 +0100
committerNiall Crowe <nicrowe@redhat.com>2022-05-30 15:06:42 +0100
commit7e69e2b53291dc839ea98c3b06d1c49ffe4bc90d (patch)
treec732991d79c60b6d591128210ae9a8e1b6356f16 /test/system
parenta550af260a536aeaa35e4b8810971748a6f16f5f (diff)
downloadpodman-7e69e2b53291dc839ea98c3b06d1c49ffe4bc90d.tar.gz
podman-7e69e2b53291dc839ea98c3b06d1c49ffe4bc90d.tar.bz2
podman-7e69e2b53291dc839ea98c3b06d1c49ffe4bc90d.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')
-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