]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fanotify: remove redundant permission checks
authorAmir Goldstein <amir73il@gmail.com>
Fri, 16 May 2025 19:28:02 +0000 (21:28 +0200)
committerJan Kara <jack@suse.cz>
Mon, 19 May 2025 20:46:34 +0000 (22:46 +0200)
commit90d1238047a6479674db4b35264e9519186af9e8
tree4c40c129a30fafdee8dc75b924187cb060e55ab2
parentb9b410cc1875120a0a2f84fd61c026cc994049e2
fanotify: remove redundant permission checks

FAN_UNLIMITED_QUEUE and FAN_UNLIMITED_MARK flags are already checked
as part of the CAP_SYS_ADMIN check for any FANOTIFY_ADMIN_INIT_FLAGS.

Remove the individual CAP_SYS_ADMIN checks for these flags.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20250516192803.838659-2-amir73il@gmail.com
fs/notify/fanotify/fanotify_user.c