summaryrefslogtreecommitdiffstats
path: root/kernel/audit_fsnotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/audit_fsnotify.c')
-rw-r--r--kernel/audit_fsnotify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/audit_fsnotify.c b/kernel/audit_fsnotify.c
index 37ae95cfb7f4..fb241805569c 100644
--- a/kernel/audit_fsnotify.c
+++ b/kernel/audit_fsnotify.c
@@ -164,7 +164,7 @@ static void audit_autoremove_mark_rule(struct audit_fsnotify_mark *audit_mark)
164static int audit_mark_handle_event(struct fsnotify_group *group, 164static int audit_mark_handle_event(struct fsnotify_group *group,
165 struct inode *to_tell, 165 struct inode *to_tell,
166 u32 mask, const void *data, int data_type, 166 u32 mask, const void *data, int data_type,
167 const unsigned char *dname, u32 cookie, 167 const struct qstr *dname, u32 cookie,
168 struct fsnotify_iter_info *iter_info) 168 struct fsnotify_iter_info *iter_info)
169{ 169{
170 struct fsnotify_mark *inode_mark = fsnotify_iter_inode_mark(iter_info); 170 struct fsnotify_mark *inode_mark = fsnotify_iter_inode_mark(iter_info);
@@ -188,7 +188,7 @@ static int audit_mark_handle_event(struct fsnotify_group *group,
188 } 188 }
189 189
190 if (mask & (FS_CREATE|FS_MOVED_TO|FS_DELETE|FS_MOVED_FROM)) { 190 if (mask & (FS_CREATE|FS_MOVED_TO|FS_DELETE|FS_MOVED_FROM)) {
191 if (audit_compare_dname_path(dname, audit_mark->path, AUDIT_NAME_FULL)) 191 if (audit_compare_dname_path(dname->name, audit_mark->path, AUDIT_NAME_FULL))
192 return 0; 192 return 0;
193 audit_update_mark(audit_mark, inode); 193 audit_update_mark(audit_mark, inode);
194 } else if (mask & (FS_DELETE_SELF|FS_UNMOUNT|FS_MOVE_SELF)) 194 } else if (mask & (FS_DELETE_SELF|FS_UNMOUNT|FS_MOVE_SELF))