• Eric Paris's avatar
    fsnotify: intoduce a notification merge argument · 6e5f77b3
    Eric Paris authored
    Each group can define their own notification (and secondary_q) merge
    function.  Inotify does tail drop, fanotify does matching and drop which
    can actually allocate a completely new event.  But for fanotify to properly
    deal with permissions events it needs to know the new event which was
    ultimately added to the notification queue.  This patch just implements a
    void ** argument which is passed to the merge function.  fanotify can use
    this field to pass the new event back to higher layers.
    Signed-off-by: default avatarEric Paris <eparis@redhat.com>
    for fanotify to properly deal with permissions events
    6e5f77b3
fanotify.c 5 KB