Skip to content

LSM: Multiple LSM mount options

Casey Schaufler linux-security-module lkml selinux 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v13 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2LSM: Add mount opts blob size trackinginclude/linux/lsm_hooks.h security/security.c security/selinux/hooks.c +1 more+5 -00 replies
2/2LSM: Infrastructure management of the mnt_opts security blobsecurity/security.c security/selinux/hooks.c security/selinux/include/objsec.h +2 more+92 -853 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] LSM: Multiple LSM mount options

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.17-rc6-v2

v2: Significant rewrite to move allocations out of the LSMs.

Casey Schaufler (2):
LSM: Add mount opts blob size tracking
LSM: Infrastructure management of the mnt_opts security blob

 include/linux/lsm_hooks.h         |  1 +
 security/security.c               | 44 ++++++++++++++++++
 security/selinux/hooks.c          | 76 ++++++++++---------------------
 security/selinux/include/objsec.h |  8 ++++
 security/smack/smack.h            |  8 ++++
 security/smack/smack_lsm.c        | 45 +++++-------------
 6 files changed, 97 insertions(+), 85 deletions(-)
Signature · 1 line
2.51.0