Index | Thread | Search

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

Download raw body.

Thread
Greetings,

On Thu, 11 Jan 2024 08:23:49 +0100,
Janne Johansson wrote:
>
> > 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

Nope, this won't work. As far as I recall the install fails when distantion file
exists that means this turns rc script into something that can be run only once.

--
wbr, Kirill