]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97417fc8bc8f7ca383896432e8176e81d28bc57f
tree564b363284f41cce68ff9b55a2d0fa811bd8bfcf
parent43cb6fba8b28aecedfd3d6a63f59c86921d56b4e
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