From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: How to reconstruct file path from PATH records? Date: Wed, 8 Dec 2010 12:42:17 -0500 Message-ID: <201012081242.18183.sgrubb@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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 Cc: Dilin Mao List-Id: linux-audit@redhat.com On Tuesday, December 07, 2010 01:21:27 am Dilin Mao wrote: > We are developing a system to monitor file operations, the difficulties > is how to reconstruct file path from audit records. we have written some > testcases for system calls of file/dir operation, and found that the > numbers of path records differs when we try different combinations of > absolute or relative pathname. For rename/renameat function, we have seen > four or five path records per system call, for link/linkat function, the > number of path records is two or three. Is there any rule for how the path > records is generated? I was hoping one of the kernel developers was going to answer this. > We have also found that the file path can't be reconstruct correctly > sometimes. Taken linkat function as example: By any chance, can you share the testcase source code? I'm sure I could write it from scratch, but it might help expedite the discussion if you could share that. Thanks, -Steve