mkdir policy and file contexts dirs in make load of modular policy.

This commit is contained in:
Chris PeBenito 2006-10-10 15:09:59 +00:00
parent 85f0c35922
commit 212832373e
3 changed files with 5 additions and 2 deletions

View File

@ -148,7 +148,9 @@ topdir = $(DESTDIR)/etc/selinux
installdir = $(topdir)/$(strip $(NAME))
srcpath = $(installdir)/src
userpath = $(installdir)/users
policypath = $(installdir)/policy
contextpath = $(installdir)/contexts
homedirpath = $(contextpath)/files/homedir_template
fcpath = $(contextpath)/files/file_contexts
ncpath = $(contextpath)/netfilter_contexts
sharedir = $(prefix)/share/selinux

View File

@ -52,6 +52,9 @@ install: $(instpkg) $(appfiles)
# Load all configured modules
#
load: $(instpkg) $(appfiles)
# make sure two directories exist since they are not
# created by semanage
@mkdir -p $(policypath) $(dir $(fcpath))
@echo "Loading configured modules."
$(verbose) $(SEMODULE) -s $(NAME) -b $(modpkgdir)/$(notdir $(base_pkg)) $(foreach mod,$(mod_pkgs),-i $(modpkgdir)/$(mod))

View File

@ -21,9 +21,7 @@ homedir_template = $(builddir)homedir_template
M4PARAM += -D self_contained_policy
# install paths
policypath = $(installdir)/policy
loadpath = $(policypath)/$(notdir $(polver))
homedirpath = $(contextpath)/files/homedir_template
appfiles += $(installdir)/booleans $(userpath)/local.users