e40bbea95f
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> |
||
---|---|---|
.. | ||
av_permissions.h | ||
avc.h | ||
context.h | ||
flask.h | ||
get_context_list.h | ||
get_default_type.h | ||
label.h | ||
selinux.h |