Research
Skip Research Menus
Research MenuSecurity Enhanced Linux What's New Frequently Asked Questions Background Documents License Download Participating Mail List Archives Remaining Work Contributors Related Work Press Releases Information Assurance Research NIARL In-house Research Areas Mathematical Sciences Program Sabbaticals Computer & Information Sciences Research Technology Transfer Advanced Computing Advanced Mathematics Communications & Networking Information Processing Microelectronics Other Technologies Technology Fact Sheets Publications Related Links |
SELinux Mailing List[PATCH] Re: ANN: Reference Policy Release
From: Serge E. Hallyn <serue_at_us.ibm.com>
Date: Wed, 21 Dec 2005 19:25:51 -0600
Right :) I just had no idea how it was meant to be implemented. The following patch is one way of implementing the optional_policy macro for policy modules. Likely not the best, but I can now do a full 'make modules'.
thanks,
Index: refpolicy/Rules.modular
base: $(BASE_PKG) -modules: $(MOD_PKGS) +active_modules: $(MOD_CONF) + echo $(MOD_MODS) | sed -e 's/ /\n/g' \ + | sed -e 's/^\(.*\)$$/define(`\1\x27,1)/' \ + > active_modules + +modules: active_modules $(MOD_PKGS) install: $(INSTPKG) $(APPFILES) @@ -62,7 +67,7 @@ $(MODPKGDIR)/%.pp: %.pp # # Build module packages # -tmp/%.mod: $(M4SUPPORT) tmp/generated_definitions.conf tmp/all_interfaces.conf %.te +tmp/%.mod: active_modules $(M4SUPPORT) tmp/generated_definitions.conf tmp/all_interfaces.conf %.te @echo "Compliling $(NAME) $(@F) module" $(QUIET) m4 $(M4PARAM) -s $^ > $(@:.mod=.tmp) $(QUIET) $(CHECKMODULE) -m $(@:.mod=.tmp) -o $@ @@ -186,5 +191,6 @@ clean: rm -f *.pp rm -f $(BASE_FC) rm -fR tmp + rm -f active_modules .PHONY: default all base modules install load clean Index: refpolicy/policy/support/loadable_module.spt
############################## -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.Received on Wed 21 Dec 2005 - 20:26:01 EST |
|
Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009 |