From nobody Sun Aug 18 19:12:22 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wn52Z3WcHz5T8bh for ; Sun, 18 Aug 2024 19:12:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wn52Z1Bl9z44w6 for ; Sun, 18 Aug 2024 19:12:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724008342; a=rsa-sha256; cv=none; b=qItFcbpglxRwrdiqtzjN2G++gIK+OrI3P1DBQvHU1pTGaKicA0BYZ333lZtT2DzhXnz3/g ALZBYKJQ5xr5jq5SYJCnJsIlNVPZ23u2sjtYI+oo6w6+zufvX2ohZ4TXY1Mzx0PGA8gLev XcWFu3FaFuHGfnFWS/LvFUy6DNH4fn2gj06cRvDIPw/ISvSePRcjmd1avuVcv+JW3M8k90 eqnuZL03Gho08lqKOcwXjZtpRV3dDzZCLxBBm8A0SXfyvQy7vCsLxQbmAHbnf0eVebhxsS p8Onqbp6A8nxonkL5ws9yWsUKtLn6UZn+GuYj5xyy72uvhBL2Gb5OpunfAMxYw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724008342; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eZU6Spu+gW2m4Tf/bzYqxPbrOtWt5cV6CJlrqjWhG6Q=; b=hfUl3ly7uaqVw6t2ilDWHBJt4EoKpnTWERikwNX72BiYwM5RLfRjjvTubNt2xO4yhh/klU HIwIei+EnVxdvxxTrr3m2wJjZcgvnfhjDxMl1b8PQ583/BcDC3tLcxY0799n6BuEZe1EpD Fcwsi17zW08iVPjLWWRKj/WH1dLN3MTscYNhNYKuNmyelX1ZvVw1juohw7lRRVVNauWOgB 6lSwgd6aGe8fNIHGvTt8HYA/VvajSTiuE3HPAkiUuiFdeECdumh64COkCDGZH+adwOzywa F0hztJwA9/De3ku2fBZCVLodZ7JeHWik+I/eSkLEcuv4wyfUVYaa6PPYHSkWqA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wn52Z0pFtzljL for ; Sun, 18 Aug 2024 19:12:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 47IJCMRU038640 for ; Sun, 18 Aug 2024 19:12:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47IJCMRF038637 for bugs@FreeBSD.org; Sun, 18 Aug 2024 19:12:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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) Date: Sun, 18 Aug 2024 19:12:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 14.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bugzilla.freebsd@omnilan.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 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.=