> On Friday, 9 October 2015, 20:46, Stephen Smalley <sds@xxxxxxxxxxxxx> wrote: > > On 09/30/2015 11:29 AM, Richard Haines wrote: >> 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@xxxxxxxxxxxxxx> > > Seems sane to me. Is there a reason it is still an RFC? > No - Would you like it submitted without the RFC >> --- >> V2 Changes: >> Minor general cleanups and updated as per comments from: >> http://marc.info/?l=selinux&m=144233357510422&w=2 >> V3 Changes: >> As per comments from: > http://marc.info/?l=selinux&m=144355202127208&w=2 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.