PERFORCE change 67882 for review
Tom Rhodes
trhodes at FreeBSD.org
Thu Dec 30 04:24:49 GMT 2004
http://perforce.freebsd.org/chv.cgi?CH=67882
Change 67882 by trhodes at trhodes_local on 2004/12/30 04:24:44
Make this file more realistic by gathering the flags passed in rc.conf. Add required files as requested by Wayne.
Affected files ...
.. //depot/projects/trustedbsd/audit3/etc/rc.d/auditd#2 edit
Differences ...
==== //depot/projects/trustedbsd/audit3/etc/rc.d/auditd#2 (text+ko) ====
@@ -12,31 +12,12 @@
. /etc/rc.subr
name="auditd"
-start_cmd="auditd_start"
stop_cmd="auditd_stop"
-
-auditd_start()
-{
-if checkyesno auditd_enable; then
- echo "Starting the audit daemon"
- if [ -f /usr/sbin/auditd ]; then
- /usr/sbin/auditd
-fi
-
-
-elif checkyesno auditd_failstop_enable; then
- echo "Starting the audit daemon"
- if [ -f /usr/sbin/auditd ]; then
- /usr/sbin/auditd -s
-fi
-
-elif checkyesno auditd_failhalt_enable; then
- echo "Starting the audit daemon"
- if [ -f /usr/sbin/auditd ]; then
- /usr/sbin/auditd -h
- fi
-fi
-}
+command="/usr/sbin/${name}"
+rcvar="auditd_enable"
+command_args="${auditd_flags}"
+requited_files="/etc/audit_class /etc/audit_control /etc/audit_event
+ /etc/audit_user /etc/audit_warn /etc/auditd_control"
auditd_stop()
{
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list