diff options
author | Chris PeBenito <chpebeni@linux.microsoft.com> | 2020-07-10 09:07:52 -0400 |
---|---|---|
committer | Jason Zaman <perfinion@gentoo.org> | 2020-08-09 19:58:46 -0700 |
commit | f9b2881c8361e78c78c8dda12fb2c75d409022c7 (patch) | |
tree | 9baa960b3cd4199ea29461e63345d5530b094139 /Rules.monolithic | |
parent | openvpn: Module version bump. (diff) | |
download | hardened-refpolicy-f9b2881c8361e78c78c8dda12fb2c75d409022c7.tar.gz hardened-refpolicy-f9b2881c8361e78c78c8dda12fb2c75d409022c7.tar.bz2 hardened-refpolicy-f9b2881c8361e78c78c8dda12fb2c75d409022c7.zip |
Move user definitions to the right place during compilation.
This will allow user definitions in modules to work for monolithic policies
and base module.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
Signed-off-by: Jason Zaman <perfinion@gentoo.org>
Diffstat (limited to 'Rules.monolithic')
-rw-r--r-- | Rules.monolithic | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Rules.monolithic b/Rules.monolithic index 51c45830..a8ae98d1 100644 --- a/Rules.monolithic +++ b/Rules.monolithic @@ -134,9 +134,10 @@ endif @test -d $(tmpdir) || mkdir -p $(tmpdir) $(verbose) $(M4) $(M4PARAM) -s $^ > $@ -$(tmpdir)/post_te_files.conf: $(m4support) $(tmpdir)/generated_definitions.conf $(post_te_files) +$(tmpdir)/post_te_files.conf: $(m4support) $(tmpdir)/generated_definitions.conf $(post_te_files) $(tmpdir)/all_te_files.conf @test -d $(tmpdir) || mkdir -p $(tmpdir) - $(verbose) $(M4) $(M4PARAM) $^ > $@ + $(verbose) $(GREP) '^[[:blank:]]*user ' $(tmpdir)/all_te_files.conf > $@ || true + $(verbose) $(M4) $(M4PARAM) $(m4support) $(tmpdir)/generated_definitions.conf $(post_te_files) >> $@ # extract attributes and put them first. extract post te stuff # like genfscon and put last. |