Use new syntax for selinux options in quadlet

Fixes: https://github.com/containers/podman/issues/23432

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2024-07-30 06:15:43 -04:00
parent 2316d914b5
commit 1c46686a41
3 changed files with 4 additions and 4 deletions

View File

@ -615,12 +615,12 @@ func ConvertContainer(container *parser.UnitFile, names map[string]string, isUse
securityLabelDisable := container.LookupBooleanWithDefault(ContainerGroup, KeySecurityLabelDisable, false)
if securityLabelDisable {
podman.add("--security-opt", "label:disable")
podman.add("--security-opt", "label=disable")
}
securityLabelNested := container.LookupBooleanWithDefault(ContainerGroup, KeySecurityLabelNested, false)
if securityLabelNested {
podman.add("--security-opt", "label:nested")
podman.add("--security-opt", "label=nested")
}
pidsLimit, ok := container.Lookup(ContainerGroup, KeyPidsLimit)

View File

@ -1,5 +1,5 @@
## assert-podman-final-args localhost/imagename
## assert-podman-args "--security-opt" "label:disable"
## assert-podman-args "--security-opt" "label=disable"
[Container]
Image=localhost/imagename

View File

@ -1,4 +1,4 @@
## assert-podman-args "--security-opt" "label:nested"
## assert-podman-args "--security-opt" "label=nested"
[Container]
Image=localhost/imagename