[PATCH RESEND] fs_context: drop the unused lsm_flags member

Christian Brauner brauner at kernel.org
Thu Mar 16 13:46:17 UTC 2023


From: Christian Brauner (Microsoft) <brauner at kernel.org>


On Thu, 16 Mar 2023 14:07:51 +0100, Ondrej Mosnacek wrote:
> This isn't ever used by VFS now, and it couldn't even work. Any FS that
> uses the SECURITY_LSM_NATIVE_LABELS flag needs to also process the
> value returned back from the LSM, so it needs to do its
> security_sb_set_mnt_opts() call on its own anyway.
> 
> 

Seems indeed unused currently. I don't see fc->lsm_flags being used after
having been set. So applied. Please yell, if there's some subtle place where
this should matter after all,

tree: git://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git
branch: fs.misc

[1/1] fs_context: drop the unused lsm_flags member
      commit: 4e04143c869c5b6d499fbd5083caa860d5c942c3



More information about the Linux-security-module-archive mailing list