diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2016-09-04 09:52:04 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2016-09-04 09:52:04 +0000 |
commit | 886104b9371e122d66858ab86a3bc4e6cc5206db (patch) | |
tree | 92181adf9afd6c133eff703c1b012ac31cdfd776 /distrib | |
parent | 39e44fa02d1b9b72516cf71ebd2f377c7bac55ad (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')
-rw-r--r-- | distrib/alpha/common/install.md | 4 | ||||
-rw-r--r-- | distrib/amd64/common/install.md | 4 | ||||
-rw-r--r-- | distrib/armv7/ramdisk/install.md | 4 | ||||
-rw-r--r-- | distrib/hppa/install.md | 4 | ||||
-rw-r--r-- | distrib/i386/common/install.md | 4 | ||||
-rw-r--r-- | distrib/landisk/ramdisk/install.md | 4 | ||||
-rw-r--r-- | distrib/loongson/ramdisk/install.md | 4 | ||||
-rw-r--r-- | distrib/luna88k/ramdisk/install.md | 4 | ||||
-rw-r--r-- | distrib/macppc/ramdisk/install.md | 4 | ||||
-rw-r--r-- | distrib/octeon/ramdisk/install.md | 4 | ||||
-rw-r--r-- | distrib/sgi/ramdisk/install.md | 6 | ||||
-rw-r--r-- | distrib/socppc/ramdisk/install.md | 4 | ||||
-rw-r--r-- | distrib/sparc64/common/install.md | 4 |
13 files changed, 27 insertions, 27 deletions
diff --git a/distrib/alpha/common/install.md b/distrib/alpha/common/install.md index f751ca84400..9b3c7fe19af 100644 --- a/distrib/alpha/common/install.md +++ b/distrib/alpha/common/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.42 2016/02/08 17:28:08 krw Exp $ +# $OpenBSD: install.md,v 1.43 2016/09/04 09:52:03 rpe Exp $ # # Copyright (c) 1996 The NetBSD Foundation, Inc. # All rights reserved. @@ -43,7 +43,7 @@ md_installboot() { } md_prep_disklabel() { - local _disk=$1 _f=/tmp/fstab.$1 + local _disk=$1 _f=/tmp/i/fstab.$1 disklabel_autolayout $_disk $_f || return [[ -s $_f ]] && return diff --git a/distrib/amd64/common/install.md b/distrib/amd64/common/install.md index 5a1d626a302..e4b91f291e4 100644 --- a/distrib/amd64/common/install.md +++ b/distrib/amd64/common/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.52 2016/09/02 12:22:09 pirofti Exp $ +# $OpenBSD: install.md,v 1.53 2016/09/04 09:52:03 rpe Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -140,7 +140,7 @@ __EOT } md_prep_disklabel() { - local _disk=$1 _f=/tmp/fstab.$1 + local _disk=$1 _f=/tmp/i/fstab.$1 md_prep_fdisk $_disk diff --git a/distrib/armv7/ramdisk/install.md b/distrib/armv7/ramdisk/install.md index 1b9e390d9ae..094e4199659 100644 --- a/distrib/armv7/ramdisk/install.md +++ b/distrib/armv7/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.40 2016/06/05 15:35:38 jsg Exp $ +# $OpenBSD: install.md,v 1.41 2016/09/04 09:52:03 rpe Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -146,7 +146,7 @@ __EOT } md_prep_disklabel() { - local _disk=$1 _f=/tmp/fstab.$1 + local _disk=$1 _f=/tmp/i/fstab.$1 md_prep_fdisk $_disk diff --git a/distrib/hppa/install.md b/distrib/hppa/install.md index 5bc8ff8a2df..2472606ec4a 100644 --- a/distrib/hppa/install.md +++ b/distrib/hppa/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.31 2016/02/08 17:28:08 krw Exp $ +# $OpenBSD: install.md,v 1.32 2016/09/04 09:52:03 rpe Exp $ # # machine dependent section of installation/upgrade script. # @@ -17,7 +17,7 @@ md_installboot() { } md_prep_disklabel() { - local _disk=$1 _f=/tmp/fstab.$1 + local _disk=$1 _f=/tmp/i/fstab.$1 installboot $_disk diff --git a/distrib/i386/common/install.md b/distrib/i386/common/install.md index dd9e9066d17..6aff699a155 100644 --- a/distrib/i386/common/install.md +++ b/distrib/i386/common/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.70 2016/02/08 17:28:08 krw Exp $ +# $OpenBSD: install.md,v 1.71 2016/09/04 09:52:03 rpe Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -89,7 +89,7 @@ __EOT } md_prep_disklabel() { - local _disk=$1 _f=/tmp/fstab.$1 + local _disk=$1 _f=/tmp/i/fstab.$1 md_prep_fdisk $_disk diff --git a/distrib/landisk/ramdisk/install.md b/distrib/landisk/ramdisk/install.md index 61f212ba1d7..8754177381d 100644 --- a/distrib/landisk/ramdisk/install.md +++ b/distrib/landisk/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.41 2016/02/08 17:28:09 krw Exp $ +# $OpenBSD: install.md,v 1.42 2016/09/04 09:52:03 rpe Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -83,7 +83,7 @@ __EOT } md_prep_disklabel() { - local _disk=$1 _f=/tmp/fstab.$1 + local _disk=$1 _f=/tmp/i/fstab.$1 md_prep_fdisk $_disk diff --git a/distrib/loongson/ramdisk/install.md b/distrib/loongson/ramdisk/install.md index 3337b2561d9..eac3eb33597 100644 --- a/distrib/loongson/ramdisk/install.md +++ b/distrib/loongson/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.25 2016/02/08 17:28:09 krw Exp $ +# $OpenBSD: install.md,v 1.26 2016/09/04 09:52:03 rpe Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -136,7 +136,7 @@ __EOT } md_prep_disklabel() { - local _disk=$1 _f=/tmp/fstab.$1 + local _disk=$1 _f=/tmp/i/fstab.$1 md_prep_fdisk $_disk diff --git a/distrib/luna88k/ramdisk/install.md b/distrib/luna88k/ramdisk/install.md index 72d397a5921..1ad9c96546e 100644 --- a/distrib/luna88k/ramdisk/install.md +++ b/distrib/luna88k/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.22 2016/02/08 17:28:09 krw Exp $ +# $OpenBSD: install.md,v 1.23 2016/09/04 09:52:03 rpe Exp $ # Copyright (c) 1996 The NetBSD Foundation, Inc. # All rights reserved. # @@ -42,7 +42,7 @@ md_installboot() { } md_prep_disklabel() { - local _disk=$1 _f=/tmp/fstab.$1 + local _disk=$1 _f=/tmp/i/fstab.$1 disklabel_autolayout $_disk $_f || return [[ -s $_f ]] && return diff --git a/distrib/macppc/ramdisk/install.md b/distrib/macppc/ramdisk/install.md index e0bf1c17daf..315ce68ffde 100644 --- a/distrib/macppc/ramdisk/install.md +++ b/distrib/macppc/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.68 2016/02/23 02:34:09 krw Exp $ +# $OpenBSD: install.md,v 1.69 2016/09/04 09:52:03 rpe Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -142,7 +142,7 @@ md_prep_HFS() { } md_prep_disklabel() { - local _disk=$1 _f=/tmp/fstab.$1 + local _disk=$1 _f=/tmp/i/fstab.$1 PARTTABLE= while [[ -z $PARTTABLE ]]; do diff --git a/distrib/octeon/ramdisk/install.md b/distrib/octeon/ramdisk/install.md index 11d3f4d3417..ea7acd9d964 100644 --- a/distrib/octeon/ramdisk/install.md +++ b/distrib/octeon/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.15 2016/02/08 17:28:09 krw Exp $ +# $OpenBSD: install.md,v 1.16 2016/09/04 09:52:03 rpe Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -111,7 +111,7 @@ __EOT } md_prep_disklabel() { - local _disk=$1 _f=/tmp/fstab.$1 + local _disk=$1 _f=/tmp/i/fstab.$1 md_prep_fdisk $_disk 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() { diff --git a/distrib/socppc/ramdisk/install.md b/distrib/socppc/ramdisk/install.md index 36764d7207f..daa62c9a0a0 100644 --- a/distrib/socppc/ramdisk/install.md +++ b/distrib/socppc/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.28 2016/02/08 17:28:09 krw Exp $ +# $OpenBSD: install.md,v 1.29 2016/09/04 09:52:03 rpe Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -86,7 +86,7 @@ __EOT } md_prep_disklabel() { - local _disk=$1 _f=/tmp/fstab.$1 + local _disk=$1 _f=/tmp/i/fstab.$1 md_prep_fdisk $_disk diff --git a/distrib/sparc64/common/install.md b/distrib/sparc64/common/install.md index cf701bd095f..ad28fdf5267 100644 --- a/distrib/sparc64/common/install.md +++ b/distrib/sparc64/common/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.46 2016/02/08 17:28:09 krw Exp $ +# $OpenBSD: install.md,v 1.47 2016/09/04 09:52:03 rpe Exp $ # $NetBSD: install.md,v 1.3.2.5 1996/08/26 15:45:28 gwr Exp $ # # @@ -49,7 +49,7 @@ md_installboot() { } md_prep_disklabel() { - local _disk=$1 _f=/tmp/fstab.$1 + local _disk=$1 _f=/tmp/i/fstab.$1 disklabel_autolayout $_disk $_f || return [[ -s $_f ]] && return |