lsm,selinux: add new hook to compare new mount to an existing mount
authorOlga Kornievskaia <kolga@netapp.com>
Sat, 27 Feb 2021 03:37:55 +0000 (22:37 -0500)
committerPaul Moore <paul@paul-moore.com>
Mon, 22 Mar 2021 18:53:37 +0000 (14:53 -0400)
commit69c4a42d72eb9b41e1c6e4bc9ab7f3650bf35f62
tree564b363284f41cce68ff9b55a2d0fa811bd8bfcf
parent431c3be16bd08728325814320e3603ec3284d542
lsm,selinux: add new hook to compare new mount to an existing mount

Add a new hook that takes an existing super block and a new mount
with new options and determines if new options confict with an
existing mount or not.

A filesystem can use this new hook to determine if it can share
the an existing superblock with a new superblock for the new mount.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Acked-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
[PM: tweak the subject line, fix tab/space problems]
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/linux/lsm_hook_defs.h
include/linux/lsm_hooks.h
include/linux/security.h
security/security.c
security/selinux/hooks.c