diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-06-03 22:21:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-06-03 22:21:35 +0000 |
commit | 43ef05b35ce29576781a5c789f1af7a03b003e6c (patch) | |
tree | fd7c7666a5e796115375419eb491b1ec33ed0547 /sys/arch/alpha/conf | |
parent | 0833bfa9d98cf32dd569b8bb85a19acfb2d29e12 (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/alpha/conf')
-rw-r--r-- | sys/arch/alpha/conf/Makefile.alpha | 7 |
1 files changed, 4 insertions, 3 deletions
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 |