Use umask 077 instead of cp -p when installing the kernel as root.
authorbluhm <bluhm@openbsd.org>
Sun, 11 Jun 2017 20:50:32 +0000 (20:50 +0000)
committerbluhm <bluhm@openbsd.org>
Sun, 11 Jun 2017 20:50:32 +0000 (20:50 +0000)
commit9262a9bd75f613f49b1aae2bba7ce3c81818e34f
tree5f32c1961189e36289a41c2d483c146509037efb
parent07ec32d0bdf4fe12236b1624822d235ae0a7e08a
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@
14 files changed:
sys/arch/alpha/conf/Makefile.alpha
sys/arch/amd64/conf/Makefile.amd64
sys/arch/arm64/conf/Makefile.arm64
sys/arch/armv7/conf/Makefile.armv7
sys/arch/hppa/conf/Makefile.hppa
sys/arch/i386/conf/Makefile.i386
sys/arch/landisk/conf/Makefile.landisk
sys/arch/loongson/conf/Makefile.loongson
sys/arch/luna88k/conf/Makefile.luna88k
sys/arch/macppc/conf/Makefile.macppc
sys/arch/octeon/conf/Makefile.octeon
sys/arch/sgi/conf/Makefile.sgi
sys/arch/socppc/conf/Makefile.socppc
sys/arch/sparc64/conf/Makefile.sparc64