diff options
| author | Song Liu <song@kernel.org> | 2024-10-12 17:22:48 -0700 |
|---|---|---|
| committer | Jan Kara <jack@suse.cz> | 2024-10-14 17:38:27 +0200 |
| commit | 1cda52f1b4611f4daa9d89e69d9428fb4137dc3f (patch) | |
| tree | f852c5ac8fefb8da87e20fd155c23a76e7ec68e2 /fs/notify | |
| parent | Merge tag 'hid-for-linus-2024101301' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
| download | linux-1cda52f1b4611f4daa9d89e69d9428fb4137dc3f.tar.gz linux-1cda52f1b4611f4daa9d89e69d9428fb4137dc3f.zip | |
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
Diffstat (limited to 'fs/notify')
| -rw-r--r-- | fs/notify/fanotify/Kconfig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/notify/fanotify/Kconfig b/fs/notify/fanotify/Kconfig index a511f9d8677b..0e36aaf379b7 100644 --- a/fs/notify/fanotify/Kconfig +++ b/fs/notify/fanotify/Kconfig @@ -15,7 +15,6 @@ config FANOTIFY config FANOTIFY_ACCESS_PERMISSIONS bool "fanotify permissions checking" depends on FANOTIFY - depends on SECURITY default n help Say Y here is you want fanotify listeners to be able to make permissions |
