From nobody Wed Aug 27 18:04:36 2025 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 4cBsqm5LkWz65P90 for ; Wed, 27 Aug 2025 18:04:36 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cBsqm4tydz3qlC for ; Wed, 27 Aug 2025 18:04:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756317876; 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=071d1O5C1TnJho3pH/j04lf0M6ZVwzqs3SkYkJ0pmP4=; b=xHZdn09GzQ60OBv0z4pfCLuNBlw/YZd+bXdysumH+ILicBenY/MkpQ7/FYGGR03w3PaYbn kznprwLD/qptbwteVgiGS1o78s4H5TthRRGIXx+vZJkM/qVe5Wm7jfqNAHXu8Ulq6bo/I6 7BPhbCJwBfl7nqw7FXzGt4kL/z4Au9YtIPyTU6QyNGy+LaMqCcORzEcREUA2iRYH0QRwd7 lTdRxlrX7Ps+0yxvkyMe/OIvCCUoEZWHtPpxkXQo7TnnEM3dI1+wLPATdHBAQTSeNK9TC1 pup/rQOWT32mOdAoKxS0wmzp9yqWgWp1B49m0UgHoX9MCqDFtb/elpFUP3tcUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756317876; 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=071d1O5C1TnJho3pH/j04lf0M6ZVwzqs3SkYkJ0pmP4=; b=N2AzJRenx6ea7RERPor1SKd1oJ6cQYmp/PCwpbzCoyunIgphbjz0P0pBplODMRo54Tr6V9 gwv/6jLVijXd+6mAr9Q2mwiAGETHO/B70v9wylnPalqGwxq1CYxb0xlyoZUBGCF+Ou/M6+ 5pVYcIkG+0DzPsAe32rCP/iLF2UuKoTCbk44348FZt3ve3qOHAt8AAkOs3tXDj/72colG7 XUQnffKOLKoQERZtkyj9a8M7ngTMQzCwK4Ojo6qNLU/a3K+wCcwXl9mv0KOxePU65sjS1w o3bL40AetkddiT+byZL5kGKnYMBWdoJzgXX6rfRpFv/pxLZ50pgQreIWUP4/Gg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1756317876; a=rsa-sha256; cv=none; b=MS8AbgYUSsNFHoEGGGih+475LS35D8a8LDu2T8tnMtgCVTiSMmpbxEaBypm6LaDNkMbITP cpqwpgZGJFl4FgOGfSQgJgTr3PwaKZ6HrQ91NE6W0R1Ab8WBd4W2IQ2vvudPHdQGg+d+eh eyLbWfLQzs+S+0eIRFM3DrpZVCzy0qecwquiRU2ZHAQQLarz6dHGrq9fGnGUKyJPBgqvdW Cl1o2rEttKZl8JIIUYoEUliEF88k8BcCVV3DXRDYoxjyvt7md5UPLsmUuPbYWon7oIGLJm mijEfOZ4JoTD3IzEaTAVhE/ggZd3ysXZqoPrkrKH+Yg4Yz3Y+VF8jG5SxK3WmQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cBsqm4BKxzZdq for ; Wed, 27 Aug 2025 18:04:36 +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 57RI4a9J074515 for ; Wed, 27 Aug 2025 18:04:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 57RI4aaK074514 for bugs@FreeBSD.org; Wed, 27 Aug 2025 18:04:36 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 289134] ifconfig -j -g not executed in Jail Date: Wed, 27 Aug 2025 18:04:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: buero28@icloud.com 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 Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D289134 Bug ID: 289134 Summary: ifconfig -j -g not executed in Jail Product: Base System Version: 14.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: buero28@icloud.com When using the -j flag on ifconfig with the -g flag, the execution happens on the host not in the jail. Expected behavior: ifconfig -j 1 -g epair -> List the epair inside the vnet jail Observed behavior: ifconfig -j 1 -g epair -> Lists all epairs on the host root@srv01:~ # ifconfig -j 1 -g epair epair254a epair222a epair21a epair20a epair253a epair120a root@srv01:~ # ifconfig -g epair epair254a epair222a epair21a epair20a epair253a epair120a Work around: root@srv01:~ # jexec 1 ifconfig -g epair=20 epair254b Some hint whats going on: root@srv01:~ # truss ifconfig -j 1 -g epair 2>&1 | grep jail open("/lib/libjail.so.1",O_RDONLY|O_CLOEXEC|O_VERIFY,04) =3D 3 (0x3) root@srv01:~ # truss jexec 1 ifconfig -g epair 2>&1 | grep jail open("/lib/libjail.so.1",O_RDONLY|O_CLOEXEC|O_VERIFY,04) =3D 3 (0x3) jail_get(0x5bd7ef5b6938,0x4,0x0) =3D 1 (0x1) jail_attach(0x1) =3D 0 (0x0) open("/lib/libjail.so.1",O_RDONLY|O_CLOEXEC|O_VERIFY,04) =3D 3 (0x3) --=20 You are receiving this mail because: You are the assignee for the bug.=