fanotify: groups can specify their f_flags for new fd
authorEric Paris <eparis@redhat.com>
Wed, 28 Jul 2010 14:18:37 +0000 (10:18 -0400)
committerEric Paris <eparis@redhat.com>
Wed, 28 Jul 2010 14:18:50 +0000 (10:18 -0400)
commit80af2588676483ac4e998b5092e9d008dab3ab62
tree6bff012a185f55b27f601e50b2f2ad53e9fc9f63
parent20dee624ca40db227aa70cb3f44d2d6cb4fdbab4
fanotify: groups can specify their f_flags for new fd

Currently fanotify fds opened for thier listeners are done with f_flags
equal to O_RDONLY | O_LARGEFILE.  This patch instead takes f_flags from the
fanotify_init syscall and uses those when opening files in the context of
the listener.

Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/fanotify/fanotify_user.c
include/linux/fsnotify_backend.h