move file context validation to install
This commit is contained in:
parent
bbdbdb9edf
commit
96a150deac
|
@ -337,23 +337,25 @@ enableaudit: policy.conf
|
||||||
#
|
#
|
||||||
# Construct file_contexts
|
# Construct file_contexts
|
||||||
#
|
#
|
||||||
$(FC): $(M4SUPPORT) tmp/generated_definitions.conf $(ALL_FC_FILES) $(FCSORT) $(POLVER)
|
$(FC): $(M4SUPPORT) tmp/generated_definitions.conf $(ALL_FC_FILES) $(FCSORT)
|
||||||
ifeq ($(ALL_FC_FILES),)
|
ifeq ($(ALL_FC_FILES),)
|
||||||
$(error No enabled modules! $(notdir $(MOD_CONF)) may need to be generated by using "make conf")
|
$(error No enabled modules! $(notdir $(MOD_CONF)) may need to be generated by using "make conf")
|
||||||
endif
|
endif
|
||||||
|
@echo "Creating file_contexts."
|
||||||
@test -d tmp || mkdir -p tmp
|
@test -d tmp || mkdir -p tmp
|
||||||
$(QUIET) m4 $(M4PARAM) $(M4SUPPORT) tmp/generated_definitions.conf $(ALL_FC_FILES) > tmp/$@.tmp
|
$(QUIET) m4 $(M4PARAM) $(M4SUPPORT) tmp/generated_definitions.conf $(ALL_FC_FILES) > tmp/$@.tmp
|
||||||
$(QUIET) grep -e HOME -e ROLE tmp/$@.tmp > $(HOMEDIR_TEMPLATE)
|
$(QUIET) grep -e HOME -e ROLE tmp/$@.tmp > $(HOMEDIR_TEMPLATE)
|
||||||
$(QUIET) sed -i -e /HOME/d -e /ROLE/d tmp/$@.tmp
|
$(QUIET) sed -i -e /HOME/d -e /ROLE/d tmp/$@.tmp
|
||||||
$(QUIET) $(FCSORT) tmp/$@.tmp $@
|
$(QUIET) $(FCSORT) tmp/$@.tmp $@
|
||||||
@echo "Validating file_contexts."
|
|
||||||
$(SETFILES) -q -c $(POLVER) $(FC)
|
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
#
|
#
|
||||||
# Install file_contexts
|
# Install file_contexts
|
||||||
#
|
#
|
||||||
$(FCPATH): $(FC) $(USERPATH)/system.users
|
$(FCPATH): $(FC) $(LOADPATH) $(USERPATH)/system.users
|
||||||
|
@echo "Validating file_contexts."
|
||||||
|
$(SETFILES) -q -c $(LOADPATH) $(FC)
|
||||||
|
@echo "Installing file_contexts."
|
||||||
@mkdir -p $(CONTEXTPATH)/files
|
@mkdir -p $(CONTEXTPATH)/files
|
||||||
$(QUIET) install -m 644 $(FC) $(FCPATH)
|
$(QUIET) install -m 644 $(FC) $(FCPATH)
|
||||||
$(QUIET) install -m 644 $(HOMEDIR_TEMPLATE) $(HOMEDIRPATH)
|
$(QUIET) install -m 644 $(HOMEDIR_TEMPLATE) $(HOMEDIRPATH)
|
||||||
|
|
Loading…
Reference in New Issue