CVS: cvs.openbsd.org: src

2018-11-12 Thread Ricardo Mestre
CVSROOT:/cvs
Module name:src
Changes by: mes...@cvs.openbsd.org  2018/11/13 00:29:07

Modified files:
usr.sbin/snmpd : snmpe.c 

Log message:
Remove #if'ed 0 code around a broken pledge. Due to some ioctls and sysctls
pledge cannot be used, nevertheless since we now have unveil available we can
use it to guarantee that in this particular case the snmpe process cannot
access the filesystem at all, therefore close a big attack vector and achieve
a great level of protection even without being able to use pledge.

prodded by deraadt@



CVS: cvs.openbsd.org: src

2018-11-12 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/11/13 00:22:45

Modified files:
usr.bin/ssh: sftp.1 

Log message:
fix markup error (missing blank before delimiter);
from Mike Frysinger 



CVS: cvs.openbsd.org: src

2018-11-12 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/11/12 23:24:36

Modified files:
distrib/sgi/iso: Makefile 
etc/etc.sgi: disktab 

Log message:
Grow sgi iso to make room for clang.

Cluebat and OK deraadt@



CVS: cvs.openbsd.org: src

2018-11-12 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2018/11/12 21:47:36

Modified files:
gnu/usr.bin/binutils-2.17/binutils: readelf.c 
sys/sys: exec_elf.h 

Log message:
Add GNU_HASH #defines; improve readelf output for SHT_GNU_HASH

ok naddy@ jca@



CVS: cvs.openbsd.org: src

2018-11-12 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/11/12 18:32:33

Modified files:
regress/lib/libssl/key_schedule: key_schedule.c 

Log message:
Just err if we can't create secrets



CVS: cvs.openbsd.org: src

2018-11-12 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/11/12 18:25:13

Modified files:
lib/libssl : tls13_key_schedule.c 

Log message:
NULL out mdctx to prevent possible double free introduced in version 1.4
Spotted by maestre@, ok tb@



CVS: cvs.openbsd.org: src

2018-11-12 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/11/12 18:19:48

Modified files:
lib/libssl : ssl_sigalgs.c 

Log message:
Fix pkey_ok to be less strange, and add cuve checks required for the EC ones
ok tb@



CVS: cvs.openbsd.org: src

2018-11-12 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/11/12 18:16:31

Modified files:
sys/net: if_gif.c 

Log message:
get the inner and outer tos values right for passing to ip_ecn_ingress



CVS: cvs.openbsd.org: src

2018-11-12 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/11/12 17:03:18

Modified files:
sys/net: if_gre.c 

Log message:
add txprio support to gre, mgre, egre, nvgre, and eoip

for l3 interfaces (gre and mgre), allow txprio from the payload,
the mbuf, or a hardcoded value. for l2 interfaces (egre, ngre, and
eoip), get txprio from the mbuf or a hardcoded value.

ok claudio@



CVS: cvs.openbsd.org: src

2018-11-12 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/11/12 17:00:43

Modified files:
sys/net: if_gif.c 

Log message:
add txprio setting support

gif encaps l3, so it can get a prio from the payload, as well as
from the mbuf itself, or a hardcoded value.

ok claudio@



CVS: cvs.openbsd.org: src

2018-11-12 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/11/12 16:57:06

Modified files:
sys/net: if_etherip.c 

Log message:
add txprio support

etherip puts the prio in the encapsulating ip header, and supports
using hardcoded prio values or the prio from the mbuf. it encapsulates
ethernet, which doesnt have a prio field unelss you parse the ether
payload, which is not worth it.

ok claudio@



CVS: cvs.openbsd.org: src

2018-11-12 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/11/12 16:41:22

Modified files:
sys/net: if.c 

Log message:
only let root configure the txprio setting on an interface

ok claudio@



CVS: cvs.openbsd.org: src

2018-11-12 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/11/12 16:40:37

Modified files:
sbin/ifconfig  : ifconfig.c 

Log message:
add support for txprio settings on interfaces

display of the currently configured txprio setting is added to the
encap line, since it's configuring something that affects the
population of an encapsulation header.

it also adds a txprio argument to ifconfig so the setting can be
changed to "payload", "packet", or a number between 0 and 7.

ok claudio@



CVS: cvs.openbsd.org: src

2018-11-12 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/11/12 16:34:48

Modified files:
sys/net: if.h 

Log message:
add ifreq bits for the tx header prio field ioctls

a tx header prio can set to a fixed value from 0 to 7, or magic
values to represent populating the prio field from the encapsulated
packet, or from the mbuf prio value.

ok claudio@



CVS: cvs.openbsd.org: src

2018-11-12 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/11/12 16:32:42

Modified files:
sys/sys: sockio.h 

Log message:
add ioctl commands for the setting of prio fields in tx headers

this will be used by encap interfaces where their headers have
fields to store a priority, eg, the dot1p bit of vlan/svlan headers,
or the ip tos or tclass field int the outer ip header in gre, gif,
etherip, and vxlan.

ok claudio@



CVS: cvs.openbsd.org: src

2018-11-12 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/11/12 11:27:31

Modified files:
share/man/man9 : sigio_init.9 

Log message:
tweak previous;



CVS: cvs.openbsd.org: src

2018-11-12 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2018/11/12 10:39:17

Modified files:
lib/libcrypto/dh: dh_key.c 

Log message:
Missing initialization for pub_key. CID 184303.

ok bcook



CVS: cvs.openbsd.org: src

2018-11-12 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/11/12 09:50:28

Modified files:
regress/sys/kern: Makefile 
Added files:
regress/sys/kern/sigio: Makefile common.h main.c sigio_common.c 
sigio_pipe.c util.c 

Log message:
Add initial regress tests for sigio.



CVS: cvs.openbsd.org: src

2018-11-12 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/11/12 09:46:02

Modified files:
sbin/dhclient  : dhclient.c 

Log message:
Restart when SSID change is noted in RTM_80211INFO. Thus ensuring
correct lease is discovered/renewed and lease file is properly
updated.

Improves co-existance with new 'join' feature. Issues first noted and
many tests by anton@.

Many suggestions and tweaks from claudio@, stsp@, anton@.

ok claudio@ stsp@ anton@ phessler@



CVS: cvs.openbsd.org: src

2018-11-12 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/11/12 09:39:12

Modified files:
sbin/route : route.c 

Log message:
Recognize and display new RTM_80211INFO messages.

Original diff from phessler@. Many suggestions and tweaks from
claudio@, stsp@, anton@.

ok claudio@ stsp@ anton@ phessler@



CVS: cvs.openbsd.org: src

2018-11-12 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/11/12 09:36:54

Modified files:
sys/net: if.h route.h rtsock.c 
sys/net80211   : ieee80211_proto.c 

Log message:
Add new routing socket message RTM_80211INFO to provide details of
802.11 interface state changes (e.g. SSID) to interested parties.

Original diff from phessler@. Many suggestions and tweaks from
claudio@, stsp@, anton@.

ok claudio@ stsp@ anton@ phessler@



CVS: cvs.openbsd.org: src

2018-11-12 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/11/12 09:34:10

src/regress/sys/kern/sigio

Update of /cvs/src/regress/sys/kern/sigio
In directory cvs.openbsd.org:/tmp/cvs-serv54282/sigio

Log Message:
Directory /cvs/src/regress/sys/kern/sigio added to the repository



CVS: cvs.openbsd.org: src

2018-11-12 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/11/12 09:33:08

Modified files:
sys/kern   : sys_pipe.c 
sys/sys: pipe.h 

Log message:
Utilize sigio with pipes. This makes fcntl(fd, F_SETOWN, arg) correctly
handle arg as a process ID if the value is positive and as a process
group ID if the value is negative. In addition, now the signal sending
checks privileges.

OK mpi@



CVS: cvs.openbsd.org: src

2018-11-12 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/11/12 09:15:06

Modified files:
share/man/man9 : sigio_init.9 

Log message:
Document return values.



CVS: cvs.openbsd.org: src

2018-11-12 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2018/11/12 08:55:59

Modified files:
regress/lib/libcrypto/sm3: sm3test.c 

Log message:
Rework the sm3 regress based on a suggestion by jsing. Zap the weird
hex_encode() function and use byte arrays instead of strings to store
the expected values. Snatch and tweak hexdump() from beck's key_schedule
test to pretty-print data in case of failure.



CVS: cvs.openbsd.org: src

2018-11-12 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/11/12 08:23:07

Modified files:
distrib/sets/lists/comp: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2018-11-12 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/11/12 08:15:31

Modified files:
share/man/man9 : psignal.9 

Log message:
Document pgsigio(9).



CVS: cvs.openbsd.org: src

2018-11-12 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/11/12 08:13:12

Modified files:
share/man/man9 : Makefile 
Added files:
share/man/man9 : sigio_init.9 

Log message:
Document sigio routines.



CVS: cvs.openbsd.org: src

2018-11-12 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/11/12 08:09:17

Modified files:
sys/kern   : kern_exit.c kern_fork.c kern_proc.c kern_sig.c 
sys/sys: malloc.h proc.h signalvar.h 
Added files:
sys/sys: sigio.h 

Log message:
Add a mechanism for managing asynchronous IO signal registrations.
It centralizes IO signal privilege checking and makes possible to revoke
a registration when the target process or process group is deleted.

Adapted from FreeBSD.

OK kettenis@ mpi@ guenther@



CVS: cvs.openbsd.org: src

2018-11-12 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2018/11/12 07:18:10

Modified files:
usr.bin/tmux   : mode-tree.c screen-write.c 

Log message:
Allow style #[] in mode formats.



CVS: cvs.openbsd.org: src

2018-11-12 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2018/11/12 05:31:49

Modified files:
usr.sbin/smtpd : resolver.c 

Log message:
simplify code for resolver_getnaimeinfo()

ok gilles@



CVS: cvs.openbsd.org: www

2018-11-12 Thread Stefan Sperling
CVSROOT:/cvs
Module name:www
Changes by: s...@cvs.openbsd.org2018/11/12 03:59:23

Modified files:
build  : support.dat 

Log message:
+turvamies.fi



CVS: cvs.openbsd.org: src

2018-11-12 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2018/11/12 02:48:48

Modified files:
regress/usr.bin/join: Makefile 
Added files:
regress/usr.bin/join: t9-c.out t9-utf8.out 
Removed files:
regress/usr.bin/join: t9.out 

Log message:
- Fix UTF-8 regression test when running with LC_{CTYPE,ALL}=C by setting
LC_ALL to UTF-8.
- Add explicit regression test for when locale C

Found the hard way by tb@.
input and OK on earlier version bluhm@



CVS: cvs.openbsd.org: src

2018-11-12 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/11/12 02:39:52

Modified files:
sys/net: if_etherip.c if_gre.c 

Log message:
set the hardmtu on ether encap ifs so the mtu can be raised above 1500