1#!/bin/sh 2# 3# $FreeBSD: releng/10.2/etc/rc.d/ugidfw 180564 2008-07-16 19:50:29Z dougb $ 4 5# PROVIDE: ugidfw 6# BEFORE: LOGIN 7# KEYWORD: nojail shutdown 8 9. /etc/rc.subr 10 11name="ugidfw" 12rcvar="ugidfw_enable" 13start_cmd="ugidfw_start" 14stop_cmd="ugidfw_stop" 15required_modules="mac_bsdextended" 16 17ugidfw_load() 18{ 19 if [ -r "${bsdextended_script}" ]; then 20 . "${bsdextended_script}" 21 fi 22} 23 24ugidfw_start() 25{ 26 [ -z "${bsdextended_script}" ] && bsdextended_script=/etc/rc.bsdextended 27 28 if [ -r "${bsdextended_script}" ]; then 29 ugidfw_load 30 echo "MAC bsdextended rules loaded." 31 fi 32} 33 34ugidfw_stop() 35{ 36 # Disable the policy 37 # 38 kldunload mac_bsdextended 39} 40 41load_rc_config $name 42run_rc_command "$1" 43