From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bill Tangren Subject: trouble with a number of audit rules Date: Mon, 29 Jan 2007 16:57:49 -0500 Message-ID: <45BE6DDD.6080008@aa.usno.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.redhat.com (mx2.redhat.com [10.255.15.25]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l0TLvp3d026223 for ; Mon, 29 Jan 2007 16:57:52 -0500 Received: from beatrix.usno.navy.mil (beatrix.usno.navy.mil [198.116.61.254]) by mx2.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l0TLvoZB005874 for ; Mon, 29 Jan 2007 16:57:50 -0500 Received: from [10.1.5.58] (mach2.usno.navy.mil [10.1.5.58]) by aa.usno.navy.mil (Postfix) with ESMTP id C0AFA903F9 for ; Mon, 29 Jan 2007 16:57:49 -0500 (EST) 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 Hello all, I am trying to add the following functionality to auditd (via audit.rules) using the following rules, but the rules don't work on my RHEL ES 4 system (fully patched). Could someone look at them and tell me what I am doing wrong, or where I can read how to do it right? 1) # Ensures that any reads of the audit log by the current user that's logged is # audited. It might be beneficial to create a rule for each of the 5 logs # that are generated. RULE: -w /var/log/audit/audit.log -p r -F auid=-1 ERROR: List must be given before field 2) # Ensures that any user who mounts or unmounts a device is audited RULE: -a exit,always -S mount -S umount ERROR: Syscall name unknown: umount 3) # ensures auditing whenever the reboot command is sent to the kernel RULE: -a always,entry -S socketcall -F a0=13 ERROR: Syscall name unknown: socketcall 4) # Ensures auditing of any unauthorized access to roots home directory. RULE: -w /root -p rw -F uid!=0 ERROR: List must be given before field 5) #Ensure that failed use of the following system calls is audited RULE: -a exit,always -S quotactl -S mount -S stime -S kill -S chroot -F success=0 -F auid=-1 -F auid=0 ERROR: Syscall name unknown: stime TIA, Bill Tangren