ANSI function definitions in dump and fsck_ffs

2023-02-08 Thread Theo Buehler
People have made passes at using ANSI-style function definitions in the past. Some functions were missed and this upsets clang 15. Index: dump/traverse.c === RCS file: /cvs/src/sbin/dump/traverse.c,v retrieving revision 1.39 diff -u -

Re: Unlock select(2) and pselect(2)

2023-02-08 Thread Vitaliy Makkoveev
On Tue, Feb 07, 2023 at 05:42:40PM +0300, Vitaliy Makkoveev wrote: > > > > Otherwise, if you are concerning about serialized `p_sigmask' and > > > P_SIGSUSPEND, dosigsuspend() should be left under kernel lock: > > > > > > if (sigmask) { > > > KERNEL_LOCK(); > > > dosigsuspen

Re: Unlock select(2) and pselect(2)

2023-02-08 Thread Mark Kettenis
> Date: Wed, 8 Feb 2023 14:17:14 +0300 > From: Vitaliy Makkoveev > > On Tue, Feb 07, 2023 at 05:42:40PM +0300, Vitaliy Makkoveev wrote: > > > > > > Otherwise, if you are concerning about serialized `p_sigmask' and > > > > P_SIGSUSPEND, dosigsuspend() should be left under kernel lock: > > > > >

Re: Unlock select(2) and pselect(2)

2023-02-08 Thread Claudio Jeker
On Wed, Feb 08, 2023 at 12:40:50PM +0100, Mark Kettenis wrote: > > Date: Wed, 8 Feb 2023 14:17:14 +0300 > > From: Vitaliy Makkoveev > > > > On Tue, Feb 07, 2023 at 05:42:40PM +0300, Vitaliy Makkoveev wrote: > > > > > > > > Otherwise, if you are concerning about serialized `p_sigmask' and > > > >

Re: wsmouse(4): Apple-like multi-touch buttons

2023-02-08 Thread Mark Jamsek
On 23-02-07 02:12PM, Tobias Heider wrote: > On Mon, Sep 19, 2022 at 11:16:51AM +0200, Ulf Brosziewski wrote: > > Is there enough interest in this feature among OpenBSD users? I haven't > > seen many requests for it, if any. Moreover, is it a good idea to configure > > different input methods on t

Re: omit ksh version bits in SMALL builds

2023-02-08 Thread Theo de Raadt
Sure Klemens Nanni wrote: > Everytime I check ramdisks I wonder of what use the ksh string is: > $ what bsd.rd > bsd.rd: > OpenBSD 7.2-current (RAMDISK_CD) #965: Sun Feb 5 09:58:01 MST > 2023 > PD KSH v5.2.14 99/07/13.2 > $OpenBSD: cert.pem

omit ksh MAIL* bits in SMALL builds

2023-02-08 Thread Klemens Nanni
Anyone checking their mailboxes in the installer's interactive shell? MAIL If set, the user will be informed of the arrival of mail in the named file. This parameter is ignored if the MAILPATH parameter is set. MAILCHECK ... MAILPATH ... P

iked(8): support multiple name servers as client

2023-02-08 Thread Tobias Heider
Hi, iked currently enforces an arbitrary limit of only a single remote name server. As we have found out, a good reason to support more than one is to have a backup when the connection to that server fails for some reason. With the diff below we can support all the name servers we get and fall b

pf max-src-{states,conn} without overload/flush useless?

2023-02-08 Thread joshua stein
I want to limit incoming connections on a server to 5 per IP. I don't want to put violators into a pf table (overload) or kill the other connections (flush), I just want to not accept new connections from that IP once their limit is reached and then accept them again when they are under the li

Re: pf max-src-{states,conn} without overload/flush useless?

2023-02-08 Thread Alexandr Nedvedicky
Hello, I did test similar rules on my system OpenBSD 7.2-current (GENERIC.MP) #978: Sun Jan 22 11:41:04 MST 2023 these are my rules: set skip on lo block return# block stateless traffic pass out log# establish keep-state pass in on iwn0 proto tcp from 192.168

Re: pf max-src-{states,conn} without overload/flush useless?

2023-02-08 Thread joshua stein
On Thu, 09 Feb 2023 at 02:42:22 +0100, Alexandr Nedvedicky wrote: > this is my test terminal on remote host: > router$ for i in `seq 5` ; do nc 192.168.2.175 22 & done > [1] 32472 > [2] 97453 > [3] 7192 > [4] 50386 > [5] 57517 > router$ SSH-2.0-OpenSSH_9.1 > SSH-2.

Re: patch for httpd implementing clickjacking protection

2023-02-08 Thread Bruno Flueckiger
On 07.02., Peter J. Philipp wrote: > On Tue, Feb 07, 2023 at 10:41:34AM +, Stuart Henderson wrote: > > On 2023/02/07 10:20, Peter J. Philipp wrote: > > > Hi, > > > > > > Arslan Kabeer (on the Internet) made me aware of clickjacking being done > > > on > > > my site using OpenBSD httpd. This f