From 02ff3db358eed2ddd388c7b961090ffe71ee8a5d Mon Sep 17 00:00:00 2001 From: rwatson Date: Tue, 12 Mar 2002 21:47:31 +0000 Subject: 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 --- etc/rc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'etc/rc') 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 . # 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 -- cgit v1.1