Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: dhcpleased(8): Reduce if_indextoname(3) usage.
To:
tech@openbsd.org
Date:
Thu, 18 Sep 2025 07:08:43 +0200

Download raw body.

Thread
On Wed, Sep 17, 2025 at 10:54:32PM +0200, Florian Obser wrote:
> On 2024-07-13 15:59 +02, Florian Obser <florian@openbsd.org> wrote:
> > There is no need to constantly ask the kernel for the interface name,
> > it is not going to change.
> >
> > We pass the interface name from the frontend to the engine because
> > it is a fixed length string that is only used to find the
> > configuration for the interface and debugging output.
> >
> > We do *not* pass the name to the main process because that would allow
> > the frontend to create arbitrary files inside of /var/db/dhcpleased/,
> > send arbitrary data to the SIOCAIFADDR et. al. ioctls, and mess with
> > the bpf socket.
> >
> > OK?
> 
> I found this old diff I was slacking on. OK?

ok tb