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
William Roberts
authored
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>
Name | Last commit | Last update |
---|---|---|
.. | ||
Android.mk | ||
MODULE_LICENSE_GPL | ||
NOTICE | ||
README | ||
fc_sort.c |