From 0dd20bca586bc67da66c47a162a069ff2f940bdc Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Sun, 11 Jun 2017 20:50:34 +0000 Subject: 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@ --- sys/arch/macppc/conf/Makefile.macppc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/macppc/conf') 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 -- cgit v1.2.3