platform_system_sepolicy/tools/fc_sort
William Roberts 49693f1b4d fc_sort: initial commit
Ordering matters in fc files; the last match wins. In builds where
many BOARD_SEPOLICY_DIRS are set, the order of that list becomes
increasingly important in order to maintain a cohesive built
file_contexts.

To correct this, we sort the device specific file_contexts entries
with the upstream fc_sort tool.

Change-Id: I3775eae11bfa5905cad0d02a0bf26c76ac03437c
Signed-off-by: William Roberts <william.c.roberts@intel.com>
2016-01-14 17:39:07 -08:00
..
Android.mk fc_sort: initial commit 2016-01-14 17:39:07 -08:00
fc_sort.c fc_sort: initial commit 2016-01-14 17:39:07 -08:00
MODULE_LICENSE_GPL fc_sort: initial commit 2016-01-14 17:39:07 -08:00
NOTICE fc_sort: add NOTICE file 2016-01-14 10:45:45 -08:00
README fc_sort: initial commit 2016-01-14 17:39:07 -08:00

fc_sort is a tool used for sorting the file_contexts entries based on a heuristic that is
 covered by a Fedora document. That document can be found here:
 * https://fedoraproject.org/wiki/SELinux/ManagingFileContext

The tool itself originates from:
 * https://github.com/TresysTechnology/refpolicy

It can be updated to the current tip of master branch with the below command:
$ wget https://raw.githubusercontent.com/TresysTechnology/refpolicy/master/support/fc_sort.c