linux/fs/notify/fanotify
Amir Goldstein 2d9374f095 fanotify: use macros to get the offset to fanotify_info buffer
The fanotify_info buffer contains up to two file handles and a name.
Use macros to simplify the code that access the different items within
the buffer.

Add assertions to verify that stored fh len and name len do not overflow
the u8 stored value in fanotify_info header.

Remove the unused fanotify_info_len() helper.

Link: https://lore.kernel.org/r/20211129201537.1932819-6-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2021-12-15 14:04:30 +01:00
..
fanotify_user.c fanotify: introduce group flag FAN_REPORT_TARGET_FID 2021-12-15 14:04:25 +01:00
fanotify.c fanotify: use macros to get the offset to fanotify_info buffer 2021-12-15 14:04:30 +01:00
fanotify.h fanotify: use macros to get the offset to fanotify_info buffer 2021-12-15 14:04:30 +01:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00