platform_external_selinux/libselinux/man
Richard Haines e40bbea95f libselinux: Add selabel_digest function
selabel_digest(3) if enabled by the SELABEL_OPT_DIGEST option during
selabel_open(3) will return an SHA1 digest of the spec files, plus
a list of the specfiles used to calculate the digest. There is a
test utility supplied that will demonstrate the functionality.

The use case for selabel_digest(3) is to implement an selinux_restorecon
function based on the Android version that writes a hash of the
file_contexts files to an extended attribute to enhance performance
(see external/libselinux/src/android.c selinux_android_restorecon()).

Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
2015-10-13 17:13:24 -04:00
..
man3 libselinux: Add selabel_digest function 2015-10-13 17:13:24 -04:00
man5 libselinux: matchpathcon/selabel_file: Fix man pages. 2015-05-11 09:53:37 -04:00
man8 libselinux: Add policy context validation to sefcontext_compile 2015-08-25 14:49:13 -04:00
Makefile Fix relabel target. 2013-10-23 12:44:30 -04:00