From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: Converting relative path to absolute path Date: Fri, 06 Dec 2013 12:33:39 -0500 Message-ID: <9697051.UYjdAXRdsh@x2> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from x2.localnet (vpn-56-233.rdu2.redhat.com [10.10.56.233]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id rB6HXeF7018583 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 6 Dec 2013 12:33:41 -0500 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: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Friday, December 06, 2013 08:42:44 AM Peter Moody wrote: > > If I access a file with relative path, the PATH audit message would be > > a relative path as well. > > > > I wonder if I can change this behavior without modifying the kernel? > > IIUC, there should be a CWD message to go along with the PATH message. > You should be able to use that to find the absolute path That is correct. What I do is take the cwd field and concatenate path and then run it through realpath(3) to finalize it. -Steve