diff --git a/cluster/images/etcd/Makefile b/cluster/images/etcd/Makefile index 4ec0e858904..4b863c4cf94 100644 --- a/cluster/images/etcd/Makefile +++ b/cluster/images/etcd/Makefile @@ -49,11 +49,12 @@ PUSH_REGISTRY?=staging-k8s.gcr.io MANIFEST_IMAGE := $(PUSH_REGISTRY)/etcd -SELINUX_ENABLED := $(shell cat /sys/fs/selinux/enforce 2> /dev/null || echo 0) - # Install binaries matching base distro permissions BIN_INSTALL := install -m 0555 +# Hosts running SELinux need :z added to volume mounts +SELINUX_ENABLED := $(shell cat /sys/fs/selinux/enforce 2> /dev/null || echo 0) + ifeq ($(SELINUX_ENABLED),1) DOCKER_VOL_OPTS?=:z endif