linux/fs/notify/fanotify
Lino Sanfilippo 1734dee4e3 fanotify: Dont allow a mask of 0 if setting or removing a mark
In mark_remove_from_mask() we destroy marks that have their event mask cleared.
Thus we should not allow the creation of those marks in the first place.
With this patch we check if the mask given from user is 0 in case of FAN_MARK_ADD.
If so we return an error. Same for FAN_MARK_REMOVE since this does not have any
effect.

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: Eric Paris <eparis@redhat.com>
2010-12-07 16:14:21 -05:00
..
fanotify_user.c fanotify: Dont allow a mask of 0 if setting or removing a mark 2010-12-07 16:14:21 -05:00
fanotify.c fanotify: ignore events on directories unless specifically requested 2010-10-28 17:22:16 -04:00
Kconfig fanotify: default Kconfig to n 2010-07-28 09:59:03 -04:00
Makefile fanotify: fanotify_init syscall declaration 2010-07-28 09:58:55 -04:00