1#!/bin/sh 2# 3# $FreeBSD: releng/10.2/etc/rc.d/securelevel 239568 2012-08-22 18:35:17Z obrien $ 4# 5 6# PROVIDE: securelevel 7# REQUIRE: adjkerntz ipfw ipfilter pf 8 9. /etc/rc.subr 10 11name="securelevel" 12rcvar='kern_securelevel_enable' 13start_cmd="securelevel_start" 14stop_cmd=":" 15 16# Last chance to set sysctl variables that failed the first time. 17# 18/etc/rc.d/sysctl lastload 19 20securelevel_start() 21{ 22 if [ ${kern_securelevel} -ge 0 ]; then 23 echo 'Raising kernel security level: ' 24 ${SYSCTL} kern.securelevel=${kern_securelevel} 25 fi 26} 27 28load_rc_config $name 29run_rc_command "$1" 30