add target for validating module linking, bug 1276
This commit is contained in:
parent
bc5211d84a
commit
ea5333d1f9
@ -1,3 +1,4 @@
|
|||||||
|
- Add Make target to validate module linking.
|
||||||
- Make duplicate template and interface declarations a fatal error.
|
- Make duplicate template and interface declarations a fatal error.
|
||||||
- Patch to stabilize modules.conf `make conf` output, from Erich Schubert.
|
- Patch to stabilize modules.conf `make conf` output, from Erich Schubert.
|
||||||
- Move xconsole_device_t from devices to xserver since it is
|
- Move xconsole_device_t from devices to xserver since it is
|
||||||
|
@ -50,6 +50,8 @@ CHECKPOLICY := $(BINDIR)/checkpolicy
|
|||||||
CHECKMODULE := $(BINDIR)/checkmodule
|
CHECKMODULE := $(BINDIR)/checkmodule
|
||||||
SEMODULE := $(SBINDIR)/semodule
|
SEMODULE := $(SBINDIR)/semodule
|
||||||
SEMOD_PKG := $(BINDIR)/semodule_package
|
SEMOD_PKG := $(BINDIR)/semodule_package
|
||||||
|
SEMOD_LNK := $(BINDIR)/semodule_link
|
||||||
|
SEMOD_EXP := $(BINDIR)/semodule_expand
|
||||||
LOADPOLICY := $(SBINDIR)/load_policy
|
LOADPOLICY := $(SBINDIR)/load_policy
|
||||||
SETFILES := $(SBINDIR)/setfiles
|
SETFILES := $(SBINDIR)/setfiles
|
||||||
GENHOMEDIRCON := $(SBINDIR)/genhomedircon
|
GENHOMEDIRCON := $(SBINDIR)/genhomedircon
|
||||||
|
@ -50,6 +50,9 @@ load Compile, package, and install the base module and
|
|||||||
loadable modules, then insert them into the module
|
loadable modules, then insert them into the module
|
||||||
store.
|
store.
|
||||||
|
|
||||||
|
validate Validate if the configured modules can successfully
|
||||||
|
link and expand.
|
||||||
|
|
||||||
Make targets specific to monolithic policies:
|
Make targets specific to monolithic policies:
|
||||||
|
|
||||||
policy Compile a policy locally for development and testing.
|
policy Compile a policy locally for development and testing.
|
||||||
|
@ -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) $(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 $@
|
$(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
|
# Clean the sources
|
||||||
@ -223,4 +233,4 @@ clean:
|
|||||||
rm -f $(BUILDDIR)*.pp
|
rm -f $(BUILDDIR)*.pp
|
||||||
rm -fR $(TMPDIR)
|
rm -fR $(TMPDIR)
|
||||||
|
|
||||||
.PHONY: default all policy base modules install load clean
|
.PHONY: default all policy base modules install load clean validate
|
||||||
|
Loading…
Reference in New Issue
Block a user