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>
Showing
- include/linux/lsm_hook_defs.h 1 addition, 0 deletionsinclude/linux/lsm_hook_defs.h
- include/linux/lsm_hooks.h 6 additions, 0 deletionsinclude/linux/lsm_hooks.h
- include/linux/security.h 8 additions, 0 deletionsinclude/linux/security.h
- security/security.c 7 additions, 0 deletionssecurity/security.c
- security/selinux/hooks.c 56 additions, 0 deletionssecurity/selinux/hooks.c
Please register or sign in to comment