From: kdom@mail.mobistar.be (dompie)
Subject: Auditing
Date: 20 Jan 2004 08:05:16 -0800 [thread overview]
Message-ID: <c2b4ae48.0401200805.67c13270@posting.google.com> (raw)
Hi,
I have started Auditing on my Tru64 v5.1B system (after starting
Enhanced Security).
However, I think I am missing the point.
Basically, I only want to audit certain files (eg. /etc/passwd,
/etc/hosts).
I added the 'open' system call to the /etc/sec/rc_audit_event and in
the /etc/sec/fs_objects I only put '/etc/passwd' and '/etc/hosts'.
However, after a reboot, when I consult the audit log file using
audit_tool, I notice that every 'open' syscall has been logged,
resulting in very big audit log files (eg. a lot of /shlib/libc.so
entries)
I read the man and the security guide (from the web) but I am not
understanding it correctly I guess.
Can anyone tell me what to put in the 'etc/sec/rc_audit_events' and
'etc/sec/fs_objects' to only audit the '/etc/hosts' and '/etc/passwd'
file?
Any help really very much appreciated
Kris
Here is the content of the 'rc_audit_events' file:
"
audit_start succeed fail
audit_stop succeed fail
audit_setup succeed fail
audit_log_creat succeed fail
audit_xmit_fail succeed fail
audit_reboot succeed fail
audit_log_overwrite succeed fail
audit_daemon_exit succeed fail
settimeofday succeed fail
ntp_adjtime succeed fail
utc_adjtime succeed fail
login succeed fail
logout succeed fail
auth_event succeed fail
connect succeed fail
accept succeed fail
bind succeed fail
net_udp_stray_packet succeed fail
net_tcp_rejected_conn succeed fail
mount succeed fail
unmount succeed fail
setuid succeed fail
setgid succeed fail
setlogin succeed fail
chroot succeed fail
setsid succeed fail
alternate setsid succeed fail
old creat succeed fail
link succeed fail
mknod succeed fail
symlink succeed fail
mkdir succeed fail
unlink succeed fail
truncate succeed fail
ftruncate succeed fail
SystemV/unlink succeed fail
rmdir succeed fail
chmod succeed fail
chown succeed fail
fchown succeed fail
fchmod succeed fail
lchown succeed fail
utimes succeed fail
rename succeed fail
open succeed fail
"
and the content of the '/etc/sec/fs_objects' file:
"
/etc/hosts
/etc/passwd
"
Also, these are the audit vars in the 'rc.config.common' file:
"
AUDITD_FLAG="-l /audit/auditlog -c syslog -o suspend"
export AUDITD_FLAG
AUDITMASK_FLAG="-s exec_argp:1 -s exec_envp:1 -s login_uname:1 -s
obj_sel:1 -s obj_desel:0 -s obj_selmod:0 -s objsel_ipc:1 -s cmd_name:0
< /etc/sec/rc_audit_events"
export AUDITMASK_FLAG
"
next reply other threads:[~2004-01-20 16:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-20 16:05 dompie [this message]
2004-01-22 23:03 ` Auditing Ann Majeske
2004-01-26 10:36 ` Auditing dompie
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox