From: "John Stoffel" Subject: Re: fanotify - overall design before I start sending patches Date: Tue, 4 Aug 2009 14:20:09 -0400 Message-ID: <19064.31705.491774.122207@stoffel.org> References: <1248466429.3567.82.camel@localhost> <200908041709.51659.tvrtko.ursulin@sophos.com> <1249403268.2361.21.camel@dhcp231-106.rdu.redhat.com> <19585.1249406551@turing-police.cc.vt.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: "david-gFPdbfVZQbY@public.gmane.org" , "a.p.zijlstra-/NLkJaSkS4VmR6Xm/wNWPw@public.gmane.org" , Douglas Leeder , "malware-list-h+Im9A44IAFcMpApZELgcQ@public.gmane.org" , "mrkafk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" , "aviro-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "jengelh-nopoi9nDyk+ELgA04lAiVw@public.gmane.org" , "hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org" , "pavel-AlSwsSmVLrQ@public.gmane.org" , "alexl-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org" , "jcm-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org" , "linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "jack-AlSwsSmVLrQ@public.gmane.org" , "alan-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org" , "arjan-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org" To: Valdis.Kletnieks-PjAqaU27lzQ@public.gmane.org Return-path: In-Reply-To: <19585.1249406551-+bZmOdGhbsPr6rcHtW+onFJE71vCis6O@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: malware-list-bounces-h+Im9A44IAFcMpApZELgcQ@public.gmane.org Errors-To: malware-list-bounces-h+Im9A44IAFcMpApZELgcQ@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org >>>>> "Valdis" == Valdis Kletnieks writes: Valdis> On Tue, 04 Aug 2009 12:27:48 EDT, Eric Paris said: >> On Tue, 2009-08-04 at 17:09 +0100, Tvrtko Ursulin wrote: >> > Would it make more sense to deny on timeouts and then evict? I am thinking it >> > would be more secure with no significant drawbacks. Also for usages like HSM >> > allowing it without data being in place might present wrong content to the >> > user. >> >> I'd be willing to go that route as long as noone else complains. Valdis> Yes, in my world, "deny on timeout and evict" is the better Valdis> design decision. For an HSM, you'd rather have a Valdis> quick-and-ugly death on a failed file open than an app Valdis> accidentally reading the HSM's stub data thinking it's the Valdis> original data. Speaking as somone who is working slowly to deploy an HSM service, one thing to note is that when you *do* see the stub file contents, you know that your HSM is busted somehow. How will fanotify deal with this issue? Sorry, I haven't paid enough attention to this thread though I know I should since it's up my $WORK alley. John