]> www.infradead.org Git - users/willy/linux.git/commit
selinux: Implement the new mount API LSM hooks
authorDavid Howells <dhowells@redhat.com>
Tue, 11 Sep 2018 21:20:54 +0000 (22:20 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 23 Oct 2018 16:38:57 +0000 (17:38 +0100)
commit4786c3427b2517ee9c685f95bf5b3185e332e64d
treea7fdddc47cb2be7a59d8b901adb27cf056d7074e
parent6446dd622da1b0d68ed7d56423ded25a6bbc2ddf
selinux: Implement the new mount API LSM hooks

Implement the new mount API LSM hooks for SELinux.  At some point the old
hooks will need to be removed.

Question: Should the ->fs_context_parse_source() hook be implemented to
check the labels on any source devices specified?

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Paul Moore <paul@paul-moore.com>
cc: Stephen Smalley <sds@tycho.nsa.gov>
cc: selinux@tycho.nsa.gov
cc: linux-security-module@vger.kernel.org
security/selinux/hooks.c
security/selinux/include/security.h