unwind(8); "happy eyeballs"

2019-11-25 Thread Florian Obser
In case you are wondering why happy eyballs: It's a variation on this: https://en.wikipedia.org/wiki/Happy_Eyeballs unwind has a concept of a best nameserver type. It considers a configured DoT nameserver to be better than doing it's own recursive resolving. Recursive resolving is considered to be

smtpd: remove implicit listen on socket

2019-11-25 Thread Gilles Chehade
hello, smtpd has an implicit listener which is "listen on socket". I propose that we write it explicitely in the default config and give up with this last bit of implicit configuration. The goal behind that is to stop having implicit behaviors but it is also to improve security in the daemon: O

iwm: reduce code duplication

2019-11-25 Thread Stefan Sperling
This diff creates a shared function from code which was duplicated when 9k device support was added. Tested by mlarkin on 9560 and by myself on 8265. ok? diff feebccacec1ad3769dffeb0460ee0327ebb7478a 3465a69074230e50d890fe14737583f8e2814227 blob - 3284d345cb04ee93dd991637876ce805331f33b9 (mode

Re: [PATCH] fix vmm pvclock accuracy

2019-11-25 Thread Mike Larkin
On Mon, Nov 25, 2019 at 07:06:19PM -0800, Pratik Vyas wrote: > Hi tech@, > > This patch fixes vmm pvclock accuracy issues. Shift math error > discovered by George Koehler. This diff also fixes the error in tsc > multiplier which was correct only if the host timecounter is tsc. > > -- > Pratik >

[PATCH] fix vmm pvclock accuracy

2019-11-25 Thread Pratik Vyas
Hi tech@, This patch fixes vmm pvclock accuracy issues. Shift math error discovered by George Koehler. This diff also fixes the error in tsc multiplier which was correct only if the host timecounter is tsc. -- Pratik Index: sys/arch/amd64/amd64/vmm.c =

dhclient: Fail on nonexistent -c file

2019-11-25 Thread Klemens Nanni
Same story as with unwind(8); dhclient(8) reads the default config /etc/dhclient.conf if present and must run fine if it does not exist, but if `-c' is used, nonexistent files should fail. $ doas dhclient -c /nonexistent trunk0 trunk0: 192.168.11.51 lease accepted from 192.168.11.1

Re: smtpd remove implicit ruleset behavior

2019-11-25 Thread Tim van der Molen
Gilles Chehade (2019-11-25 08:43 +0100): > and this diff makes smtpd warn at startup that implicit rules were used: > > laptop$ doas smtpd > smtpd: ruleset relies on implicit 'from' at line 10 > smtpd: ruleset relies on implicit 'for' at line 11 > laptop$ Without context it may not be obvious wha

Re: debug packages: let strip do the stripping

2019-11-25 Thread Marc Espie
On Mon, Nov 25, 2019 at 04:11:53PM +0200, Paul Irofti wrote: > Hi, > > Few people complained (hi landry@!) that stripped binaries are slightly > larger now than they used to be when debug packages are enabled. > > My investigations show that this is because objcopy --strip-debug is > less efficie

debug packages: let strip do the stripping

2019-11-25 Thread Paul Irofti
Hi, Few people complained (hi landry@!) that stripped binaries are slightly larger now than they used to be when debug packages are enabled. My investigations show that this is because objcopy --strip-debug is less efficient than plain strip(1) which is what we use for non-debug packages. Reintr

Re: unwind: log missing config file

2019-11-25 Thread Klemens Nanni
On Tue, Nov 19, 2019 at 03:53:16AM +0100, Florian Obser wrote: > I think the file doesn't exist but it's fine check is in the wrong > place. It's also stupid that it doesn't fatal(!) for unwind -f > nonexistent. I think this needs to be handled further up in main. > Maybe. I'll have a look if I don

[PATCH] [www] books.html - remove superfluous angle bracket

2019-11-25 Thread Raf Czlonka
Regards, Raf Index: books.html === RCS file: /cvs/www/books.html,v retrieving revision 1.117 diff -u -p -r1.117 books.html --- books.html 1 Jun 2019 23:12:47 - 1.117 +++ books.html 25 Nov 2019 11:15:11 - @@ -355,7 +35

[Patch 1 of 2] Update list of ssh key files checked in Xsession

2019-11-25 Thread Ross L Richardson
Noticed when testing a U2F key... SSH1 is no longer supported, so checking for an "identity" private key file is unhelpful. [Has this been overlooked, or is there some reason it has been preserved?] Ross Index: Xsession.in ==

[Patch 2 of 2] Update list of ssh key files checked in Xsession

2019-11-25 Thread Ross L Richardson
Add checks for the (new) security key files... Patch assumes previous patch has been applied. Ross --- Xsession.in.prevMon Nov 25 21:29:42 2019 +++ Xsession.in Mon Nov 25 21:35:11 2019 @@ -26,10 +26,12 @@ fi id1=$HOME/.ssh/id_dsa id2=$HOME/.ssh/id_rsa id3=$HOME/.ssh/id_ecdsa -id4=$H

Re: acpivout(4): fix brightness not going up

2019-11-25 Thread Paul Irofti
On Wed, Nov 20, 2019 at 05:44:35PM +0100, Patrick Wildt wrote: > On Sat, Nov 02, 2019 at 10:09:43PM -0400, James Hastings wrote: > > Hi, > > > > Backlight on multiple laptops will go down but not up when using brightness > > keys. > > Compare new brightness level to min/max values in sc_bcl[] ins

Re: misc. acpi(4): *sleep -> *sleep_nsec(9)

2019-11-25 Thread Paul Irofti
On Fri, Nov 22, 2019 at 06:08:34PM -0600, Scott Cheloha wrote: > The acpi_event_wait() loop is tricky. I'm leaving it alone for now. > > Everything else here is straightforward, though. The acpiec(4) sleep > is adjacent to a delay of 1 microsecond so I've chosen that to replace > the current dur