mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Casey Schaufler <casey@schaufler-ca.com>
To: casey@schaufler-ca.com, paul@paul-moore.com, eparis@redhat.com,
	linux-security-module@vger.kernel.org
Cc: jmorris@namei.org, serge@hallyn.com, keescook@chromium.org,
	john.johansen@canonical.com, penguin-kernel@i-love.sakura.ne.jp,
	stephen.smalley.work@gmail.com, linux-kernel@vger.kernel.org,
	selinux@vger.kernel.org
Subject: [PATCH v2 0/2] LSM: Multiple LSM mount options
Date: Thu, 25 Sep 2025 10:12:06 -0700	[thread overview]
Message-ID: <20250925171208.5997-1-casey@schaufler-ca.com> (raw)
In-Reply-To: <20250925171208.5997-1-casey.ref@schaufler-ca.com>

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(-)

-- 
2.51.0


       reply	other threads:[~2025-09-25 17:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20250925171208.5997-1-casey.ref@schaufler-ca.com>
2025-09-25 17:12 ` Casey Schaufler [this message]
2025-09-25 17:12   ` [PATCH v2 1/2] LSM: Add mount opts blob size tracking Casey Schaufler
2025-09-25 17:12   ` [PATCH v2 2/2] LSM: Infrastructure management of the mnt_opts security blob Casey Schaufler
2025-10-09 18:38     ` Stephen Smalley
2025-10-13 20:55       ` Paul Moore
2025-11-04 17:46         ` Casey Schaufler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250925171208.5997-1-casey@schaufler-ca.com \
    --to=casey@schaufler-ca.com \
    --cc=eparis@redhat.com \
    --cc=jmorris@namei.org \
    --cc=john.johansen@canonical.com \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=paul@paul-moore.com \
    --cc=penguin-kernel@i-love.sakura.ne.jp \
    --cc=selinux@vger.kernel.org \
    --cc=serge@hallyn.com \
    --cc=stephen.smalley.work@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®