summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/conf
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2017-06-11 20:50:34 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2017-06-11 20:50:34 +0000
commit0dd20bca586bc67da66c47a162a069ff2f940bdc (patch)
tree942912c6591214f55f80939d85c79a2fee22c6f5 /sys/arch/macppc/conf
parent850ae51b569e54e1911e13c167e4afcbda17b1ca (diff)
Use umask 077 instead of cp -p when installing the kernel as root.
Otherwise owner of /bsd could be the build user with permissions inherited from the compile directory. OK deraadt@ tb@
Diffstat (limited to 'sys/arch/macppc/conf')
-rw-r--r--sys/arch/macppc/conf/Makefile.macppc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/conf/Makefile.macppc b/sys/arch/macppc/conf/Makefile.macppc
index 957f935fbce..ce5b16610d9 100644
--- a/sys/arch/macppc/conf/Makefile.macppc
+++ b/sys/arch/macppc/conf/Makefile.macppc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.macppc,v 1.80 2017/06/03 22:21:33 deraadt Exp $
+# $OpenBSD: Makefile.macppc,v 1.81 2017/06/11 20:50:32 bluhm Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -140,7 +140,7 @@ install: install-kernel-${MACHINE_NAME}
.if !target(install-kernel-${MACHINE_NAME}})
install-kernel-${MACHINE_NAME}:
cmp -s bsd /bsd || ln -f /bsd /obsd
- cp -p bsd /nbsd
+ umask 077; cp bsd /nbsd
mv /nbsd /bsd
.endif