From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Moore Subject: Re: [PATCH ghak95] audit: Do not log full CWD path on empty relative paths Date: Tue, 6 Nov 2018 15:19:03 -0500 Message-ID: References: <20180802114436.1209-1-omosnace@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (ext-mx14.extmail.prod.ext.phx2.redhat.com [10.5.110.43]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E99C01948B for ; Tue, 6 Nov 2018 20:19:18 +0000 (UTC) Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 48C0A308FB8C for ; Tue, 6 Nov 2018 20:19:17 +0000 (UTC) Received: by mail-lf1-f66.google.com with SMTP id p6so2812668lfc.1 for ; Tue, 06 Nov 2018 12:19:17 -0800 (PST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: omosnace@redhat.com Cc: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Tue, Nov 6, 2018 at 3:09 AM Ondrej Mosnacek wrote: > On Tue, Nov 6, 2018 at 12:30 AM Paul Moore wrote: > > Let's reset this discussion a bit ... if we abolish relative paths and > > make everything absolute, is there even a need to log PARENT? > > If there ever was such need, then this won't change when we switch to > absolute paths. The PATH records contain some fields (inode, dev, obj, > ...) that can be different for the child and parent and I would say > these are the only new information that the PARENT records provide > over the corresponding CREATE/DELETE records. Sigh. Of course the inode information is going to be different between the object in question and the parent, they are different filesystem objects. Ask your self the bigger question: does the PARENT record provide me any security relevant information related to the filesystem object that is being accessed? With the messed up state of path name auditing, the PARENT records are useful when trying to recreate the full path used by the process to access a given filesystem object (transient as it may be, the path name can still be useful after the fact). If we switch to always recording absolute path names, why do we care about recording the PARENT filesystem object at all (both the path and the inode information)? -- paul moore www.paul-moore.com