1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/rc.d/securelevel 174438 2007-12-08 07:20:23Z dougb $
| 3# $FreeBSD: head/etc/rc.d/securelevel 220153 2011-03-30 01:19:00Z emaste $
|
4# 5 6# PROVIDE: securelevel 7 8. /etc/rc.subr 9 10name="securelevel" 11rcvar='kern_securelevel_enable' 12start_cmd="securelevel_start" 13stop_cmd=":" 14 15# Last chance to set sysctl variables that failed the first time. 16# 17/etc/rc.d/sysctl lastload 18 19securelevel_start() 20{ 21 if [ ${kern_securelevel} -ge 0 ]; then 22 echo 'Raising kernel security level: '
| 4# 5 6# PROVIDE: securelevel 7 8. /etc/rc.subr 9 10name="securelevel" 11rcvar='kern_securelevel_enable' 12start_cmd="securelevel_start" 13stop_cmd=":" 14 15# Last chance to set sysctl variables that failed the first time. 16# 17/etc/rc.d/sysctl lastload 18 19securelevel_start() 20{ 21 if [ ${kern_securelevel} -ge 0 ]; then 22 echo 'Raising kernel security level: '
|
23 ${SYSCTL_W} kern.securelevel=${kern_securelevel}
| 23 ${SYSCTL} kern.securelevel=${kern_securelevel}
|
24 fi 25} 26 27load_rc_config $name 28run_rc_command "$1"
| 24 fi 25} 26 27load_rc_config $name 28run_rc_command "$1"
|