diff --git a/refpolicy/Makefile b/refpolicy/Makefile index bc1c474..d674946 100644 --- a/refpolicy/Makefile +++ b/refpolicy/Makefile @@ -306,6 +306,9 @@ enableaudit: policy.conf # Construct file_contexts # $(FC): $(M4SUPPORT) tmp/generated_definitions.conf $(ALL_FC_FILES) $(FCSORT) +ifeq ($(ALL_FC_FILES),) + $(error No enabled modules! $(notdir $(MOD_CONF)) may need to be generated by using "make conf") +endif @test -d tmp || mkdir -p tmp $(QUIET) m4 $(M4PARAM) $(M4SUPPORT) tmp/generated_definitions.conf $(ALL_FC_FILES) > tmp/$@.tmp $(QUIET) grep -e HOME -e ROLE tmp/$@.tmp > $(HOMEDIR_TEMPLATE) @@ -368,7 +371,7 @@ $(MOD_CONF) $(TUNABLES): $(POLXML) # this and its dependents every time the dependencies # change. Also use all .if files here, rather then just the # enabled modules. -$(POLXML): $(DETECTED_MODS:.te=.if) +$(POLXML): $(DETECTED_MODS:.te=.if) $(foreach dir,$(ALL_LAYERS),$(dir)/$(LAYERXML)) @echo "Creating $@" @mkdir -p tmp $(QUIET) echo '' > $@ diff --git a/refpolicy/doc/policy.dtd b/refpolicy/doc/policy.dtd index 801e57f..166f827 100644 --- a/refpolicy/doc/policy.dtd +++ b/refpolicy/doc/policy.dtd @@ -1,7 +1,7 @@ - + diff --git a/refpolicy/policy/modules/admin/metadata.xml b/refpolicy/policy/modules/admin/metadata.xml index e69de29..bd8d174 100644 --- a/refpolicy/policy/modules/admin/metadata.xml +++ b/refpolicy/policy/modules/admin/metadata.xml @@ -0,0 +1,3 @@ + + Policy modules for administrative functions, such as package management. + diff --git a/refpolicy/policy/modules/apps/metadata.xml b/refpolicy/policy/modules/apps/metadata.xml index e69de29..a5ad4c0 100644 --- a/refpolicy/policy/modules/apps/metadata.xml +++ b/refpolicy/policy/modules/apps/metadata.xml @@ -0,0 +1 @@ +Policy modules for applications diff --git a/refpolicy/policy/modules/kernel/metadata.xml b/refpolicy/policy/modules/kernel/metadata.xml index e69de29..d1da3a2 100644 --- a/refpolicy/policy/modules/kernel/metadata.xml +++ b/refpolicy/policy/modules/kernel/metadata.xml @@ -0,0 +1 @@ +Policy modules for kernel resources. diff --git a/refpolicy/policy/modules/services/metadata.xml b/refpolicy/policy/modules/services/metadata.xml index e69de29..4e6ec17 100644 --- a/refpolicy/policy/modules/services/metadata.xml +++ b/refpolicy/policy/modules/services/metadata.xml @@ -0,0 +1,4 @@ + + Policy modules for system services, like cron, and network services, + like sshd. + diff --git a/refpolicy/policy/modules/system/metadata.xml b/refpolicy/policy/modules/system/metadata.xml index e69de29..4866e97 100644 --- a/refpolicy/policy/modules/system/metadata.xml +++ b/refpolicy/policy/modules/system/metadata.xml @@ -0,0 +1,3 @@ + + Policy modules for system functions from init to multi-user login. +