summaryrefslogtreecommitdiff
path: root/distrib/sgi/ramdisk
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2016-09-04 09:52:04 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2016-09-04 09:52:04 +0000
commit886104b9371e122d66858ab86a3bc4e6cc5206db (patch)
tree92181adf9afd6c133eff703c1b012ac31cdfd776 /distrib/sgi/ramdisk
parent39e44fa02d1b9b72516cf71ebd2f377c7bac55ad (diff)
Move files created by root during install/upgrade in a subdir of
/tmp with proper permissions so that unprivileged programs can not tamper with them. positive feedback from deraadt OK halex
Diffstat (limited to 'distrib/sgi/ramdisk')
-rw-r--r--distrib/sgi/ramdisk/install.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/sgi/ramdisk/install.md b/distrib/sgi/ramdisk/install.md
index 4fe10496d25..a476b6834a0 100644
--- a/distrib/sgi/ramdisk/install.md
+++ b/distrib/sgi/ramdisk/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.39 2016/01/01 00:47:51 rpe Exp $
+# $OpenBSD: install.md,v 1.40 2016/09/04 09:52:03 rpe Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@ md_installboot() {
md_prep_disklabel()
{
- local _disk=$1 _f=/tmp/fstab.$1
+ local _disk=$1 _f=/tmp/i/fstab.$1
echo "\nChecking SGI Volume Header:"
/usr/mdec/sgivol -q $_disk >/dev/null 2>/dev/null
@@ -119,7 +119,7 @@ boot loader will not be able to locate and load the kernel.
Do not change any parameters except the partition layout and the label name.
__EOT
- disklabel -c -F /tmp/fstab.$_disk -E $_disk
+ disklabel -c -F /tmp/i/fstab.$_disk -E $_disk
}
md_congrats() {