platform_external_selinux/libselinux
xunchang 7d4a56f84d Restorecon: save digest of all partial matches for directory
We used to hash the file_context and skip the restorecon on the top
level directory if the hash doesn't change. But the file_context
might change after an OTA update; and some users experienced long
restorecon time as they have lots of files under directories like
/data/media.

This CL tries to hash all the partial match entries in the
file_context for each directory; and skips the restorecon if that
digest stays the same, regardless of the changes to the other parts
of file_context.

Bug: 62302954
Test: visited directory skips correctly during restorecon.
Change-Id: Ia0668629a260b9b7a049bb68f6a8cc901c6cc46b
2019-03-05 12:34:19 -08:00
..
include Restorecon: factor out a lookup helper for context matches 2019-03-05 10:36:03 -08:00
man Allow installing translated man pages 2019-01-28 12:03:57 +01:00
src Restorecon: save digest of all partial matches for directory 2019-03-05 12:34:19 -08:00
utils libselinux: Change matchpathcon usage to match with matchpathcon manpage 2019-02-04 22:11:22 +01:00
Android.bp Mark libselinux as double_loadable 2019-02-07 17:36:43 +09:00
exported.map Export some additional symbols from libselinux. 2018-09-13 14:34:12 -07:00
exported_vendor.map Fix vendor situation for selinux_log_callback. 2018-09-07 15:07:42 -07:00
LICENSE initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile libselinux: Add support for pcre2 to pkgconfig definition 2017-10-13 15:24:23 -04:00
MODULE_LICENSE_PUBLIC_DOMAIN libselinux: add The Android fork files 2016-10-24 11:05:25 -07:00
VERSION Update VERSIONs to 2.9-rc1 for release. 2019-01-25 11:48:54 +01:00