From mboxrd@z Thu Jan 1 00:00:00 1970 From: LC Bruzenak Subject: Re: audit-viewer "comm" question Date: Mon, 04 Aug 2008 18:01:43 -0500 Message-ID: <1217890903.30693.423.camel@homeserver> References: <1217890182.30693.417.camel@homeserver> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m74N2Eld001724 for ; Mon, 4 Aug 2008 19:02:14 -0400 Received: from mail.magitekltd.com (rrcs-24-242-137-197.sw.biz.rr.com [24.242.137.197]) by mx3.redhat.com (8.13.8/8.13.8) with ESMTP id m74N1pHe028962 for ; Mon, 4 Aug 2008 19:01:56 -0400 Received: from [24.242.137.194] (helo=[192.168.30.40]) by mail.magitekltd.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1KQ91u-0002r7-Le for linux-audit@redhat.com; Mon, 04 Aug 2008 17:59:54 -0500 In-Reply-To: <1217890182.30693.417.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: Linux Audit List-Id: linux-audit@redhat.com On Mon, 2008-08-04 at 17:49 -0500, LC Bruzenak wrote: > After reading Steve's info about the "comm" field being clipped at 16 > chars, I was surprised to see a longer string inside the audit-viewer > "comm" field. > I have taken a screen shot, but won't post it unless asked (it's 41K). > The "comm" field there is: "/usr/libexec/gnome-settings-daemon", which > of course is longer than 16 chars. > > The same event in ausearch shows a NULL "comm" field, but the rest of > the info lines up with the GUI: > > [root@hugo ~]# ausearch -ts today -i -a 126492 > ---- > type=USER_AVC msg=audit(08/04/2008 16:04:24.152:126492) : user pid=23501 > uid=root auid=unset subj=system_u:system_r:xdm_xserver_t:s0-s15:c0.c1023 > msg='avc: denied { receive } for comm=(null) event=X11:PropertyNotify > scontext=user_u:user_r:user_t:s0-s15:c0.c1023 > tcontext=user_u:object_r:property_xevent_t:s4:c0,c2,c11,c200.c511 > tclass=x_event : exe=/usr/bin/Xorg (sauid=root hostname=?, addr=?, > terminal=?)' > I guess the question here is not why there is > 16 chars (since this is a USER_AVC not kernel-generated event - right?) but rather why the GUI shows the comm but the ausearch doesn't. Thx, LCB. -- LC (Lenny) Bruzenak lenny@magitekltd.com