xref: /freebsd/libexec/rc/rc.d/securelevel (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1#!/bin/sh
2#
3#
4
5# PROVIDE: securelevel
6# REQUIRE: adjkerntz ipfw pf sysctl_lastload
7
8. /etc/rc.subr
9
10name="securelevel"
11desc="Securelevel configuration"
12rcvar='kern_securelevel_enable'
13start_cmd="securelevel_start"
14stop_cmd=":"
15
16securelevel_start()
17{
18	if [ ${kern_securelevel} -ge 0 ]; then
19		echo 'Raising kernel security level: '
20		${SYSCTL} kern.securelevel=${kern_securelevel}
21	fi
22}
23
24load_rc_config $name
25run_rc_command "$1"
26