diff options
author | Amir Goldstein <[email protected]> | 2020-07-08 14:11:42 +0300 |
---|---|---|
committer | Jan Kara <[email protected]> | 2020-07-15 17:37:03 +0200 |
commit | b8a6c3a2f0ae4d82732810e55ca8aa455e040bbf (patch) | |
tree | 1ff4d371101455f107cf5ca611e01dd1a910e07b /lib/test_overflow.c | |
parent | 956235afd145e60094642fca83486c0f3ccaca16 (diff) |
fanotify: create overflow event type
The special overflow event is allocated as struct fanotify_path_event,
but with a null path.
Use a special event type to identify the overflow event, so the helper
fanotify_has_event_path() will always indicate a non null path.
Allocating the overflow event doesn't need any of the fancy stuff in
fanotify_alloc_event(), so create a simplified helper for allocating the
overflow event.
There is also no need to store and report the pid with an overflow event.
Link: https://lore.kernel.org/r/[email protected]
Suggested-by: Jan Kara <[email protected]>
Signed-off-by: Amir Goldstein <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions