o Remove unfinished code and make it possible to override
bsdextended_script from rc.conf(5): Not objected by: trhodes
This commit is contained in:
parent
fec39060e2
commit
8862edf857
@ -19,7 +19,6 @@ ugidfw_load()
|
||||
{
|
||||
if [ -r "${bsdextended_script}" ]; then
|
||||
. "${bsdextended_script}"
|
||||
echo -n " ${_bsdextended_profile}"
|
||||
fi
|
||||
}
|
||||
|
||||
@ -39,20 +38,12 @@ ugidfw_precmd()
|
||||
|
||||
ugidfw_start()
|
||||
{
|
||||
# check for existing profiles and set the default policy script
|
||||
# if none was specified
|
||||
[ -z "${bsdextended_profiles}" ] && {
|
||||
bsdextended_profiles=default
|
||||
[ -z "${bsdextended_script}" ] && bsdextended_script=/etc/rc.bsdextended
|
||||
bsdextended_default_script=/etc/rc.bsdextended
|
||||
}
|
||||
[ -z "${bsdextended_script}" ] && bsdextended_script=/etc/rc.bsdextended
|
||||
|
||||
echo -n "Loading MAC bsdextended rules:"
|
||||
for _bsdextended_profile in ${bsdextended_profiles}; do
|
||||
eval bsdextended_script=\"\$bsdextended_${_bsdextended_profile}_script\"
|
||||
ugidfw_load
|
||||
done
|
||||
echo '.'
|
||||
if [ -r "${bsdextended_script}" ]; then
|
||||
ugidfw_load
|
||||
echo "MAC bsdextended rules loaded."
|
||||
fi
|
||||
}
|
||||
|
||||
ugidfw_stop()
|
||||
|
Loading…
Reference in New Issue
Block a user