mirror of https://github.com/ceph/go-ceph
Makefile: Fix CONTAINER_OPTS for Fedora
Fedora based distributions don't use AppArmor but SELinux instead. This change detects the distribution and sets the --security-opts accordingly. Signed-off-by: Sven Anderson <sven@redhat.com>
This commit is contained in:
parent
09b6977dc9
commit
1bc4d888b8
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
|||
DOCKER_CI_IMAGE = go-ceph-ci
|
||||
CONTAINER_CMD := docker
|
||||
CONTAINER_OPTS := --security-opt apparmor:unconfined
|
||||
CONTAINER_OPTS := --security-opt $(shell grep -q selinux /sys/kernel/security/lsm && echo "label=disabled" || echo "apparmor:unconfined")
|
||||
VOLUME_FLAGS :=
|
||||
|
||||
SELINUX := $(shell getenforce 2>/dev/null)
|
||||
|
|
Loading…
Reference in New Issue