]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.d/auditd
Fix kernel memory disclosure from /dev/midistat.
[FreeBSD/FreeBSD.git] / etc / rc.d / auditd
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5 # Start up for the Audit daemon.
6 #
7
8 # PROVIDE: auditd
9 # REQUIRE: syslogd
10 # BEFORE:  DAEMON
11 # KEYWORD: nojail shutdown
12
13 . /etc/rc.subr
14
15 name="auditd"
16 desc="Audit daemon"
17 stop_cmd="auditd_stop"
18 command="/usr/sbin/${name}"
19 rcvar="auditd_enable"
20 command_args="${auditd_flags}"
21 required_files="/etc/security/audit_class /etc/security/audit_control
22                 /etc/security/audit_event /etc/security/audit_user
23                 /etc/security/audit_warn"
24
25 auditd_stop()
26 {
27
28         /usr/sbin/audit -t
29         sleep 1
30 }
31
32 load_rc_config $name
33 run_rc_command "$1"