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/amd64/conf | |
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/amd64/conf')
-rw-r--r-- | sys/arch/amd64/conf/Makefile.amd64 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/conf/Makefile.amd64 b/sys/arch/amd64/conf/Makefile.amd64 index a6e1345f87f..a2fbe3f46a1 100644 --- a/sys/arch/amd64/conf/Makefile.amd64 +++ b/sys/arch/amd64/conf/Makefile.amd64 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.amd64,v 1.81 2017/06/05 15:58:14 deraadt Exp $ +# $OpenBSD: Makefile.amd64,v 1.82 2017/06/11 20:50:32 bluhm Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -159,7 +159,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 |