Index | Thread | Search

From:
Janne Johansson <icepic.dz@gmail.com>
Subject:
Re: net/isc-dhcpd: avoid uncontrolled grow of lease db
To:
"Kirill A. Korinsky" <kirill@korins.ky>
Cc:
ports@openbsd.org
Date:
Thu, 11 Jan 2024 08:23:49 +0100

Download raw body.

Thread
> The first thing that dhcpd.leases~ is backup of dhcpd.leases.
>
> Also, it seems that the service opens files before drop users,
> that explains why it works.
>
> Also, without empty dhcpd.leases it won't start => touch here.

Perhaps use "install" to copy /dev/null to the file and set
owner/group directly instead of touch+chown?

install -o _isc-dhcp -g _isc-dhcp /dev/null /var/db/dhcpd/dhcpd.leases

-- 
May the most significant bit of your life be positive.