Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Aug 2024 19:12:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 280913] [patch] Unexpected state of vnet-jails with ifconfig_DEFAULT="DHCP" in rc.conf(5)
Message-ID:  <bug-280913-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280913

            Bug ID: 280913
           Summary: [patch] Unexpected state of vnet-jails with
                    ifconfig_DEFAULT=3D"DHCP" in rc.conf(5)
           Product: Base System
           Version: 14.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: bugzilla.freebsd@omnilan.de

Created attachment 252894
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D252894&action=
=3Dedit
auto-switch DHCP rc.conf(5) directive to SYNCDHCP if devd(8) won't take over

Generally, if user defines DHCP as ifconfig pseudo-argument in rc.conf(5),
devd(8) and /etc/devd/dhclient.conf handle the setup task.
But since /etc/rc.d/devd has "nojail" keyword defined, devd(8) won't run in=
 any
jail, while /etc/rc.d/dhclient is meant to be allowed in vnet-enabled jails
since /etc/rc.d/dhclient got keyword nojail changed to nojailvnet.
This change doesn't have any effect unless user defines "SYNCDHCP" instead =
of
"DHCP" as pseudo-ifconfig argument in rc.conf(5), which seems to be not well
documented.

My suggestion is an auto-switch to SYNCDHCP behaviour (i. e. /etc/rc.d/netif
will run /etc/rc.d/dhclient).
This applies outside jails too, if user disabled devd(8) startup.
If DHCP pseudo-arg is configured in a vnet-jail (no nojailvnet), the
auto-switch to SYNCDHCP will do what user expects - without spending a lot =
of
time to discover the to some degree misleading SYNCDHCP option, imho.
I'm not aware of any negative impact this auto-switch could have.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280913-227>