[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1290542076.1443.33.camel@localhost.localdomain>
Date: Tue, 23 Nov 2010 14:54:36 -0500
From: Eric Paris <eparis@...hat.com>
To: Lino Sanfilippo <LinoSanfilippo@....de>
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH] fanotify: Dont allow a mask of 0 if setting or
removing a mark
On Mon, 2010-11-22 at 18:46 +0100, Lino Sanfilippo wrote:
> 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@....de>
applied. Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists