From: Valdis.Kletnieks@vt.edu Subject: Re: Absolute path names in PATH records Date: Mon, 02 Jul 2007 16:31:54 -0400 Message-ID: <25655.1183408314@turing-police.cc.vt.edu> References: <1183405495.4534.12.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1762292820==" Return-path: In-Reply-To: Your message of "Mon, 02 Jul 2007 20:44:55 BST." <1183405495.4534.12.camel@localhost.localdomain> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Matthew Booth Cc: linux-audit List-Id: linux-audit@redhat.com --===============1762292820== Content-Type: multipart/signed; boundary="==_Exmh_1183408314_3744P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1183408314_3744P Content-Type: text/plain; charset=us-ascii On Mon, 02 Jul 2007 20:44:55 BST, Matthew Booth said: > I've hit a hurdle trying to do some post processing on audit output > because PATH records contain paths relative to the CWD, rather than the > absolute path. How much effort would likely be involved in making sure > these paths were always absolute? Probably quite a bit, especially if they traverse symlinks and the like. Additionally, you'd need to track *current* state of $CWD, as the absolute path will change each time a chdir() happens, or if somebody does something like 'mv . ../../foo'. Particularly evil to track: cd foo/bar/baz ./myprog & cd ../ mv baz .. Where's myprog's ../../bin pointing now? And how would your post processor know that happened? --==_Exmh_1183408314_3744P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFGiWC6cC3lWbTT17ARAv0KAJsFcOM1qnp28TK+8dmCCfuNI1O+LQCgpK2/ WCT7Acbd2Loz7leCALxVcq0= =FAe9 -----END PGP SIGNATURE----- --==_Exmh_1183408314_3744P-- --===============1762292820== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1762292820==--