From 43ef05b35ce29576781a5c789f1af7a03b003e6c Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 3 Jun 2017 22:21:35 +0000 Subject: 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 --- sys/arch/alpha/conf/Makefile.alpha | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/arch/alpha/conf') diff --git a/sys/arch/alpha/conf/Makefile.alpha b/sys/arch/alpha/conf/Makefile.alpha index c12d317f149..847f52326aa 100644 --- a/sys/arch/alpha/conf/Makefile.alpha +++ b/sys/arch/alpha/conf/Makefile.alpha @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.alpha,v 1.95 2016/11/29 09:08:34 mpi Exp $ +# $OpenBSD: Makefile.alpha,v 1.96 2017/06/03 22:21:33 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -73,12 +73,13 @@ SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} SYSTEM_DEP= Makefile ${SYSTEM_OBJ} ${LDSCRIPT} 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 -- cgit v1.2.3