summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-06-03 22:33:37 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-06-03 22:33:37 +0000
commit5d0d1d5f4c25430c0e177011be0c12615fae6e07 (patch)
tree9c7260fd2626833a65832f6269a3fb4c5e1fbf43 /etc
parentf3a20b98286b6ad0c43eb5ba0e826aeabbbf3a1c (diff)
Immediately after mounting / read-write, chmod og-rwx the kernel. Remote
prying eyes were already been hindered at determining kernel addresses, now local prying eyes are also hindered. ok tb rpe
Diffstat (limited to 'etc')
-rw-r--r--etc/rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index e2ade104ec1..cc8a200b1bc 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.498 2017/05/30 12:04:26 tb Exp $
+# $OpenBSD: rc,v 1.499 2017/06/03 22:33:36 deraadt Exp $
# System startup script run by init on autoboot or after single-user.
# Output and error are redirected to console by init, and the console is the
@@ -342,6 +342,7 @@ mount -a -t nonfs,vnd
# Re-mount the root filesystem read/writeable. (root on nfs requires this,
# others aren't hurt.)
mount -uw /
+chmod og-rwx /bsd
rm -f /fastboot