summaryrefslogtreecommitdiff
path: root/sys/arch/socppc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-06-03 22:21:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-06-03 22:21:35 +0000
commit43ef05b35ce29576781a5c789f1af7a03b003e6c (patch)
treefd7c7666a5e796115375419eb491b1ec33ed0547 /sys/arch/socppc
parent0833bfa9d98cf32dd569b8bb85a19acfb2d29e12 (diff)
Create gap.S and gap.o with umask 077. Create lorder and bsd* with umask 007.
Prying eyes cannot look at the kernels in the compile directory. ok tb rpe, kernel developers seem unimpacted
Diffstat (limited to 'sys/arch/socppc')
-rw-r--r--sys/arch/socppc/conf/Makefile.socppc9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/socppc/conf/Makefile.socppc b/sys/arch/socppc/conf/Makefile.socppc
index 9760181b023..23b886ed680 100644
--- a/sys/arch/socppc/conf/Makefile.socppc
+++ b/sys/arch/socppc/conf/Makefile.socppc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.socppc,v 1.50 2016/11/29 09:08:34 mpi Exp $
+# $OpenBSD: Makefile.socppc,v 1.51 2017/06/03 22:21:34 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -72,12 +72,13 @@ SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS}
SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
SYSTEM_LD_HEAD= @rm -f $@
SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ umask 007; \
${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
-SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
+SYSTEM_LD_TAIL= @${SIZE} $@
.if ${DEBUG} == "-g"
STRIPFLAGS= -S
-SYSTEM_LD_TAIL+=; \
+SYSTEM_LD_TAIL+=; umask 007; \
echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \
echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
@@ -139,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 bsd /nbsd
+ cp -p bsd /nbsd
mv /nbsd /bsd
.endif