[selinux-policy/f16: 1/3] Check for mls_enabled using pathon rather then by path

Daniel J Walsh dwalsh at fedoraproject.org
Wed Aug 10 17:54:11 UTC 2011


commit e69db83213f86f58cf9ef13efcf67a59229a00fa
Author: Dan Walsh <dwalsh at redhat.com>
Date:   Tue Aug 9 15:22:38 2011 -0400

    Check for mls_enabled using pathon rather then by path

 Makefile.devel |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.devel b/Makefile.devel
index ccd143a..20c8859 100644
--- a/Makefile.devel
+++ b/Makefile.devel
@@ -4,7 +4,7 @@ SHAREDIR := /usr/share/selinux
 AWK ?= gawk
 NAME ?= $(strip $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config))
 
-MLSENABLED := $(shell cat /selinux/mls)
+MLSENABLED := $(shell python -c "import selinux; print(selinux.is_selinux_mls_enabled())")
 ifeq ($(MLSENABLED),)
 	MLSENABLED := 1
 endif


More information about the scm-commits mailing list