diff --git a/refpolicy/Rules.monolithic b/refpolicy/Rules.monolithic index b6aab0bc..95034857 100644 --- a/refpolicy/Rules.monolithic +++ b/refpolicy/Rules.monolithic @@ -101,9 +101,11 @@ $(TMPDIR)/pre_te_files.conf: $(PRE_TE_FILES) $(verbose) $(M4) $(M4PARAM) $^ > $@ $(TMPDIR)/generated_definitions.conf: $(ALL_TE_FILES) -# per-userdomain templates: @test -d $(TMPDIR) || mkdir -p $(TMPDIR) - $(verbose) echo "define(\`base_per_userdomain_template',\`" > $@ +# define all available object classes + $(verbose) $(GENPERM) $(AVS) $(SECCLASS) > $@ +# per-userdomain templates: + $(verbose) echo "define(\`base_per_userdomain_template',\`" >> $@ $(verbose) $(foreach mod,$(basename $(notdir $(ALL_MODULES))), \ echo "ifdef(\`""$(mod)""_per_userdomain_template',\`""$(mod)""_per_userdomain_template("'$$*'")')" >> $@ ;) $(verbose) echo "')" >> $@