From nobody Tue Jul 25 11:19:41 2023 X-Original-To: jail@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 4R9F1C2Dkpz4p3QG for ; Tue, 25 Jul 2023 11:19:43 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R9F1B6RhSz3vj0 for ; Tue, 25 Jul 2023 11:19:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690283982; 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: in-reply-to:in-reply-to:references:references; bh=OpHDil+RyATc5oHBCe8vXUKbR1sGNOXfVB1MRKB5gIo=; b=iDJsnd3k/E1rAxf77x7QPCiAqMWBNEsYOFakaNsnfdSZEyTVUwecO0O/EkOg4iayV+fpUC tzyymZamxxqEpnEZbMzMbH6WxIRFyXJ1uCOQPiSJa9yddXXAqcUZA1q+8jeP/0s08F+srw a3HzmEcKTIJSR0dHrMoDw/liRGKldGwqo6ozDHJfZtUjW5XZoHk4LbpwWo3H7xWE2PLMvY Wl+MLwza+FKfqCeeDK1E0Z9Qtb5VOE8F/nqy0zkNMCAYknM40vNqNJLfQdYWiNPWmLqZXG GsYxD5KYI7uuwkHcnflPkymXzArnxSiRowk3uDVvoTSHH55u+mm6v5ZWpl0yWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690283982; a=rsa-sha256; cv=none; b=bNH7eyIeUijkfeh6WlT7DGZRu7YPo/8ZnmtddAPZUrPGLjOq32rrsJ4YAZbgwqYs7JaPnN 8jCHTXBs5SUq/H82GEqiqTgsLr1xRLpFn+vm3MWZr6JkiVIX7+SMOzmJ0yG2bRLopdpc9N C0CEYWsoWdod4NDY5Hj+stgvvl+R6lJR9MglqU1MwnUltA/q97zTn3S+zIybkTLCoPpmX9 Au7um+9zCUVJgAltmjnHVigNVxqDh40rRwJw7WR8kbSg5svBwyVOkW0JO2WezeVPTfDsaB Dke5ByRBauTlxVCdoVpXB3KE3irQrug+MqzPlSu52HHxGftbOzozhXA7H32vVw== 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 4R9F1B54M8zyHj for ; Tue, 25 Jul 2023 11:19:42 +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 36PBJgH7037800 for ; Tue, 25 Jul 2023 11:19:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36PBJgA8037799 for jail@FreeBSD.org; Tue, 25 Jul 2023 11:19:42 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: jail@FreeBSD.org Subject: [Bug 272706] procstat(1): procstat vm in jails shows host paths of binaries and shared libraries from outside prison Date: Tue, 25 Jul 2023 11:19:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: andrew@tao11.riddles.org.uk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272706 Andrew "RhodiumToad" Gierth changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew@tao11.riddles.org.uk --- Comment #3 from Andrew "RhodiumToad" Gierth --- (In reply to Elizabeth Myers from comment #2) Wait, are you saying that procstat executed from *outside* the jail shows t= he full paths (which is expected), or that procstat executed *inside* the jail shows the full paths (which I can't reproduce)? The code path at issue uses vn_fullpath which is sensitive to the root directory of the invoking process, i.e. procstat, not to that of the process being examined. If you're finding that procstat from *inside* the jail is showing the full path, can you show a complete session transcript including the jail creation and execution of the procstat command? --=20 You are receiving this mail because: You are the assignee for the bug.=