diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/audit_fsnotify.c | 4 | ||||
-rw-r--r-- | kernel/audit_tree.c | 2 | ||||
-rw-r--r-- | kernel/audit_watch.c | 6 |
3 files changed, 6 insertions, 6 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) | |||
164 | static int audit_mark_handle_event(struct fsnotify_group *group, | 164 | static 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)) |
diff --git a/kernel/audit_tree.c b/kernel/audit_tree.c index abfb112f26aa..e49c912f862d 100644 --- a/kernel/audit_tree.c +++ b/kernel/audit_tree.c | |||
@@ -1040,7 +1040,7 @@ static void evict_chunk(struct audit_chunk *chunk) | |||
1040 | static int audit_tree_handle_event(struct fsnotify_group *group, | 1040 | static int audit_tree_handle_event(struct fsnotify_group *group, |
1041 | struct inode *to_tell, | 1041 | struct inode *to_tell, |
1042 | u32 mask, const void *data, int data_type, | 1042 | u32 mask, const void *data, int data_type, |
1043 | const unsigned char *file_name, u32 cookie, | 1043 | const struct qstr *file_name, u32 cookie, |
1044 | struct fsnotify_iter_info *iter_info) | 1044 | struct fsnotify_iter_info *iter_info) |
1045 | { | 1045 | { |
1046 | return 0; | 1046 | return 0; |
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c index e8d1adeb2223..3c12fd5b680e 100644 --- a/kernel/audit_watch.c +++ b/kernel/audit_watch.c | |||
@@ -482,7 +482,7 @@ void audit_remove_watch_rule(struct audit_krule *krule) | |||
482 | static int audit_watch_handle_event(struct fsnotify_group *group, | 482 | static int audit_watch_handle_event(struct fsnotify_group *group, |
483 | struct inode *to_tell, | 483 | struct inode *to_tell, |
484 | u32 mask, const void *data, int data_type, | 484 | u32 mask, const void *data, int data_type, |
485 | const unsigned char *dname, u32 cookie, | 485 | const struct qstr *dname, u32 cookie, |
486 | struct fsnotify_iter_info *iter_info) | 486 | struct fsnotify_iter_info *iter_info) |
487 | { | 487 | { |
488 | struct fsnotify_mark *inode_mark = fsnotify_iter_inode_mark(iter_info); | 488 | struct fsnotify_mark *inode_mark = fsnotify_iter_inode_mark(iter_info); |
@@ -507,9 +507,9 @@ static int audit_watch_handle_event(struct fsnotify_group *group, | |||
507 | } | 507 | } |
508 | 508 | ||
509 | if (mask & (FS_CREATE|FS_MOVED_TO) && inode) | 509 | if (mask & (FS_CREATE|FS_MOVED_TO) && inode) |
510 | audit_update_watch(parent, dname, inode->i_sb->s_dev, inode->i_ino, 0); | 510 | audit_update_watch(parent, dname->name, inode->i_sb->s_dev, inode->i_ino, 0); |
511 | else if (mask & (FS_DELETE|FS_MOVED_FROM)) | 511 | else if (mask & (FS_DELETE|FS_MOVED_FROM)) |
512 | audit_update_watch(parent, dname, AUDIT_DEV_UNSET, AUDIT_INO_UNSET, 1); | 512 | audit_update_watch(parent, dname->name, AUDIT_DEV_UNSET, AUDIT_INO_UNSET, 1); |
513 | else if (mask & (FS_DELETE_SELF|FS_UNMOUNT|FS_MOVE_SELF)) | 513 | else if (mask & (FS_DELETE_SELF|FS_UNMOUNT|FS_MOVE_SELF)) |
514 | audit_remove_parent_watches(parent); | 514 | audit_remove_parent_watches(parent); |
515 | 515 | ||