linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] fanotify: Introduce FAN_NOFD
@ 2010-11-24 17:22 Lino Sanfilippo
  2010-11-29 20:40 ` Eric Paris
  0 siblings, 1 reply; 2+ messages in thread
From: Lino Sanfilippo @ 2010-11-24 17:22 UTC (permalink / raw)
  To: eparis; +Cc: linux-kernel, linux-fsdevel


FAN_NOFD is used in fanotify events that do not provide an open file
descriptor (like the overflow_event).

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
---
 include/linux/fanotify.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Please apply this against commit 9df291342d1330d4d2ddf389820f58dda975f8dd
of branch 'origin/for-next' from git.infradead.org/users/eparis/notify.git

diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h
index 3db66ef..d6ec57a 100644
--- a/include/linux/fanotify.h
+++ b/include/linux/fanotify.h
@@ -104,6 +104,8 @@ struct fanotify_response {
 /* Legit userspace responses to a _PERM event */
 #define FAN_ALLOW	0x01
 #define FAN_DENY	0x02
+/* No fd set in event */
+#define FAN_NOFD	-1
 
 /* Helper functions to deal with fanotify_event_metadata buffers */
 #define FAN_EVENT_METADATA_LEN (sizeof(struct fanotify_event_metadata))
-- 
1.5.6.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] fanotify: Introduce FAN_NOFD
  2010-11-24 17:22 [PATCH 1/2] fanotify: Introduce FAN_NOFD Lino Sanfilippo
@ 2010-11-29 20:40 ` Eric Paris
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Paris @ 2010-11-29 20:40 UTC (permalink / raw)
  To: Lino Sanfilippo; +Cc: linux-kernel, linux-fsdevel

On Wed, 2010-11-24 at 18:22 +0100, Lino Sanfilippo wrote:
> FAN_NOFD is used in fanotify events that do not provide an open file
> descriptor (like the overflow_event).
> 
> Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>

applied to for-next


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-29 20:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-24 17:22 [PATCH 1/2] fanotify: Introduce FAN_NOFD Lino Sanfilippo
2010-11-29 20:40 ` Eric Paris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).