diff options
author | Amir Goldstein <amir73il@gmail.com> | 2022-04-22 14:03:15 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2022-04-25 14:37:12 +0200 |
commit | 867a448d587e7fa845bceaf4ee1c632448f2a9fa (patch) | |
tree | ac50be42e5e59f6c2a387db4d3c7f19d097e22e4 /kernel/audit_fsnotify.c | |
parent | fsnotify: fix wrong lockdep annotations (diff) | |
download | linux-867a448d587e7fa845bceaf4ee1c632448f2a9fa.tar.xz linux-867a448d587e7fa845bceaf4ee1c632448f2a9fa.zip |
fsnotify: pass flags argument to fsnotify_alloc_group()
Add flags argument to fsnotify_alloc_group(), define and use the flag
FSNOTIFY_GROUP_USER in inotify and fanotify instead of the helper
fsnotify_alloc_user_group() to indicate user allocation.
Although the flag FSNOTIFY_GROUP_USER is currently not used after group
allocation, we store the flags argument in the group struct for future
use of other group flags.
Link: https://lore.kernel.org/r/20220422120327.3459282-5-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'kernel/audit_fsnotify.c')
-rw-r--r-- | kernel/audit_fsnotify.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/audit_fsnotify.c b/kernel/audit_fsnotify.c index 02348b48447c..35fe149586c8 100644 --- a/kernel/audit_fsnotify.c +++ b/kernel/audit_fsnotify.c @@ -181,7 +181,8 @@ static const struct fsnotify_ops audit_mark_fsnotify_ops = { static int __init audit_fsnotify_init(void) { - audit_fsnotify_group = fsnotify_alloc_group(&audit_mark_fsnotify_ops); + audit_fsnotify_group = fsnotify_alloc_group(&audit_mark_fsnotify_ops, + 0); if (IS_ERR(audit_fsnotify_group)) { audit_fsnotify_group = NULL; audit_panic("cannot create audit fsnotify group"); |