[selinux-policy: 1637/3172] - Add a reload target to Modules.devel and change the load target to only insert modules that were

Daniel J Walsh dwalsh at fedoraproject.org
Thu Oct 7 21:26:36 UTC 2010


commit 59f8539306e0b0b0695c9bfba433ecc27145d5e8
Author: Chris PeBenito <cpebenito at tresys.com>
Date:   Mon Nov 13 03:36:13 2006 +0000

    - Add a reload target to Modules.devel and change the load
      target to only insert modules that were changed.

 Changelog              |    2 ++
 support/Makefile.devel |   11 ++++++++---
 2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/Changelog b/Changelog
index af9981f..87fd0ff 100644
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,5 @@
+- Add a reload target to Modules.devel and change the load
+  target to only insert modules that were changed.
 - Allow semanage to read from /root on strict non-MLS for
   local policy modules.
 - Gentoo init script fixes for udev.
diff --git a/support/Makefile.devel b/support/Makefile.devel
index 9c109eb..595f778 100644
--- a/support/Makefile.devel
+++ b/support/Makefile.devel
@@ -133,7 +133,7 @@ define peruser-expansion
 	$(verbose) echo "')" >> $2
 endef
 
-.PHONY: clean all xml load
+.PHONY: clean all xml load reload
 .SUFFIXES:
 .SUFFIXES: .pp
 # broken in make 3.81:
@@ -154,9 +154,14 @@ xml: $(polxml)
 #
 
 load: tmp/loaded
+tmp/loaded: $(all_packages)
+	@$(EINFO) "Loading $(NAME) modules: $(basename $(notdir $?))"
+	$(verbose) $(SEMODULE) $(foreach mod,$?,-i $(mod))
+	@mkdir -p tmp
+	@touch tmp/loaded
 
-tmp/loaded reload: $(all_packages)
-	@$(EINFO) "Loading $(NAME) modules: $(basename $(notdir $(all_packages)))"
+reload: $(all_packages)
+	@$(EINFO) "Loading $(NAME) modules: $(basename $(notdir $^))"
 	$(verbose) $(SEMODULE) $(foreach mod,$^,-i $(mod))
 	@mkdir -p tmp
 	@touch tmp/loaded


More information about the scm-commits mailing list