+ fanotify-create-fan_access-event-for-readdir.patch added to -mm tree
Subject: + fanotify-create-fan_access-event-for-readdir.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 17 Apr 2014 13:39:58 -0700
The patch titled
Subject: fanotify: create FAN_ACCESS event for readdir
has been added to the -mm tree. Its filename is
fanotify-create-fan_access-event-for-readdir.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/fanotify-create-fan_access-event-for-readdir.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/fanotify-create-fan_access-event-for-readdir.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Heinrich Schuchardt <[email protected]>
Subject: fanotify: create FAN_ACCESS event for readdir
Before the patch,
read creates FAN_ACCESS_PERM and FAN_ACCESS events, readdir creates only FAN_ACCESS_PERM events.
This is inconsistent.
After the patch,
readdir creates FAN_ACCESS_PERM and FAN_ACCESS events.
---
fs/readdir.c | 2 ++ 1 file changed, 2 insertions(+)
fs/readdir.c renamed from fs/readdir.c~fanotify-create-fan_access-event-for-readdir +2 -0
@@ -13,6 +13,7 @@#include <linux/stat.h> #include <linux/file.h> #include <linux/fs.h> +#include <linux/fsnotify.h> #include <linux/dirent.h> #include <linux/security.h> #include <linux/syscalls.h>
@@ -40,6 +41,7 @@ int iterate_dir(struct file *file, struc ctx->pos = file->f_pos; res = file->f_op->iterate (file, ctx); file->f_pos = ctx->pos; +fsnotify_access (file);file_accessed (file); }mutex_unlock (&inode->i_mutex);
_
Patches currently in -mm which might be from [email protected] are
fanotify-fan_mark_flush-avoid-having-to-provide-a-fake-invalid-fd-and-path.patch fanotify-create-fan_access-event-for-readdir.patch