Re: possibility to disable relink in conf

2017-09-13 Thread Theo de Raadt
Not going to do that. > Because sometimes you run not so good device, > and you boot often. > > or you do not want to write on boot. > > ( attached file got the tabulation to apply ) > > Index: ./etc/rc.conf > === > RCS file:

syslogd preopen console

2017-09-13 Thread Alexander Bluhm
Hi, syslogd has special code for reporting errors before it has been initialized. Then it tries to log to console. For every message it reopens the console with file descriptor passing from the privsep parent. Of course that does not work when we have reached our file descriptor limit. I

Re: possibility to disable relink in conf

2017-09-13 Thread sven falempin
On Wed, Sep 13, 2017 at 11:58 AM, Theo de Raadt wrote: > Not going to do that. > >> Because sometimes you run not so good device, >> and you boot often. >> >> or you do not want to write on boot. >> >> ( attached file got the tabulation to apply ) >> >> Index: ./etc/rc.conf

Re: Revisit tcpdump(8) pledge(2) promises

2017-09-13 Thread Bryan Steele
On Wed, Sep 13, 2017 at 09:53:09PM -0400, Bryan Steele wrote: > On Wed, Sep 13, 2017 at 08:58:28PM -0400, Bryan Steele wrote: > > > > 'rpath dns' for DNS lookups > > > > To clarify, "rpath" is not needed for DNS lookups, but currently for > other address to name translations, i.e:

Re: [patch] setsid.2 inconsistency

2017-09-13 Thread Philip Guenther
On Wed, 13 Sep 2017, Martijn van Duren wrote: > When reading up on setsid I found ERRORS section confusing. It indicates > that EPERM may occur if the process group ID of a process other than the > calling process matches the process ID of the calling process. > > To me this appears to be in

Re: possibility to disable relink in conf

2017-09-13 Thread Theo de Raadt
> +[[ $reorder != NO ]] && /usr/libexec/reorder_kernel & No. Kernels get relinked. if you don't like it, make your own personal changes and suffer the consequences. We are not going to add buttons for 1 person. Stop suggesting changes which reduce safety. You provided no justifaction. "Here

Re: Revisit tcpdump(8) pledge(2) promises

2017-09-13 Thread Bryan Steele
On Wed, Sep 13, 2017 at 08:58:28PM -0400, Bryan Steele wrote: > > 'rpath dns' for DNS lookups > To clarify, "rpath" is not needed for DNS lookups, but currently for other address to name translations, i.e: getrpcbynumer(3) and ether_ntohost(3).

Revisit tcpdump(8) pledge(2) promises

2017-09-13 Thread Bryan Steele
OpenBSD's tcpdump(8) is separated into two processes: The packet parser that will chroot(2) if possible, drop to an unprivileged user, and then pledge(2) itself tightly as "stdio" before entering its main loop. And the priviledged "monitor" process, which opens and fdpasses bpf(4) and any

Re: softraid: vnode leaks?

2017-09-13 Thread Philip Guenther
On Wed, 13 Sep 2017, Patrick Wildt wrote: > I think softraid is leaking vnodes. When taking a device offline with > bioctl -O /dev/sd0a sd2, then wiping the disk with dd (including the > disklabel), I cannot change sd0's disklabel as it would say "open part- > ition would change/shrink". This

Re: armv7/sxitwi missing |

2017-09-13 Thread Patrick Wildt
On Wed, Sep 13, 2017 at 10:38:37PM +0300, Artturi Alm wrote: > Hi, > > obvious i hope. > > -Artturi > > > diff --git a/sys/dev/fdt/sxitwi.c b/sys/dev/fdt/sxitwi.c > index 260f6f1de57..aa4193549dd 100644 > --- a/sys/dev/fdt/sxitwi.c > +++ b/sys/dev/fdt/sxitwi.c > @@ -178,7 +178,7 @@

Re: sysctl_int(), sysctl_struct() & MP work

2017-09-13 Thread Martin Pieuchot
On 12/09/17(Tue) 15:53, Martin Pieuchot wrote: > Diff below reduces the scope of the NET_LOCK(), this time in sysctl > path. It is interesting for multiple reasons: > > - It reduces the contention on the NET_LOCK(), which should improve > the overall latency on the system when counters are

Re: slaacd(8), mention that it's a client, hint at rtadvd

2017-09-13 Thread Sebastian Benoit
Stuart Henderson(s...@spacehopper.org) on 2017.09.13 12:27:40 +0100: > A user knowing that they want to provide services for slaac on > a network might do 'man -k slaac' and from the title and at least a > quick read of the manual it's not clear that this is the client side. > > I think it would

[Patch] directory.3 should describe return value of readdir_r()

2017-09-13 Thread Ross L Richardson
directory.3 (has no "RETURN VALUES" section and) fails to describe the return value of readdir_r(). The diff below adds a sentence about the return value. It also converts "return (X)" to "return X" in the sample code. Ross Index: directory.3

slaacd(8), mention that it's a client, hint at rtadvd

2017-09-13 Thread Stuart Henderson
A user knowing that they want to provide services for slaac on a network might do 'man -k slaac' and from the title and at least a quick read of the manual it's not clear that this is the client side. I think it would be helpful for slaacd(8) to identify itself as a client and at least hint that

[patch] setsid.2 inconsistency

2017-09-13 Thread Martijn van Duren
Hello tech@, When reading up on setsid I found ERRORS section confusing. It indicates that EPERM may occur if the process group ID of a process other than the calling process matches the process ID of the calling process. To me this appears to be in contradiction with the fork manpage, which

clang-local(1): typo

2017-09-13 Thread Anton Lindqvist
undesriable -> undesirable; ok? Index: clang-local.1 === RCS file: /cvs/src/share/man/man1/clang-local.1,v retrieving revision 1.9 diff -u -p -r1.9 clang-local.1 --- clang-local.1 29 Jul 2017 21:01:13 - 1.9 +++

softraid: vnode leaks?

2017-09-13 Thread Patrick Wildt
Hi, I think softraid is leaking vnodes. When taking a device offline with bioctl -O /dev/sd0a sd2, then wiping the disk with dd (including the disklabel), I cannot change sd0's disklabel as it would say "open part- ition would change/shrink". This is because on assembly (and rebuild) the device

possibility to disable relink in conf

2017-09-13 Thread sven falempin
Because sometimes you run not so good device, and you boot often. or you do not want to write on boot. ( attached file got the tabulation to apply ) Index: ./etc/rc.conf === RCS file: /cvs/src/etc/rc.conf,v retrieving revision

Re: possibility to disable relink in conf

2017-09-13 Thread Stuart Henderson
On 2017/09/13 14:39, sven falempin wrote: > Because sometimes you run not so good device, > and you boot often. > > or you do not want to write on boot. > > ( attached file got the tabulation to apply ) Please check -current before proposing diffs. revision 1.216