]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fanotify: don't skip extra event info if no info_mode is set
authorJosef Bacik <josef@toxicpanda.com>
Fri, 15 Nov 2024 15:30:17 +0000 (10:30 -0500)
committerJan Kara <jack@suse.cz>
Tue, 10 Dec 2024 11:03:16 +0000 (12:03 +0100)
commitb82c6f5930f65c510f5b6b4b0d7d1913a6dda3db
treee1902fa01422db353f4dad4e6456f86524664eb7
parent318652e07fa5b1743d08eeccd69a1f47f2c15710
fanotify: don't skip extra event info if no info_mode is set

Previously we would only include optional information if you requested
it via an FAN_ flag at fanotify_init time (FAN_REPORT_FID for example).
However this isn't necessary as the event length is encoded in the
metadata, and if the user doesn't want to consume the information they
don't have to.  With the PRE_ACCESS events we will always generate range
information, so drop this check in order to allow this extra
information to be exported without needing to have another flag.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/afcbc4e4139dee076ef1757918b037d3b48c3edb.1731684329.git.josef@toxicpanda.com
fs/notify/fanotify/fanotify_user.c