mkdir policy and file contexts dirs in make load of modular policy.
This commit is contained in:
parent
85f0c35922
commit
212832373e
2
Makefile
2
Makefile
@ -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
|
||||
|
@ -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))
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user