On Jun 21, 2025 Casey Schaufler <[email protected]> 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 <[email protected]> > --- > 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/[email protected]/ -- paul-moore.com
