From mboxrd@z Thu Jan 1 00:00:00 1970 From: LC Bruzenak Subject: need rules help Date: Wed, 05 Aug 2009 21:45:45 -0500 Message-ID: <1249526745.12117.986.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 n762k1Es001317 for ; Wed, 5 Aug 2009 22:46:01 -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 n762jkkh009021 for ; Wed, 5 Aug 2009 22:45:46 -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 1MYsyy-0005E4-KZ for linux-audit@redhat.com; Wed, 05 Aug 2009 21:45:32 -0500 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 I searched the list for an example but see nothing applicable. I need to be able to exclude the following event example: node=jcdx type=PATH msg=audit(07/20/2009 00:00:16.469:24295) : item=0 name=/var/opt/jcdx/tracks/mltrackdb/AcousticTracks.inst/040fd238ede9dfbbc19e012c7633836f/AcousticTracks node=jcdx type=CWD msg=audit(07/20/2009 00:00:16.469:24295) : cwd=/ node=jcdx type=SYSCALL msg=audit(07/20/2009 00:00:16.469:24295) : arch=i386 syscall=stat64 success=no exit=-13(Permission denied) a0=8813598 a1=ffdfed24 a2=c91ff4 a3=ffdfee5c items=1 ppid=1 pid=2747 auid=unset uid=root gid=unknown(450) euid=root suid=root fsuid=root egid=unknown(450) sgid=unknown(450) fsgid=unknown(450) tty=(none) ses=4294967295 comm=mtdb exe=/opt/jcdx/sbin/mtdb subj=system_u:system_r:jcdx_mtdb_t:s0-s6:c0.c511 key=(null) node=jcdx type=AVC msg=audit(07/20/2009 00:00:16.469:24295) : avc: denied { search } for pid=2747 comm=mtdb name=040fd238ede9dfbbc19e012c7633836f dev=dm-0 ino=71632 scontext=system_u:system_r:jcdx_mtdb_t:s0-s6:c0.c511 tcontext=system_u:object_r:jcdx_stdb_var_t:s15:c0.c1023 tclass=dir I thought that the following would work: -a never,exit -F subj_type=jcdx_mtdb_t -F obj_type=jcdx_stdb_var_t but it doesn't stop the event from getting into the log. I saw Steve's suggestion back in January about using the exclude rule, but that one says "only msgtype field works with exclude filter", so I cannot include any other "-F" options. Any ideas? Thx, LCB. -- LC (Lenny) Bruzenak lenny@magitekltd.com