summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrpe <rpe@openbsd.org>2016-09-04 09:54:22 +0000
committerrpe <rpe@openbsd.org>2016-09-04 09:54:22 +0000
commit99042d62fb05f6caee33e9568dff2f09257bad16 (patch)
tree037995ea635676834c550733a314ec3cc66c953f
parentMove files created by root during install/upgrade in a subdir of (diff)
downloadwireguard-openbsd-99042d62fb05f6caee33e9568dff2f09257bad16.tar.xz
wireguard-openbsd-99042d62fb05f6caee33e9568dff2f09257bad16.zip
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
-rw-r--r--distrib/alpha/common/list4
-rw-r--r--distrib/amd64/common/list8
-rw-r--r--distrib/armv7/ramdisk/list8
-rw-r--r--distrib/hppa/ramdisk/list.local8
-rw-r--r--distrib/i386/common/list8
-rw-r--r--distrib/landisk/ramdisk/list8
-rw-r--r--distrib/loongson/ramdisk/list8
-rw-r--r--distrib/luna88k/ramdisk/list8
-rw-r--r--distrib/macppc/ramdisk/list8
-rw-r--r--distrib/octeon/ramdisk/list8
-rw-r--r--distrib/sgi/ramdisk/list8
-rw-r--r--distrib/socppc/ramdisk/list8
-rw-r--r--distrib/sparc64/bsd.rd/list8
-rw-r--r--distrib/sparc64/ramdisk/list8
-rw-r--r--distrib/sparc64/ramdiskB/list8
15 files changed, 58 insertions, 58 deletions
diff --git a/distrib/alpha/common/list b/distrib/alpha/common/list
index 1cfb9297b74..bae2c0ee664 100644
--- a/distrib/alpha/common/list
+++ b/distrib/alpha/common/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.47 2016/09/03 10:57:11 rpe Exp $
+# $OpenBSD: list,v 1.48 2016/09/04 09:54:22 rpe Exp $
SRCDIRS distrib/special
@@ -64,7 +64,7 @@ COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
# and the installation tools
SCRIPT ${CURDIR}/../../miniroot/dot.profile .profile
diff --git a/distrib/amd64/common/list b/distrib/amd64/common/list
index 70f9df56a0e..949ac9f8de3 100644
--- a/distrib/amd64/common/list
+++ b/distrib/amd64/common/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.41 2016/09/03 10:57:11 rpe Exp $
+# $OpenBSD: list,v 1.42 2016/09/04 09:54:22 rpe Exp $
SRCDIRS distrib/special
@@ -74,9 +74,9 @@ COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
+SYMLINK /tmp/i/fstab.shadow etc/fstab
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/hosts etc/hosts
# and the installation tools
SCRIPT ${CURDIR}/../../miniroot/dot.profile .profile
diff --git a/distrib/armv7/ramdisk/list b/distrib/armv7/ramdisk/list
index 2bf9c56ee0e..b74612bbd0c 100644
--- a/distrib/armv7/ramdisk/list
+++ b/distrib/armv7/ramdisk/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.21 2016/06/05 15:12:56 jsg Exp $
+# $OpenBSD: list,v 1.22 2016/09/04 09:54:22 rpe Exp $
SRCDIRS distrib/special
@@ -100,9 +100,9 @@ SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/openbsd-${REV}-base.pub etc/signify/openbsd-${REV}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
+SYMLINK /tmp/i/fstab.shadow etc/fstab
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/hosts etc/hosts
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
# and the installation tools
diff --git a/distrib/hppa/ramdisk/list.local b/distrib/hppa/ramdisk/list.local
index 88d4f6c8303..2e6b4f0fe13 100644
--- a/distrib/hppa/ramdisk/list.local
+++ b/distrib/hppa/ramdisk/list.local
@@ -1,4 +1,4 @@
-# $OpenBSD: list.local,v 1.3 2015/04/02 20:51:04 deraadt Exp $
+# $OpenBSD: list.local,v 1.4 2016/09/04 09:54:22 rpe Exp $
# hppa extra's
LINK instbin sbin/disklabel
@@ -11,9 +11,9 @@ SCRIPT ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
SPECIAL cd dev; sh MAKEDEV ramdisk
# various files that we need in /etc for the install
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
+SYMLINK /tmp/i/fstab.shadow etc/fstab
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/hosts etc/hosts
TERMCAP vt100,vt220,dumb,hp2392,hpansi,hpsub,hpex,hp700-wy,hp70092 usr/share/misc/termcap
# and the installation tools (no upgrade from to 3.3)
diff --git a/distrib/i386/common/list b/distrib/i386/common/list
index dc05e15f708..d33c9f9145d 100644
--- a/distrib/i386/common/list
+++ b/distrib/i386/common/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.44 2016/09/03 10:57:11 rpe Exp $
+# $OpenBSD: list,v 1.45 2016/09/04 09:54:22 rpe Exp $
SRCDIRS distrib/special
@@ -74,9 +74,9 @@ COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
+SYMLINK /tmp/i/fstab.shadow etc/fstab
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/hosts etc/hosts
# and the installation tools
SCRIPT ${CURDIR}/../../miniroot/dot.profile .profile
diff --git a/distrib/landisk/ramdisk/list b/distrib/landisk/ramdisk/list
index b0139bad0fd..31228f9e754 100644
--- a/distrib/landisk/ramdisk/list
+++ b/distrib/landisk/ramdisk/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.41 2016/09/03 10:57:11 rpe Exp $
+# $OpenBSD: list,v 1.42 2016/09/04 09:54:22 rpe Exp $
SRCDIRS distrib/special
@@ -100,9 +100,9 @@ SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/openbsd-${REV}-base.pub etc/signify/openbsd-${REV}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
+SYMLINK /tmp/i/fstab.shadow etc/fstab
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/hosts etc/hosts
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
# and the installation tools
diff --git a/distrib/loongson/ramdisk/list b/distrib/loongson/ramdisk/list
index 25659f8a477..5714c31a8af 100644
--- a/distrib/loongson/ramdisk/list
+++ b/distrib/loongson/ramdisk/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.26 2016/09/03 10:57:11 rpe Exp $
+# $OpenBSD: list,v 1.27 2016/09/04 09:54:22 rpe Exp $
SRCDIRS distrib/special
@@ -78,9 +78,9 @@ SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/openbsd-${REV}-base.pub etc/signify/openbsd-${REV}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
+SYMLINK /tmp/i/fstab.shadow etc/fstab
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/hosts etc/hosts
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
# firmware we might need
diff --git a/distrib/luna88k/ramdisk/list b/distrib/luna88k/ramdisk/list
index d01bcb4a9af..6d919a345d6 100644
--- a/distrib/luna88k/ramdisk/list
+++ b/distrib/luna88k/ramdisk/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.34 2016/09/03 10:57:11 rpe Exp $
+# $OpenBSD: list,v 1.35 2016/09/04 09:54:22 rpe Exp $
SRCDIRS distrib/special
@@ -68,9 +68,9 @@ SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/openbsd-${REV}-base.pub etc/signify/openbsd-${REV}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
+SYMLINK /tmp/i/fstab.shadow etc/fstab
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/hosts etc/hosts
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
# and the installation tools
diff --git a/distrib/macppc/ramdisk/list b/distrib/macppc/ramdisk/list
index a792053c8ad..88cb8fe1ca0 100644
--- a/distrib/macppc/ramdisk/list
+++ b/distrib/macppc/ramdisk/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.62 2016/09/03 10:57:12 rpe Exp $
+# $OpenBSD: list,v 1.63 2016/09/04 09:54:22 rpe Exp $
SRCDIRS distrib/special
@@ -77,9 +77,9 @@ SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/openbsd-${REV}-base.pub etc/signify/openbsd-${REV}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
+SYMLINK /tmp/i/fstab.shadow etc/fstab
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/hosts etc/hosts
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
# firmware we might need
diff --git a/distrib/octeon/ramdisk/list b/distrib/octeon/ramdisk/list
index 483694e7697..b2174c4600c 100644
--- a/distrib/octeon/ramdisk/list
+++ b/distrib/octeon/ramdisk/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.18 2016/09/03 10:57:12 rpe Exp $
+# $OpenBSD: list,v 1.19 2016/09/04 09:54:22 rpe Exp $
SRCDIRS distrib/special
@@ -72,9 +72,9 @@ SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/openbsd-${REV}-base.pub etc/signify/openbsd-${REV}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
+SYMLINK /tmp/i/fstab.shadow etc/fstab
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/hosts etc/hosts
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
# firmware we might need
diff --git a/distrib/sgi/ramdisk/list b/distrib/sgi/ramdisk/list
index f53c18a1010..a953ca5e551 100644
--- a/distrib/sgi/ramdisk/list
+++ b/distrib/sgi/ramdisk/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.50 2016/04/02 12:23:46 rpe Exp $
+# $OpenBSD: list,v 1.51 2016/09/04 09:54:22 rpe Exp $
SRCDIRS distrib/special
@@ -71,9 +71,9 @@ SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/openbsd-${REV}-base.pub etc/signify/openbsd-${REV}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
+SYMLINK /tmp/i/fstab.shadow etc/fstab
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/hosts etc/hosts
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
# firmware we might need
diff --git a/distrib/socppc/ramdisk/list b/distrib/socppc/ramdisk/list
index f676e4642fd..b223585a3df 100644
--- a/distrib/socppc/ramdisk/list
+++ b/distrib/socppc/ramdisk/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.32 2016/09/03 10:57:12 rpe Exp $
+# $OpenBSD: list,v 1.33 2016/09/04 09:54:22 rpe Exp $
SRCDIRS distrib/special
@@ -75,9 +75,9 @@ SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/openbsd-${REV}-base.pub etc/signify/openbsd-${REV}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
+SYMLINK /tmp/i/fstab.shadow etc/fstab
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/hosts etc/hosts
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
# firmware we might need
diff --git a/distrib/sparc64/bsd.rd/list b/distrib/sparc64/bsd.rd/list
index 24c87d9d292..cb3f3804c9c 100644
--- a/distrib/sparc64/bsd.rd/list
+++ b/distrib/sparc64/bsd.rd/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.58 2016/09/03 10:57:12 rpe Exp $
+# $OpenBSD: list,v 1.59 2016/09/04 09:54:22 rpe Exp $
SRCDIRS distrib/special
@@ -71,9 +71,9 @@ SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/openbsd-${REV}-base.pub etc/signify/openbsd-${REV}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
+SYMLINK /tmp/i/fstab.shadow etc/fstab
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/hosts etc/hosts
TERMCAP vt100,vt220,dumb,sun usr/share/misc/termcap
# and the installation scripts
diff --git a/distrib/sparc64/ramdisk/list b/distrib/sparc64/ramdisk/list
index 71c97b8198b..a8bb28783f5 100644
--- a/distrib/sparc64/ramdisk/list
+++ b/distrib/sparc64/ramdisk/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.54 2016/09/03 10:57:12 rpe Exp $
+# $OpenBSD: list,v 1.55 2016/09/04 09:54:22 rpe Exp $
SRCDIRS distrib/special
@@ -66,9 +66,9 @@ SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/openbsd-${REV}-base.pub etc/signify/openbsd-${REV}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
+SYMLINK /tmp/i/fstab.shadow etc/fstab
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/hosts etc/hosts
TERMCAP vt100,vt220,dumb,sun usr/share/misc/termcap
# and the installation tools
diff --git a/distrib/sparc64/ramdiskB/list b/distrib/sparc64/ramdiskB/list
index ba829ade2de..6ba1a45c592 100644
--- a/distrib/sparc64/ramdiskB/list
+++ b/distrib/sparc64/ramdiskB/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.47 2016/09/03 10:57:12 rpe Exp $
+# $OpenBSD: list,v 1.48 2016/09/04 09:54:22 rpe Exp $
SRCDIRS distrib/special
@@ -65,9 +65,9 @@ SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/openbsd-${REV}-base.pub etc/signify/openbsd-${REV}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
+SYMLINK /tmp/i/fstab.shadow etc/fstab
+SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
+SYMLINK /tmp/i/hosts etc/hosts
TERMCAP vt100,vt220,dumb,sun usr/share/misc/termcap
# and the installation tools