[PATCH 0/3] LSM: Multiple LSM mount options
Casey Schaufler
casey at schaufler-ca.com
Tue Jun 17 21:01:02 UTC 2025
Linux Security Module (LSM) that support mount options, currently SELinux
and Smack, allocate their own data for those options. This patch set
moves the handling of mount option data out of the individual LSMs and
into the LSM infrastructure. This allows for multiple LSMs to support
mount options at the same time.
https://github.com/cschaufler/lsm-stacking#mount-opts-6.16-rc1
Based on patches Paul Moore's LSM initialization patchset.
https://lore.kernel.org/all/20250409185019.238841-31-paul@paul-moore.com/v3
Casey Schaufler (3):
LSM: Add mount opts blob size tracking
LSM: allocate mnt_opts blobs instead of module specific data
LSM: Infrastructure management of the mnt_opts security blob
include/linux/lsm_hooks.h | 2 ++
security/lsm_init.c | 2 ++
security/security.c | 26 ++++++++++-----
security/selinux/hooks.c | 65 +++++++++++++++++++++++++-------------
security/smack/smack_lsm.c | 62 +++++++++++++++++++++++++-----------
5 files changed, 108 insertions(+), 49 deletions(-)
--
2.47.0
More information about the Linux-security-module-archive
mailing list