platform_external_selinux/libselinux/include/selinux
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
..
av_permissions.h Deprecate use of flask.h and av_permissions.h. 2014-07-09 13:49:18 -04:00
avc.h Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
context.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
flask.h Deprecate use of flask.h and av_permissions.h. 2014-07-09 13:49:18 -04:00
get_context_list.h Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
get_default_type.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
label.h libselinux: Add selabel_digest function 2015-10-13 17:13:24 -04:00
selinux.h libselinux: add selinux_openssh_contexts_path() 2015-05-21 13:11:36 -04:00