Re: [PATCH RFC 10/15] LSM: allocate mnt_opts blobs instead of module specific data

From: Paul Moore

Date: Tue Oct 14 2025 - 19:12:58 EST


On Jun 21, 2025 Casey Schaufler <casey@xxxxxxxxxxxxxxxx> wrote:
>
> Replace allocations of LSM specific mount data with the
> shared mnt_opts blob.
>
> Signed-off-by: Casey Schaufler <casey@xxxxxxxxxxxxxxxx>
> ---
> include/linux/lsm_hooks.h | 1 +
> security/security.c | 12 ++++++++++++
> security/selinux/hooks.c | 10 +++++++---
> security/smack/smack_lsm.c | 4 ++--
> 4 files changed, 22 insertions(+), 5 deletions(-)

We discussed the concepts in this patch in a separate patchset, lore link below.

https://lore.kernel.org/linux-security-module/20250925171208.5997-1-casey@xxxxxxxxxxxxxxxx/

--
paul-moore.com