File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,16 @@ TOYBOX_ROOT := $(BASEDIR)/tmp
5757TOYBOX_VER := 0.8.8
5858TOYBOX_SRC := $(TOYBOX_ROOT ) /toybox-$(TOYBOX_VER )
5959
60- ifeq ($(SELINUX_ENABLED ) ,)
61- SELINUX_ENABLED := 0
60+
61+ ifdef SELINUX_ENABLED
62+ override SELINUX_ENABLED := 0
63+ # Now check if we should enable it (only on non-Windows)
6264 ifneq ($(OS),Windows_NT)
63- ifeq ($(shell /sbin/selinuxenabled 2>/dev/null ; echo $$?),0)
64- SELINUX_ENABLED := 1
65+ ifeq ($(shell if [ -x /sbin/selinuxenabled ] && /sbin/selinuxenabled 2>/dev/null; then echo 0; else echo 1; fi),0)
66+ override SELINUX_ENABLED := 1
67+ $(info /sbin/selinuxenabled successful)
68+ else
69+ $(info SELINUX_ENABLED=1 but /sbin/selinuxenabled failed)
6570 endif
6671 endif
6772endif
You can’t perform that action at this time.
0 commit comments