From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,ca6d984e1f8906bf X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2004-01-26 02:36:04 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: kdom@mail.mobistar.be (dompie) Newsgroups: comp.unix.tru64 Subject: Re: Auditing Date: 26 Jan 2004 02:36:03 -0800 Organization: http://groups.google.com Message-ID: References: <40105755@usenet01.boi.hp.com> NNTP-Posting-Host: 212.224.148.35 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1075113364 16727 127.0.0.1 (26 Jan 2004 10:36:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 26 Jan 2004 10:36:04 +0000 (UTC) Xref: archiver1.google.com comp.unix.tru64:11125 "Ann Majeske" wrote in message news:<40105755@usenet01.boi.hp.com>... > Hi, > > You should use the sysman Audit Manager (sysman applications -> > Daily Administration -> Audit Manager) aka /usr/tcb/bin/dxaudit or > the auditmask command to set up audit object selection. See the > V5.1B Security Administration guide section 3.4.6 "Auditing > File Operations" and/or the auditmask man page, paying particular > attention to the options: -q -Q -s -x -X. Note that you have to > enable the obj_sel style characteristic for object selection to be > enabled. Running auditmask without options will show you your > current audit mask including style characteristics. From your info > below, it looks like object selection is off. > > Ann > > "dompie" wrote in message > news:c2b4ae48.0401200805.67c13270@posting.google.com... > > 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 > > " Hi An, thanks for the info. I thought that when audit was started that a list of files was specified for object selection (e.g. /etc/passwd), however, it seems that the flag wether or not to audit a file is placed upon the file itself (makes sense if you think about it). I am still stuck with one problem but this might be a because of the obj_selmod:0 param. I will do some additional tests. Thanks for the help. It seems that audit is not widely used althouhg I personally find it very interesting. Kris