diff options
author | jraynard <jraynard@FreeBSD.org> | 1998-09-09 22:27:21 +0000 |
---|---|---|
committer | jraynard <jraynard@FreeBSD.org> | 1998-09-09 22:27:21 +0000 |
commit | 03b3b209796d4d7734505d24813a7a00aa42f02d (patch) | |
tree | 1eb5965588b3bac37e5e99a5d751638eae62f0ef /etc/rc | |
parent | 3164b70eb9b8ba5b0e234af2427e71baf6f83d7e (diff) | |
download | FreeBSD-src-03b3b209796d4d7734505d24813a7a00aa42f02d.zip FreeBSD-src-03b3b209796d4d7734505d24813a7a00aa42f02d.tar.gz |
Disable kernel_secure_level unless explicitly set in rc.conf. Previously,
it was enabled unless explicitly unset, creating a pitfall for people
like me who upgraded /etc/rc without upgrading /etc/rc.conf.
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.152 1998/09/05 04:27:35 jdp Exp $ +# $Id: rc,v 1.153 1998/09/07 17:18:36 cracauer Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -343,7 +343,7 @@ fi # Raise kernel security level. This should be done only after `fsck' has # repaired local file systems if you want the securelevel to be greater than 1. -if [ "X${kern_securelevel_enable}" != X"NO" -a "${kern_securelevel}" -ge 0 ]; +if [ "X${kern_securelevel_enable}" = X"YES" -a "${kern_securelevel}" -ge 0 ]; then echo 'Raising kernel security level' sysctl -w kern.securelevel=${kern_securelevel} |