selinux/libselinux
Richard Haines e016502c0a
libselinux: 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.

This is a version ported from Android that was originally written by:
xunchang <xunchang@google.com>

Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
2019-07-27 10:39:24 +02:00
..
include libselinux: Save digest of all partial matches for directory 2019-07-27 10:39:24 +02:00
man libselinux: Save digest of all partial matches for directory 2019-07-27 10:39:24 +02:00
src libselinux: Save digest of all partial matches for directory 2019-07-27 10:39:24 +02:00
utils libselinux: Save digest of all partial matches for directory 2019-07-27 10:39:24 +02: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
VERSION Update VERSIONs to 2.9 for release. 2019-03-15 11:32:30 +01:00