summaryrefslogtreecommitdiff
path: root/sys/arch/landisk/conf/Makefile.landisk
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/landisk/conf/Makefile.landisk
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/landisk/conf/Makefile.landisk')
-rw-r--r--sys/arch/landisk/conf/Makefile.landisk4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/landisk/conf/Makefile.landisk b/sys/arch/landisk/conf/Makefile.landisk
index d189c7438f7..5207acdeef7 100644
--- a/sys/arch/landisk/conf/Makefile.landisk
+++ b/sys/arch/landisk/conf/Makefile.landisk
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.landisk,v 1.63 2017/06/08 05:35:23 deraadt Exp $
+# $OpenBSD: Makefile.landisk,v 1.64 2017/06/11 20:50:32 bluhm Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -153,7 +153,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