[selinux-policy: 462/3172] validate file contexts

Daniel J Walsh dwalsh at fedoraproject.org
Thu Oct 7 19:44:37 UTC 2010


commit 14b25bc4551a479cd05bc85d3dd353d8579715da
Author: Chris PeBenito <cpebenito at tresys.com>
Date:   Wed Jul 6 18:34:27 2005 +0000

    validate file contexts

 refpolicy/Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/refpolicy/Makefile b/refpolicy/Makefile
index d6524b0..698f055 100644
--- a/refpolicy/Makefile
+++ b/refpolicy/Makefile
@@ -316,7 +316,7 @@ enableaudit: policy.conf
 #
 # Construct file_contexts
 #
-$(FC): $(M4SUPPORT) tmp/generated_definitions.conf $(ALL_FC_FILES) $(FCSORT)
+$(FC): $(M4SUPPORT) tmp/generated_definitions.conf $(ALL_FC_FILES) $(FCSORT) $(POLVER)
 ifeq ($(ALL_FC_FILES),)
 	$(error No enabled modules! $(notdir $(MOD_CONF)) may need to be generated by using "make conf")
 endif
@@ -325,6 +325,8 @@ endif
 	$(QUIET) grep -e HOME -e ROLE tmp/$@.tmp > $(HOMEDIR_TEMPLATE)
 	$(QUIET) sed -i -e /HOME/d -e /ROLE/d tmp/$@.tmp
 	$(QUIET) $(FCSORT) tmp/$@.tmp $@
+	@echo "Validating file_contexts."
+	$(SETFILES) -q -c $(POLVER) $(FC)
 
 ########################################
 #


More information about the scm-commits mailing list