diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2019-10-03 22:38:39 +0200 |
---|---|---|
committer | Jason Zaman <perfinion@gentoo.org> | 2019-12-16 21:13:11 +0800 |
commit | 2733f39a4996c8023e3e39ac8a65e2ca92d758de (patch) | |
tree | f97f8c99b515437def85c37214c26313d0bfecf2 /Rules.modular | |
parent | travis: run check_fc_files linter with python 3.7 (diff) | |
download | hardened-refpolicy-2733f39a4996c8023e3e39ac8a65e2ca92d758de.tar.gz hardened-refpolicy-2733f39a4996c8023e3e39ac8a65e2ca92d758de.tar.bz2 hardened-refpolicy-2733f39a4996c8023e3e39ac8a65e2ca92d758de.zip |
re-implement fc_sort in python
fc_sort is the only/last build tool that requires a C compiler
Re-implement it in python, so that gcc dependencies can be dropped
The output of the C and the python version differ slightly in the order of equally specific file contexts
old:
/.* system_u:object_r:default_t
/sys(/.*)? system_u:object_r:sysfs_t
/mnt(/[^/]*) -l system_u:object_r:mnt_t
/mnt(/[^/]*)? -d system_u:object_r:mnt_t
/opt/.* system_u:object_r:usr_t
/var/.* system_u:object_r:var_t
/usr/.* system_u:object_r:usr_t
/srv/.* system_u:object_r:var_t
/tmp/.* <<none>>
/run/.* <<none>>
/dev/.* system_u:object_r:device_t
/etc/.* system_u:object_r:etc_t
new:
/.* system_u:object_r:default_t
/sys(/.*)? system_u:object_r:sysfs_t
/mnt(/[^/]*) -l system_u:object_r:mnt_t
/mnt(/[^/]*)? -d system_u:object_r:mnt_t
/dev/.* system_u:object_r:device_t
/etc/.* system_u:object_r:etc_t
/opt/.* system_u:object_r:usr_t
/run/.* <<none>>
/srv/.* system_u:object_r:var_t
/tmp/.* <<none>>
/usr/.* system_u:object_r:usr_t
/var/.* system_u:object_r:var_t
Signed-off-by: Jason Zaman <perfinion@gentoo.org>
Diffstat (limited to 'Rules.modular')
-rw-r--r-- | Rules.modular | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Rules.modular b/Rules.modular index e8437194..d6224e95 100644 --- a/Rules.modular +++ b/Rules.modular @@ -180,7 +180,7 @@ $(tmpdir)/only_te_rules.conf: $(tmpdir)/all_te_files.conf # # Construct a base.fc # -$(base_fc): $(tmpdir)/$(notdir $(base_fc)).tmp $(fcsort) +$(base_fc): $(tmpdir)/$(notdir $(base_fc)).tmp $(verbose) $(fcsort) $< $@ $(tmpdir)/$(notdir $(base_fc)).tmp: $(m4support) $(tmpdir)/generated_definitions.conf $(base_fc_files) |