[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3559abfc0d5ceb11f03451aab517c8d2@paul-moore.com>
Date: Tue, 14 Oct 2025 19:12:57 -0400
From: Paul Moore <paul@...l-moore.com>
To: Casey Schaufler <casey@...aufler-ca.com>, casey@...aufler-ca.com, eparis@...hat.com, linux-security-module@...r.kernel.org, audit@...r.kernel.org
Cc: jmorris@...ei.org, serge@...lyn.com, keescook@...omium.org, john.johansen@...onical.com, penguin-kernel@...ove.sakura.ne.jp, stephen.smalley.work@...il.com, linux-kernel@...r.kernel.org, selinux@...r.kernel.org
Subject: Re: [PATCH RFC 11/15] LSM: Infrastructure management of the mnt_opts security blob
On Jun 21, 2025 Casey Schaufler <casey@...aufler-ca.com> wrote:
>
> Move management of the mnt_opts->security blob out of the
> individual security modules and into the security
> infrastructure. Blobs are still allocated within the modules
> as they are only required when mount options are present.
> The modules tell the infrastructure how much space is required,
> and the space is allocated if needed. Modules can no longer
> count on the presence of a blob implying that mount options
> specific to that module are present, so flags are added
> to the module specific blobs to indicate that this module
> has options.
>
> Signed-off-by: Casey Schaufler <casey@...aufler-ca.com>
> ---
> security/security.c | 14 ++++-----
> security/selinux/hooks.c | 58 +++++++++++++++++++++++-------------
> security/smack/smack_lsm.c | 61 ++++++++++++++++++++++++++------------
> 3 files changed, 85 insertions(+), 48 deletions(-)
We discussed this patch in a separate patchset, lore link below.
https://lore.kernel.org/linux-security-module/20250925171208.5997-1-casey@schaufler-ca.com/
--
paul-moore.com
Powered by blists - more mailing lists