From: Andreas Gruenbacher Subject: Re: [BUG][PATCH][2.6.36-rc3] fanotify: Do not ignore result of permission decisions Date: Fri, 8 Oct 2010 23:05:35 +0200 Message-ID: <201010082305.36195.agruen@suse.de> References: <201009071608.02290.tvrtko.ursulin@sophos.com> <201010081500.40494.agruen@suse.de> <201010081711.24373.tvrtko.ursulin@sophos.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Eric Paris , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" To: Tvrtko Ursulin Return-path: Received: from cantor2.suse.de ([195.135.220.15]:60831 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759664Ab0JHVGK (ORCPT ); Fri, 8 Oct 2010 17:06:10 -0400 In-Reply-To: <201010081711.24373.tvrtko.ursulin@sophos.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Friday 08 October 2010 18:11:23 Tvrtko Ursulin wrote: > On Friday 08 Oct 2010 14:00:40 Andreas Gruenbacher wrote: > > Tvrtko, > > > > On Wednesday 08 September 2010 10:24:04 Tvrtko Ursulin wrote: > > > Improved version of the fix which does not include the check > > > when permission events are not enabled in configuration and > > > stops processing if no interesting events remain. > > > > > > Current code ignores access replies to permission decisions so > > > fix it in a way which will allow all listeners to still receive > > > non permission events. > > > > I agree with the patch (see comments below), but this explanation is close > > to incomprehensible and not good as a commit message. > > How about this: > > Current code incorrectly ignores responses to permission decisions. When a > single deny response has been received record it and do not send more > permission events. However still send non-permission events to other > clients. Much better, thanks. > Also if ENOMEM, why not try sending to other listeners? My point, exactly. Thanks, Andreas