selinux: add security in-core xattr support for pstore and debugfs
authorMark Salyzyn <salyzyn@android.com>
Wed, 4 Feb 2015 16:34:30 +0000 (11:34 -0500)
committerPaul Moore <pmoore@redhat.com>
Wed, 4 Feb 2015 16:34:30 +0000 (11:34 -0500)
commitd5f3a5f6e7e7822df5680d4fe39bf0b6979a1535
tree8fd129856aed1a5a579f9a7a8aaa7a24476f8c40
parent2088d60e3b2f53d0c9590a0202eeff85b288b1eb
selinux: add security in-core xattr support for pstore and debugfs

- add "pstore" and "debugfs" to list of in-core exceptions
- change fstype checks to boolean equation
- change from strncmp to strcmp for checking

Signed-off-by: Mark Salyzyn <salyzyn@android.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
[PM: tweaked the subject line prefix to "selinux"]
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/hooks.c