Re: relaxing sysctl_proc_vmmap checks for debugging

2016-06-28 Thread Gabriel Kihlman
"Ted Unangst" writes: > > Thanks for reminding me to revisit this. I think the following diff is > sufficient. Still works fine for me, thanks. /gabriel > > > Index: kern_sysctl.c > === > RCS file: /cvs/src/sys/kern/kern_sysctl.

audio: unused ioctls and macros

2016-06-28 Thread Alexandre Ratchov
This diff removes unused ioctls. Certain macros associated to these ioctls (like AUDIO_PROP_xxx and AUDIO_ENCODING_xxx) are still used by the kernel, in by low-level drivers, so we move them from sys/audioio.h to dev/audio_if.h instead of deleting them. This shouldn't affect ports as we don't use

libc: simplify devname() fallback

2016-06-28 Thread Philip Guenther
Inspired by espie@'s ttyname.c diff, here's a simplification of libc's fallback-to-scanning-/dev code for devname(). Since devname() returns the "name under /dev", this eliminates the string manipulation == win! Works when tested with "stat -Lf %Sr" on a symlink to a device with /var/run/dev.db c

Re: relaxing sysctl_proc_vmmap checks for debugging

2016-06-28 Thread Ted Unangst
Gabriel Kihlman wrote: > -#if 1 > - /* XXX Allow only root for now */ > - if ((error = suser(cp, 0)) != 0) > + /* Only owner (unless the last exec gave it setuid/setgid > + * privs) or root can get vmmap. > + */ > + if ((fin

relaxing sysctl_proc_vmmap checks for debugging

2016-06-28 Thread Gabriel Kihlman
I wanted to get the memory map of a child proc with sysctl but noticed I could only do this as root. I am allowed to ptrace it though so it felt a bit unfair.. ..so what about doing some of the the same checks as is done upon PT_ATTACH? (and hijacking the global_ptrace global to mean we can get t

Re: Small change suggestion to the front page design

2016-06-28 Thread coypu
On Tue, Jun 28, 2016 at 08:18:49PM +0200, ludovic coues wrote: > Any reason for not putting the diff inline ? > > Why the mail don't mention the drastic change to the font like using > sans-serif instead of serif or removing the underline to the link ? > EFORGOT > Any reason you reduced the con

Re: Small change suggestion to the front page design

2016-06-28 Thread ludovic coues
Any reason for not putting the diff inline ? Why the mail don't mention the drastic change to the font like using sans-serif instead of serif or removing the underline to the link ? Any reason you reduced the contrast from 4.4 [1] to 3.9 [2] ? [1] http://leaverou.github.io/contrast-ratio/#rgb%28

Re: Small change suggestion to the front page design

2016-06-28 Thread coypu
Easier to give an opinion with a screenshot (I forgot to add one): http://i.imgur.com/q49mAqq.png Sorry for the extra noise.

Small change suggestion to the front page design

2016-06-28 Thread coypu
Hi, this diff makes the color scheme more consistent with the 5.9 release logo. take it if you like. If you'd like me to respond, cc me. Change the color scheme of the menu to that of the 5.9 logo. Dark blue for separator, grey for background. Use a font that isn't the default one. Everyone seems

various rtadvd cleanups

2016-06-28 Thread Jeremie Courreges-Anglas
I have a diff to move rtadvd to libevent, but first there's a bunch of ugly stuff I'd like to get rid of. - pointless casts, kill caddr_t or replace it with char * - signed counters - extra newline due to ctime(3) in rtadvd_dump - simplify if_getmtu, only one method is needed and SIOCGIFMTU is th

Re: IPV6_MINHOPCOUNT on UDP sockets

2016-06-28 Thread Alexander Bluhm
On Tue, Jun 28, 2016 at 06:54:40PM +0200, Jeremie Courreges-Anglas wrote: > Alexander Bluhm writes: > > > On Tue, Jun 28, 2016 at 01:27:59PM +0200, Jeremie Courreges-Anglas wrote: > >> IP_MINTTL also benefits from this. Do we want to list SOCK_STREAM and > >> SOCK_DRAM here, or use more generic

Re: IPV6_MINHOPCOUNT on UDP sockets

2016-06-28 Thread Jeremie Courreges-Anglas
Alexander Bluhm writes: > On Tue, Jun 28, 2016 at 01:27:59PM +0200, Jeremie Courreges-Anglas wrote: >> IP_MINTTL also benefits from this. Do we want to list SOCK_STREAM and >> SOCK_DRAM here, or use more generic language? > > We should mention that it only works for TCP and UDP. This is the > i

xdm halt & reboot buttons

2016-06-28 Thread Craig Skinner
Hello, This diff presents 'Halt' and 'Reboot' buttons on the xdm screen. Other buttons could be added, such as 'Hibernate' & 'Suspend'. The message box remains after login but can be manually closed. Adapted from http://cafim.sssup.it/~giulio/other/Customization_XDM.html#starting-the-neces

Re: umb(4) attachment

2016-06-28 Thread Martin Pieuchot
On 28/06/16(Tue) 10:22, Mark Kettenis wrote: > [...] > It's already in. No real fallout as far as I know, except for that > report about some wierd umass interaction. But I don't think that's > actually related to my changes. It is not related, eric@ showed me the same problem during p2k16.

Re: Remove infinite loop check from ed

2016-06-28 Thread Martijn van Duren
ping On 06/18/16 11:13, Martijn van Duren wrote: > Hello tech@, > > This patch is build on top of my REG_STARTEND patch. > > It removes the infinite loop check and just makes sure that infinite > loops won't happen. This brings the behaviour closer to sed and vi. > > Although gnu eds has the s

Re: Fix begin of word bug in ed

2016-06-28 Thread Martijn van Duren
ping On 06/18/16 11:13, Martijn van Duren wrote: > Hello tech@, > > Here's a second jab at implementing REG_STARTEND in ed. This patch just > focusses on getting REG_STARTEND in there and the general restructuring > that comes with it. > This fixes the begin of word bug similar to sed. > (Also f

Re: IPV6_MINHOPCOUNT on UDP sockets

2016-06-28 Thread Alexander Bluhm
On Tue, Jun 28, 2016 at 01:27:59PM +0200, Jeremie Courreges-Anglas wrote: > IP_MINTTL also benefits from this. Do we want to list SOCK_STREAM and > SOCK_DRAM here, or use more generic language? We should mention that it only works for TCP and UDP. This is the ip(4) man page so naming the protoco

Re: IPV6_MINHOPCOUNT on UDP sockets

2016-06-28 Thread Jeremie Courreges-Anglas
Renato Westphal writes: > 2016-06-27 19:01 GMT-03:00 Alexander Bluhm : >> On Mon, Jun 27, 2016 at 11:57:08PM +0200, J??r??mie Courr??ges-Anglas wrote: >>> Alexander Bluhm writes: >>> > The man page says IPV6_MINHOPCOUNT is only for unicast packets. >>> > The ugly part of the code is dealing with

Re: OpenBSD 5.9 Errata for OCSP available

2016-06-28 Thread Alexander Rechinskiy
Hello, if (maxsec >= 0) { t_tmp = t_now - maxsec; -if (X509_cmp_time(thisupd, &t_tmp) < 0) { +if (gmtime_r(&t_tmp, &tm_tmp) == NULL) +return 0; +if (gmtime_r(&t_tmp, &tm_tmp) == NULL) +return 0; +

finer grained art locking

2016-06-28 Thread Jonathan Matthew
Currently, art explicitly relies on the kernel lock to serialise updates. We need to allow route insertion during packet processing, which means avoiding the kernel lock is desirable. The diff below achieves that, adding a mutex per art root. While that doesn't seem particularly fine grained, th

Re: umb(4) attachment

2016-06-28 Thread Mark Kettenis
> Date: Tue, 28 Jun 2016 07:01:09 +0200 > From: Martin Pieuchot > > On 17/06/16(Fri) 22:22, Mark Kettenis wrote: > > As reported earlier, umb(4) currently doesn't attach to devices that > > implement both NCM 1.0 and MBIM, such as the Sierra Wireless EM7345 > > that is found in some thinkpads. >