summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-03-12 21:47:31 +0000
committerrwatson <rwatson@FreeBSD.org>2002-03-12 21:47:31 +0000
commit02ff3db358eed2ddd388c7b961090ffe71ee8a5d (patch)
treeeb1f3c65456e9b3b34dc1df5bd22089d9403c967 /etc/rc
parent5ccd83be4697ca8e954cf49d727cbe44dd1ffa11 (diff)
downloadFreeBSD-src-02ff3db358eed2ddd388c7b961090ffe71ee8a5d.zip
FreeBSD-src-02ff3db358eed2ddd388c7b961090ffe71ee8a5d.tar.gz
Allow LOMAC to be loaded as part of the boot scripts using "lomac_enable"
setting in rc.conf. Extracted from the still clammy hands of: green Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index c5e51c7..f02cbaa 100644
--- a/etc/rc
+++ b/etc/rc
@@ -521,6 +521,13 @@ rm -f /tmp/.X*-lock /tmp/.X11-unix/*
# Snapshot any kernel -c changes back to disk here <someday>.
# This has changed with ELF and /kernel.config.
+# Load LOMAC(4) security if wanted.
+case ${lomac_enable} in
+[Yy][Ee][Ss])
+ kldload lomac >/dev/null 2>&1
+ ;;
+esac
+
echo -n 'Additional daemons:'
# Start system logging and name service. Named needs to start before syslogd
OpenPOWER on IntegriCloud