]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs_context: drop the unused lsm_flags member
authorOndrej Mosnacek <omosnace@redhat.com>
Thu, 16 Mar 2023 13:07:51 +0000 (14:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:09:38 +0000 (13:09 +0100)
commit1b44528bf4a16852aa8da14785e378bc3f3dbc99
treee746bdfcb833890b7b26005b8315a93742158e04
parentce578fbf8e83e66988619146883d745912452611
fs_context: drop the unused lsm_flags member

[ Upstream commit 4e04143c869c5b6d499fbd5083caa860d5c942c3 ]

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.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Stable-dep-of: 8675c69816e4 ("NFS: Automounted filesystems should inherit ro,noexec,nodev,sync flags")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/filesystems/mount_api.rst
fs/nfs/super.c
include/linux/fs_context.h
include/linux/security.h