summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/defaults/rc.conf1
-rw-r--r--etc/rc7
2 files changed, 8 insertions, 0 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 9c809ea..e8847f9 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -365,6 +365,7 @@ ldconfig_paths_aout="/usr/lib/compat/aout /usr/X11R6/lib/aout /usr/local/lib/aou
# a.out shared library search paths
kern_securelevel_enable="NO" # kernel security level (see init(8)),
kern_securelevel="-1" # range: -1..3 ; `-1' is the most insecure
+lomac_enable="NO" # start lomac(4) security module at boot
update_motd="YES" # update version info in /etc/motd (or NO)
start_vinum="NO" # set to YES to start vinum
unaligned_print="YES" # print unaligned access warnings on the alpha (or NO).
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