ugidfw revision 165683
1135912Strhodes#!/bin/sh 2135912Strhodes# 3135912Strhodes# $FreeBSD: head/etc/rc.d/ugidfw 165683 2006-12-31 10:37:18Z yar $ 4135912Strhodes 5135912Strhodes# PROVIDE: ugidfw 6135912Strhodes# REQUIRE: 7135912Strhodes# BEFORE: LOGIN 8136502Strhodes# KEYWORD: nojail 9135912Strhodes 10135912Strhodes. /etc/rc.subr 11135912Strhodes 12135912Strhodesname="ugidfw" 13135912Strhodesrcvar="ugidfw_enable" 14135912Strhodesstart_cmd="ugidfw_start" 15135912Strhodesstop_cmd="ugidfw_stop" 16165683Syarrequired_modules="mac_bsdextended" 17135912Strhodes 18144515Strhodesugidfw_load() 19144515Strhodes{ 20144515Strhodes if [ -r "${bsdextended_script}" ]; then 21144515Strhodes . "${bsdextended_script}" 22144515Strhodes fi 23144515Strhodes} 24144515Strhodes 25135912Strhodesugidfw_start() 26135912Strhodes{ 27150800Smaxim [ -z "${bsdextended_script}" ] && bsdextended_script=/etc/rc.bsdextended 28135912Strhodes 29150800Smaxim if [ -r "${bsdextended_script}" ]; then 30150800Smaxim ugidfw_load 31150800Smaxim echo "MAC bsdextended rules loaded." 32150800Smaxim fi 33135912Strhodes} 34135912Strhodes 35135912Strhodesugidfw_stop() 36135912Strhodes{ 37135912Strhodes # Disable the policy 38135912Strhodes # 39135912Strhodes kldunload mac_bsdextended 40135912Strhodes} 41135912Strhodes 42135912Strhodesload_rc_config $name 43135912Strhodesrun_rc_command "$1" 44