aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/audit_tree.c8
-rw-r--r--kernel/audit_watch.c14
2 files changed, 12 insertions, 10 deletions
diff --git a/kernel/audit_tree.c b/kernel/audit_tree.c
index 43c307dc9453..bcc0b1821227 100644
--- a/kernel/audit_tree.c
+++ b/kernel/audit_tree.c
@@ -912,9 +912,11 @@ static void evict_chunk(struct audit_chunk *chunk)
912} 912}
913 913
914static int audit_tree_handle_event(struct fsnotify_group *group, 914static int audit_tree_handle_event(struct fsnotify_group *group,
915 struct inode *to_tell,
915 struct fsnotify_mark *inode_mark, 916 struct fsnotify_mark *inode_mark,
916 struct fsnotify_mark *vfsmonut_mark, 917 struct fsnotify_mark *vfsmount_mark,
917 struct fsnotify_event *event) 918 u32 mask, void *data, int data_type,
919 const unsigned char *file_name)
918{ 920{
919 BUG(); 921 BUG();
920 return -EOPNOTSUPP; 922 return -EOPNOTSUPP;
@@ -945,7 +947,7 @@ static const struct fsnotify_ops audit_tree_ops = {
945 .handle_event = audit_tree_handle_event, 947 .handle_event = audit_tree_handle_event,
946 .should_send_event = audit_tree_send_event, 948 .should_send_event = audit_tree_send_event,
947 .free_group_priv = NULL, 949 .free_group_priv = NULL,
948 .free_event_priv = NULL, 950 .free_event = NULL,
949 .freeing_mark = audit_tree_freeing_mark, 951 .freeing_mark = audit_tree_freeing_mark,
950}; 952};
951 953
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c
index 22831c4d369c..a760c32cb639 100644
--- a/kernel/audit_watch.c
+++ b/kernel/audit_watch.c
@@ -475,25 +475,25 @@ static bool audit_watch_should_send_event(struct fsnotify_group *group, struct i
475 475
476/* Update watch data in audit rules based on fsnotify events. */ 476/* Update watch data in audit rules based on fsnotify events. */
477static int audit_watch_handle_event(struct fsnotify_group *group, 477static int audit_watch_handle_event(struct fsnotify_group *group,
478 struct inode *to_tell,
478 struct fsnotify_mark *inode_mark, 479 struct fsnotify_mark *inode_mark,
479 struct fsnotify_mark *vfsmount_mark, 480 struct fsnotify_mark *vfsmount_mark,
480 struct fsnotify_event *event) 481 u32 mask, void *data, int data_type,
482 const unsigned char *dname)
481{ 483{
482 struct inode *inode; 484 struct inode *inode;
483 __u32 mask = event->mask;
484 const char *dname = event->file_name;
485 struct audit_parent *parent; 485 struct audit_parent *parent;
486 486
487 parent = container_of(inode_mark, struct audit_parent, mark); 487 parent = container_of(inode_mark, struct audit_parent, mark);
488 488
489 BUG_ON(group != audit_watch_group); 489 BUG_ON(group != audit_watch_group);
490 490
491 switch (event->data_type) { 491 switch (data_type) {
492 case (FSNOTIFY_EVENT_PATH): 492 case (FSNOTIFY_EVENT_PATH):
493 inode = event->path.dentry->d_inode; 493 inode = ((struct path *)data)->dentry->d_inode;
494 break; 494 break;
495 case (FSNOTIFY_EVENT_INODE): 495 case (FSNOTIFY_EVENT_INODE):
496 inode = event->inode; 496 inode = (struct inode *)data;
497 break; 497 break;
498 default: 498 default:
499 BUG(); 499 BUG();
@@ -516,7 +516,7 @@ static const struct fsnotify_ops audit_watch_fsnotify_ops = {
516 .handle_event = audit_watch_handle_event, 516 .handle_event = audit_watch_handle_event,
517 .free_group_priv = NULL, 517 .free_group_priv = NULL,
518 .freeing_mark = NULL, 518 .freeing_mark = NULL,
519 .free_event_priv = NULL, 519 .free_event = NULL,
520}; 520};
521 521
522static int __init audit_watch_init(void) 522static int __init audit_watch_init(void)