fanotify,audit: Allow audit to use the full permission event response
[linux-2.6-microblaze.git] / fs / notify / fanotify / fanotify.c
index 24ec1d6..29bdd99 100644 (file)
@@ -273,7 +273,8 @@ static int fanotify_get_response(struct fsnotify_group *group,
 
        /* Check if the response should be audited */
        if (event->response & FAN_AUDIT)
-               audit_fanotify(event->response & ~FAN_AUDIT);
+               audit_fanotify(event->response & ~FAN_AUDIT,
+                              &event->audit_rule);
 
        pr_debug("%s: group=%p event=%p about to return ret=%d\n", __func__,
                 group, event, ret);