That's a job for the Linux Integrity Measurement Architecture (IMA), not for SELinux. See http://linux-ima.sourceforge.net/ and http://sourceforge.net/p/linux-ima/wiki/Home/ for more information. On Wed, Dec 24, 2014 at 9:41 PM, jiangdahui <jdh1988@xxxxxxxx> wrote: > hi all: > I have a task to have some components in kernel and user spaces to get > the follow goal: > 1. get a user space program's information; > 2. calculate a value with a algorithm like HASH with the information > as input; > 3. look up a white list to get a expected value and compare it with > the calculated one to verify the integrity of the program. > 4.there should be components in user space program to set the white > list and inform the user whether a program is permitted or not. > I have learned that seLinux has achieved most hooks of LSM, and I > think my need is a basic one, I don't want to reinvent the wheel, so could > any experienced user or developer give me some advice? thanks! > > best regards! > > > > _______________________________________________ > 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. _______________________________________________ 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.