From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miloslav =?UTF-8?Q?Trma=C4=8D?= Subject: Re: [PATCH] Handle timestamp 0.0 in auparse, was Re: audit-viewer help needed Date: Tue, 23 Sep 2008 02:57:59 +0200 Message-ID: <1222131479.2685.92.camel@amilo> References: <1221782548.6783.30.camel@homeserver> <1221812917.2947.10.camel@amilo> <1221830658.6513.4.camel@homeserver> <1222126221.2685.81.camel@amilo> <1222130317.6513.85.camel@homeserver> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1222130317.6513.85.camel@homeserver> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: LC Bruzenak Cc: linux-audit List-Id: linux-audit@redhat.com LC Bruzenak p=C3=AD=C5=A1e v Po 22. 09. 2008 v 19:38 -0500: > On Mon, 2008-09-22 at 23:30 +0000, Miloslav Trma=C4=8D wrote: > > > node=3Dhugo type=3DAVC msg=3Daudit(0.000:6760): comm=3D"lock= d" > >=20 > > I'm curious how this audit record could have been created (notabile i= s > > that the previous record has a sequence ID 6758 and a reasonable > > timestamp). Lenny, Steve, any ideas? > =20 > I found a couple more: >=20 > [root@hugo ~]# grep "(0.000:" /var/log/audit/audit.log* > type=3DAVC msg=3Daudit(0.000:6760): comm=3D"lockd" > type=3DAVC msg=3Daudit(0.000:381): comm=3D"nfsd4" I think I can see what's going on. Those are kernel threads; when they are created, an audit context is created and zeroed. The timestamp is set on system call entry in ordinary threads, but there is no system call entry in kernel threads, so the original zero timestamp is used in all audit records related to kernel threads. I'm not sure how to fix it, though. Perhaps identify "operation start" points in kernel threads, and update the timestamps in their audit contexts at that time? Mirek