add target for validating module linking, bug 1276

This commit is contained in:
Chris PeBenito 2006-05-02 20:14:41 +00:00
parent bc5211d84a
commit ea5333d1f9
4 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,4 @@
- Add Make target to validate module linking.
- Make duplicate template and interface declarations a fatal error.
- Patch to stabilize modules.conf `make conf` output, from Erich Schubert.
- Move xconsole_device_t from devices to xserver since it is

View File

@ -50,6 +50,8 @@ CHECKPOLICY := $(BINDIR)/checkpolicy
CHECKMODULE := $(BINDIR)/checkmodule
SEMODULE := $(SBINDIR)/semodule
SEMOD_PKG := $(BINDIR)/semodule_package
SEMOD_LNK := $(BINDIR)/semodule_link
SEMOD_EXP := $(BINDIR)/semodule_expand
LOADPOLICY := $(SBINDIR)/load_policy
SETFILES := $(SBINDIR)/setfiles
GENHOMEDIRCON := $(SBINDIR)/genhomedircon

View File

@ -50,6 +50,9 @@ load Compile, package, and install the base module and
loadable modules, then insert them into the module
store.
validate Validate if the configured modules can successfully
link and expand.
Make targets specific to monolithic policies:
policy Compile a policy locally for development and testing.

View File

@ -213,6 +213,16 @@ $(APPDIR)/customizable_types: $(BASE_CONF)
$(verbose) $(GREP) '^[[:blank:]]*type .*customizable' $< | cut -d';' -f1 | cut -d',' -f1 | cut -d' ' -f2 | $(SORT) -u > $(TMPDIR)/customizable_types
$(verbose) install -m 644 $(TMPDIR)/customizable_types $@
########################################
#
# Validate linking and expanding of modules
#
validate: $(BASE_PKG) $(MOD_PKGS)
@echo "Validating policy linking."
$(verbose) $(SEMOD_LNK) -o $(TMPDIR)/test.lnk $^
$(verbose) $(SEMOD_EXP) $(TMPDIR)/test.lnk $(TMPDIR)/policy.bin
@echo "Success."
########################################
#
# Clean the sources
@ -223,4 +233,4 @@ clean:
rm -f $(BUILDDIR)*.pp
rm -fR $(TMPDIR)
.PHONY: default all policy base modules install load clean
.PHONY: default all policy base modules install load clean validate