Re: dhcpcd consistently terminates

2023-05-20 Thread Zack Newman
There are a few bugs in dhcpcd 9.4.1 as well as 10.0.1 that have since been resolved in the master branch. The bug that was causing dhcpcd to terminate every 5 days was related to how the privsep code responded to DHCP truncated packets: it would gracefully exit. This has been fixed with this comm

Re: dhcpcd consistently terminates

2023-05-21 Thread Zack Newman
On 5/21/23 02:27, Stuart Henderson wrote: Can you try the port diff below and confirm it's working for you please? I am already running master, and it works fine. I can try the port diff if you are willing to hold my hand. I have never done anything with ports. /usr/src is only 3 GiB in size to

Re: dhcpcd consistently terminates

2023-05-22 Thread Zack Newman
On 5/22/23 03:18, Stuart Henderson wrote: I don't have time to hand-hold at the moment. Perhaps someone else can, or see the ports faq for some details. Fair enough. I thought dealing with ports required -current as https://www.openbsd.org/faq/ports/testing.html states "The ports tree is develo

Re: dhcpcd consistently terminates

2023-05-22 Thread Zack Newman
On 5/22/23 12:36, Stuart Henderson wrote: Huh. So a client can use some other source port to send to the server, but the server is still required to send packets back to port 546 on the client rather than the source port the client actually used. Who came up with this idea... (I am dubious that r

Re: dhcpcd consistently terminates

2023-05-22 Thread Zack Newman
I believe a reasonable compromise is to allow any source UDP port and force the destination and source IP addresses to be link-local addresses. It is _very_ unlikely that a link-local address is not used by both server and client as it requires a previously agreed upon IP to be used which for most

Re: dhcpcd consistently terminates

2023-05-22 Thread Zack Newman
On 5/22/23 12:36, Stuart Henderson wrote: Or you can try this diff instead which applies to 7.3-stable. https://pbot.rmdir.de/TUCpK1TpCmhwZFuax3IBTA OK, I applied the diff and am currently running it. I successfully REBINDed the existing IPv6 and IPv4 leases. I can send an update once it succe

Re: dhcpcd consistently terminates

2023-05-23 Thread Zack Newman
The leases were successfully RENEWed.

security/vaultwarden: adding pledge(2) and unveil(2)

2023-11-05 Thread Zack Newman
I inquired upstream (https://github.com/dani-garcia/vaultwarden/discussions/4033) if adding pledge(2) and unveil(2) into Vaultwarden would be accepted, and they replied that it would so long as it was "self-contained". I am currently running Vaultwarden with SQLite on OpenBSD 7.4-stable on the amd

dhcpcd consistently terminates

2023-01-09 Thread Zack Newman
dhcpcd crashes every 5 days. I tried saving a crash report by setting sysctl.kern.nosuidcoredump=2; however dhcpcd.core was not written to /var/crash/dhcpcd. Here is some more information about my problem: https://marc.info/?l=openbsd-misc&m=167289142025844&w=2 Some other information not include