]> www.infradead.org Git - users/willy/linux.git/commit
apparmor: Implement security hooks for the new mount API
authorDavid Howells <dhowells@redhat.com>
Tue, 11 Sep 2018 21:20:55 +0000 (22:20 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 23 Oct 2018 16:38:57 +0000 (17:38 +0100)
commit966a6c1418490a13b1f4f6f214b3967b0418bc07
tree0bfd6d054e7bd2e0b13efb091c899245e014656e
parent1f0a62d8669433e51fd829ea3df5d75e00c191ed
apparmor: Implement security hooks for the new mount API

Implement hooks to check the creation of new mountpoints for AppArmor.

Unfortunately, the DFA evaluation puts the option data in last, after the
details of the mountpoint, so we have to cache the mount options in the
fs_context using those hooks till we get to the new mountpoint hook.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: John Johansen <john.johansen@canonical.com>
cc: apparmor@lists.ubuntu.com
cc: linux-security-module@vger.kernel.org
security/apparmor/include/mount.h
security/apparmor/lsm.c
security/apparmor/mount.c