gentoo auditd not logging?

Marko Weber | 8000 weber at zbfmail.de
Fri Oct 24 13:15:39 UTC 2014



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




More information about the Linux-audit mailing list