On Thu, 2005-04-21 at 01:13 -0400, Robert Love wrote:
> Live from linux.conf.au, below is inotify against 2.6.12-rc3.
Mark the open inotify device as nonseekable, so lseek() and such do not
work.
Signed-off-by: Robert Love <[email protected]>
fs/inotify.c | 2 ++
1 files changed, 2 insertions(+)
diff -urN linux-2.6.12-rc3-inotify/fs/inotify.c linux/fs/inotify.c
--- linux-2.6.12-rc3-inotify/fs/inotify.c 2005-04-22 00:54:25.000000000 -0400
+++ linux/fs/inotify.c 2005-04-22 00:50:36.000000000 -0400
@@ -743,6 +743,8 @@
file->private_data = dev;
+ nonseekable_open(inode, file);
+
return 0;
out_err:
free_uid(user);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]