c32d7bae15
Use the getline API correctly: keep a single buffer as long as possible, and let the callee handle re-allocation. Move the final free out of the loop. Release the head of the linked list. Bug: 37757586 Test: ASAN_OPTIONS= SANITIZE_HOST=address mmma system/sepolicy Change-Id: I42424acba7cd68c1b9a7a43e916a421ac3e253f7 |
||
---|---|---|
.. | ||
Android.mk | ||
fc_sort.c | ||
MODULE_LICENSE_GPL | ||
NOTICE | ||
README |
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