Return-Path: Received: from mx2.suse.de ([195.135.220.15]:46938 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726936AbeJQTS6 (ORCPT ); Wed, 17 Oct 2018 15:18:58 -0400 Date: Wed, 17 Oct 2018 13:23:41 +0200 From: Jan Kara To: Matthew Bobrowski Cc: Jan Kara , amir73il@gmail.com, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, sgrubb@redhat.com Subject: Re: [PATCH v4 3/3] fanotify: introduce new event type FAN_OPEN_EXEC_PERM Message-ID: <20181017112341.GE23493@quack2.suse.cz> References: <20181016120420.GK18918@quack2.suse.cz> <20181017063316.GA1694@development.internal.lab> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181017063316.GA1694@development.internal.lab> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed 17-10-18 17:33:18, Matthew Bobrowski wrote: > > And a general question: Do I understand right that your audit application > > needs this event type? > > Yes, your understanding is correct. The application we're developing > requires this event type. > > > I'm asking because so far what Steve wrote me was about pattern matching > > of fanotify events to detect when something happens. So it's not clear > > to me how permission event fits into that. > > That detection for when "something happens", is precisely to do with > understanding when a file is opened for execution. We use permission > events within the application we're developing to either ALLOW or DENY a > particular action being performed against an object. At the moment, we > don't have any way to determine what actually caused a watched object to > be opened, so this is to aid with that, and also help us make a better > judgment how we're to respond to a particular action. OK, understood. I just wanted to be sure I understand what you need correctly. Thanks for explanation. Honza -- Jan Kara SUSE Labs, CR