commit | 8afd7215aa97f8868d033f6e1d01a276ab2d29c0 | [log] [tgz] |
---|---|---|
author | Amir Goldstein <amir73il@gmail.com> | Wed Jun 29 17:42:09 2022 +0300 |
committer | Jan Kara <jack@suse.cz> | Fri Jul 01 14:51:49 2022 +0200 |
tree | 5e5db4b5d657460abb6165b38821d3de13464165 | |
parent | 31a371e419c885e0f137ce70395356ba8639dc52 [diff] |
fanotify: cleanups for fanotify_mark() input validations Create helper fanotify_may_update_existing_mark() for checking for conflicts between existing mark flags and fanotify_mark() flags. Use variable mark_cmd to make the checks for mark command bits cleaner. Link: https://lore.kernel.org/r/20220629144210.2983229-3-amir73il@gmail.com Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>