mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 16:27:50 +00:00
rootfs: Don't fallthrough in the docker_extra_args() switch
Falling through the switch cases in docker_extra_args() looks like a typo and causes issues when building with podman, as `--security-opt apparmor=unconfinded" shouldn't be passed if Apparmor is no enable on the system. Fixes: #1241 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
1edb7fe7da
commit
499aa24d38
@ -200,7 +200,7 @@ docker_extra_args()
|
|||||||
args+=" --cap-add SYS_CHROOT"
|
args+=" --cap-add SYS_CHROOT"
|
||||||
# debootstrap needs to create device nodes to properly function
|
# debootstrap needs to create device nodes to properly function
|
||||||
args+=" --cap-add MKNOD"
|
args+=" --cap-add MKNOD"
|
||||||
;&
|
;;
|
||||||
suse)
|
suse)
|
||||||
# Required to mount inside a container
|
# Required to mount inside a container
|
||||||
args+=" --cap-add SYS_ADMIN"
|
args+=" --cap-add SYS_ADMIN"
|
||||||
|
Loading…
Reference in New Issue
Block a user