EVP_CipherFinal_ex for snmpd

2016-10-01 Thread David Gwynne
this gets rid of a linker warning. the impression i get is that EVP_CipherFinal_ex explicitely does not do cleanup of the cipher context thing, while EVP_CipherFinal could if it wanted to. ok? Index: usm.c === RCS file:

Re: ehci(4)/imxehci(4) diff to switch port into host mode

2016-10-01 Thread Jonathan Gray
On Sat, Oct 01, 2016 at 03:48:35PM +0200, Mark Kettenis wrote: > The USB controller on the Freescale i.MX application processors has a > dual role port that can act as device (OTG) or as host. Since we > don't have any device mode support in our kernel, we try to switch the > port into host mode.

Re: Explicitly cast the return variable in tls_load_file()

2016-10-01 Thread Ted Unangst
Kinichiro Inoguchi wrote: > I would like to cast the return variable explicitly in tls_load_file(). > This fix also avoiding Intel C++ compiler "assertion failed" described here. > https://github.com/libressl-portable/portable/issues/209#issuecomment-249587024 This is a compiler bug? The code

share/misc: Complete 'airport' and 'inter.phone' for Poland

2016-10-01 Thread Frederic Cambus
Hi tech@, This diff adds missing airports and area codes for Poland, and fixes some erroneous entries. OK? Index: share/misc/airport === RCS file: /cvs/src/share/misc/airport,v retrieving revision 1.56 diff -u -p -r1.56 airport ---

Re: Unexpected behavior in su/doas

2016-10-01 Thread Theo de Raadt
> I stumbled upon unexpected behavior on OpenBSD 6.0 (all patches) > which seems to allow running commands as the original user when > using su and doas interactively because the controlling terminal > is the same. Use of su, doas, or sudo -- means you EXPLICITLY want the tty to remain the same.

Unexpected behavior in su/doas

2016-10-01 Thread Simon Ruderich
Hello, I stumbled upon unexpected behavior on OpenBSD 6.0 (all patches) which seems to allow running commands as the original user when using su and doas interactively because the controlling terminal is the same. The following binary is used to test this and compiled as /tmp/a.out:

Re: syslogd fork+exec

2016-10-01 Thread Rafael Zalamena
On Thu, Sep 29, 2016 at 08:09:23PM +0200, Alexander Bluhm wrote: > Hi, > > With this diff syslogd(8) does an exec on itself in the privileged > parent process to reshuffle its memory layout. > > As syslogd only forks once, it does not really matter wether we > fork+exec in the child or in the

ntpd(8): use stack instead of heap

2016-10-01 Thread Rafael Zalamena
The ntpd(8) constraint fork+exec diff changed the way the constraint processes are created, but then it introduced new calloc()s to avoid increasing diff size and to focus on the problem. Now that the fork+exec is in, this diff make those variables to become a part of the stack. No functional

stricter sys_mount() flag handling

2016-10-01 Thread Martin Natano
After committing the new MNT_NOPERM flag I got some complaints that my code doesn't work by people that recompiled mount_ffs, but didn't reboot to the new kernel. I don't blame them; in that situation sys_mount() silently ignores the unknown flag. IMHO we should check the flags more strictly. Ok?

ehci(4)/imxehci(4) diff to switch port into host mode

2016-10-01 Thread Mark Kettenis
The USB controller on the Freescale i.MX application processors has a dual role port that can act as device (OTG) or as host. Since we don't have any device mode support in our kernel, we try to switch the port into host mode. Unfortunately that never worked. Here's why: The USBMODE register

Explicitly cast the return variable in tls_load_file()

2016-10-01 Thread Kinichiro Inoguchi
I would like to cast the return variable explicitly in tls_load_file(). This fix also avoiding Intel C++ compiler "assertion failed" described here. https://github.com/libressl-portable/portable/issues/209#issuecomment-249587024 ok ? Index: tls_util.c