]> bbs.cooldavid.org Git - net-next-2.6.git/commit
fanotify: limit number of listeners per user
authorEric Paris <eparis@redhat.com>
Thu, 28 Oct 2010 21:21:58 +0000 (17:21 -0400)
committerEric Paris <eparis@redhat.com>
Thu, 28 Oct 2010 21:22:15 +0000 (17:22 -0400)
commit4afeff8505cb8a38e36c1ef2bd3447c4b8f87367
tree50a80d8773698813e4e9d9f9112079c09d493c48
parentac7e22dcfafd04c842a02057afd6541c1d613ef9
fanotify: limit number of listeners per user

fanotify currently has no limit on the number of listeners a given user can
have open.  This patch limits the total number of listeners per user to
128.  This is the same as the inotify default limit.

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