Skip to contentSkip to conversation

fanotify-create-fan_access-event-for-readdir.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 5, 2014 VFS

lore
Share & tools
lore
#0 lore raw

Subject: [merged] fanotify-create-fan_access-event-for-readdir.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 05 Jun 2014 12:42:09 -0700

The patch titled
Subject: fanotify: create FAN_ACCESS event for readdir
has been removed from the -mm tree. Its filename was
fanotify-create-fan_access-event-for-readdir.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
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
diff -puN fs/readdir.c~fanotify-create-fan_access-event-for-readdir fs/readdir.c
@@ -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

origin.patch
linux-next.patch