Policy makefile
Subsystems (2)
The attached patch will cause policy.conf to be rebuilt when a .te file is removed from domains/misc or domains/program, or if a file is added to those directories that is not newer than policy.conf (EG moving a file from the unused directory).
Signature · 4 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page
Makefile renamed from Makefile.orig +3 -2
@@ -46,6 +46,7 @@ POLICYFILES += $(ALL_TUNABLES) $(TE_RBAC_FILES) POLICYFILES += $(USER_FILES) POLICYFILES += constraints initial_sid_contexts fs_use genfs_contexts net_contexts +POLICY_DIRS = domains/program domains/misc UNUSED_TE_FILES := $(wildcard domains/program/unused/*.te)
@@ -146,9 +147,9 @@ grep -v dontaudit policy.conf > policy.audit mv policy.audit policy.conf -policy.conf: $(POLICYFILES) +policy.conf: $(POLICYFILES) $(POLICY_DIRS) mkdir -p tmp - m4 $(M4PARAM) -Imacros -s $^ > [email protected] + m4 $(M4PARAM) -Imacros -s $(POLICYFILES) > [email protected] mv [email protected] $@ install-src: