diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-06-11 20:50:34 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-06-11 20:50:34 +0000 |
commit | 0dd20bca586bc67da66c47a162a069ff2f940bdc (patch) | |
tree | 942912c6591214f55f80939d85c79a2fee22c6f5 /sys/arch/octeon | |
parent | 850ae51b569e54e1911e13c167e4afcbda17b1ca (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/octeon')
-rw-r--r-- | sys/arch/octeon/conf/Makefile.octeon | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/octeon/conf/Makefile.octeon b/sys/arch/octeon/conf/Makefile.octeon index bb47dec5fe5..92d5b76da0e 100644 --- a/sys/arch/octeon/conf/Makefile.octeon +++ b/sys/arch/octeon/conf/Makefile.octeon @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.octeon,v 1.33 2017/06/05 15:23:11 visa Exp $ +# $OpenBSD: Makefile.octeon,v 1.34 2017/06/11 20:50:32 bluhm Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -167,7 +167,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 |