]> www.infradead.org Git - users/dwmw2/linux.git/commit
fsnotify, lsm: Decouple fsnotify from lsm
authorSong Liu <song@kernel.org>
Sun, 13 Oct 2024 00:22:48 +0000 (17:22 -0700)
committerJan Kara <jack@suse.cz>
Mon, 14 Oct 2024 15:38:27 +0000 (17:38 +0200)
commit1cda52f1b4611f4daa9d89e69d9428fb4137dc3f
treef852c5ac8fefb8da87e20fd155c23a76e7ec68e2
parent6485cf5ea253d40d507cd71253c9568c5470cd27
fsnotify, lsm: Decouple fsnotify from lsm

Currently, fsnotify_open_perm() is called from security_file_open().
This is a a bit unexpected and creates otherwise unnecessary dependency
of CONFIG_FANOTIFY_ACCESS_PERMISSIONS on CONFIG_SECURITY. Fix this by
calling fsnotify_open_perm() directly.

Signed-off-by: Song Liu <song@kernel.org>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20241013002248.3984442-1-song@kernel.org
fs/notify/fanotify/Kconfig
fs/open.c
security/security.c