From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marko Weber | 8000 Subject: gentoo auditd not =?UTF-8?Q?logging=3F?= Date: Fri, 24 Oct 2014 15:15:39 +0200 Message-ID: <4e30e7a80cdb5f56f082f81a707c23a9@zbfmail.de> Reply-To: weber@zbfmail.de Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (ext-mx15.extmail.prod.ext.phx2.redhat.com [10.5.110.20]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s9ODFirc006682 for ; Fri, 24 Oct 2014 09:15:45 -0400 Received: from mail.zbfmail.de (mail.zbfmail.de [176.9.84.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9ODFe12004345 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 24 Oct 2014 09:15:42 -0400 Received: from mail.zbfmail.de (localhost [127.0.0.1]) by mail.zbfmail.de (Postfix) with ESMTP id 3C3094FE5EB for ; Fri, 24 Oct 2014 15:15:39 +0200 (CEST) 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 Hello List, i installed audit on a gentoo box. in the auditd.log it shows logins via ssh: type=LOGIN msg=audit(1413987302.466:14): pid=27091 uid=0 old-auid=4294967295 auid=0 old-ses=4294967295 ses=7 res=1 but in the logs i cant see failed logins. my config for testing looks like this: # First rule - delete all # This is to clear out old rules, so we don't append to them. -D # Feel free to add below this line. See auditctl man page -a exclude,always -F msgtype=NETFILTER_CFG -w /sbin/insmod -p x -k module_insertion -w /etc/passwd -p wa -k passwd_changes -w /var/log/auth.log -p wa -k logins -w /etc/ssh/sshd_config -p warx -k sshd_config # The following rule would cause all of the syscalls listed to be ignored in logging. #-a exit,never -F arch=b32 -S read -S write -S open -S fstat -S mmap -S brk -S munmap -S nanosleep -S fcntl -S close -S dup2 -S rt_sigaction -S stat #-a exit,never -F arch=b64 -S read -S write -S open -S fstat -S mmap -S brk -S munmap -S nanosleep -S fcntl -S close -S dup2 -S rt_sigaction -S stat # The following rule would cause the capture of all systems not caught above. # -a exit,always -S all # Increase the buffers to survive stress events -b 8192 # lock the audit configuration to prevent any modification of this file. -e 2 in auditd.log i cant see anything when i do cat on sshd_config or when open sshd_config in vim and save it. Nothing shown in the log. do i missed something? best regards marko -- zbfmail - Mittendrin statt nur Datei! OpenDKIM, SPF, DSPAM, Greylisting, POSTSCREEN, AMAVIS, Mailgateways Mailfiltering, SMTP Service, Spam Abwehr, MX-Backup, Mailserver Backup Redundante Mailgateways, HA Mailserver, Secure Mailserver