Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: doas: add optional timeout to persist directive
To:
Anthony BOCCI <anthony@abosec.fr>
Cc:
"tech@openbsd.org" <tech@openbsd.org>
Date:
Sat, 01 Aug 2026 14:21:39 -0600

Download raw body.

Thread
+                       yylval.timeout = (int)timeout;

On a 64-bit architecture what happens if someone passes 
a 2147483680


I don't like what you are doing here.  I honestly don't see a reason to
allow configurable amount of time here.  The original discussion for
5 minutes was "approximately how long before someone forgets about this
persistance which could hurt them".