summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2018-02-06 08:42:33 +0000
committertb <tb@openbsd.org>2018-02-06 08:42:33 +0000
commit5253372b256ca8b6fb736e62fd4972386fe335e8 (patch)
tree28bb6d3f9eb6fc8145caf11e83f82e628eb567e8 /sys
parentReplace "trojan horse" with the correct term (MITM). From maikel at (diff)
downloadwireguard-openbsd-5253372b256ca8b6fb736e62fd4972386fe335e8.tar.xz
wireguard-openbsd-5253372b256ca8b6fb736e62fd4972386fe335e8.zip
Run newvers.sh with umask 007 to work around permission issues that
cause 'make release' fail the first time around after building GENERIC if /usr/obj/ wasn't cleaned out properly. The proper fix would be to implement privdrop for kernel builds but this is trickier than it looks at first sight. discussed with deraadt
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/newvers.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index f6815812d5f..e8e62d40bca 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: newvers.sh,v 1.157 2017/10/04 17:59:41 benno Exp $
+# $OpenBSD: newvers.sh,v 1.158 2018/02/06 08:42:33 tb Exp $
# $NetBSD: newvers.sh,v 1.17.2.1 1995/10/12 05:17:11 jtc Exp $
#
# Copyright (c) 1984, 1986, 1990, 1993
@@ -32,6 +32,8 @@
#
# @(#)newvers.sh 8.1 (Berkeley) 4/20/94
+umask 007
+
if [ ! -r version -o ! -s version ]
then
echo 0 > version