aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2002-03-12 21:47:31 +0000
committerRobert Watson <rwatson@FreeBSD.org>2002-03-12 21:47:31 +0000
commitcd2cc2c1a83a428c441e88422a212e09f55154f9 (patch)
treeeb1f3c65456e9b3b34dc1df5bd22089d9403c967 /etc
parent2e1fc052bcf5cd44f0ca4cd9e1b95930e294bb36 (diff)
downloadsrc-cd2cc2c1a83a428c441e88422a212e09f55154f9.tar.gz
src-cd2cc2c1a83a428c441e88422a212e09f55154f9.zip
Notes
Diffstat (limited to 'etc')
-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 9c809ea1ab15..e8847f9494ec 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 c5e51c7475b8..f02cbaaa1c6f 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