From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lance Dillon Subject: filter specific file from specific program Date: Tue, 29 Nov 2011 12:38:43 -0800 (PST) Message-ID: <1322599123.7751.YahooMailRC@web83807.mail.sp1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (ext-mx13.extmail.prod.ext.phx2.redhat.com [10.5.110.18]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id pATKciMd031864 for ; Tue, 29 Nov 2011 15:38:44 -0500 Received: from nm4.access.bullet.mail.sp2.yahoo.com (nm4.access.bullet.mail.sp2.yahoo.com [98.139.44.131]) by mx1.redhat.com (8.14.4/8.14.4) with SMTP id pATKch23007825 for ; Tue, 29 Nov 2011 15:38:43 -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 have a need to filter a file from auditing, but only from a specific process. We are running splunk, and indexing /var/log/audit/audit.log. We want audit.log to be monitored, so we are using a dir watch on /var/log/audit, but we just don't want splunk access to be reported. Filtering on obj_type doesn't work (-F obj_type=auditd_log_t), because it filters everything, not that specific process. However, it actually spawns another process to do the actual access, so I can't filter on pid either. It runs unconfined, so I can't filter on subj_type=unconfined_t, because that would filter way too much. It was suggested to me to use audit roles. If this is something separate from selinux context, perhaps someone can point me in the right direction? I only want to filter out (not audit) access to audit.log from the specific process /opt/splunkforwarder/bin/splunkd (and any forks it may do). I've been looking at creating a separate selinux context for splunk, which will do the trick, but is proving harder than I thought because it ends up forking off other programs, like top and rpm and nptdate, that run under different contexts than splunk (unconfined_t, rpm_t, and ntpdate_t respectively), so being confined to a splunk_t type prevents those programs from running properly. If anybody has any idea, or can point me in the right direction, i would appreciate it. Thanks