From: Greg KH Subject: Re: [PATCH] audit: file system auditing based on location and name Date: Wed, 6 Jul 2005 10:17:26 -0700 Message-ID: <20050706171726.GA27902@kroah.com> References: <1120668881.8328.1.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andrew Morton , linux-audit@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, David Woodhouse , Mounir Bsaibes , Steve Grubb , Serge Hallyn , Alexander Viro , Klaus Weidner , Chris Wright , Stephen Smalley , Robert Love , Christoph Hellwig , Daniel H Jones , Amy Griffis , Maneesh Soni Return-path: Received: from mail.kroah.org ([69.55.234.183]:17372 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S262401AbVGFRRl (ORCPT ); Wed, 6 Jul 2005 13:17:41 -0400 To: "Timothy R. Chavez" Content-Disposition: inline In-Reply-To: <1120668881.8328.1.camel@localhost> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, Jul 06, 2005 at 11:54:41AM -0500, Timothy R. Chavez wrote: > To implement this feature we rely on the concepts of a "watch" and > "watch list". Directories hold lists of "watches" (ie: "watch lists") > that describe auditable file names one level beneath them. If a file > holds a pointer into a "watch list" it is auditable. When accessed by > a system call, information about the inode and its "watches" is added > to the audit context of the current task (an inode may have multiple > "watches" if a hard link to a "watched" file is itself being "watched") > which is sent to user space upon system call exit. This sounds almost identical to inotify. Is there some way you could use that instead? If not, you should explain why in your patch introduction. thanks, greg k-h