From nobody Tue Jul 25 15:08:02 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 4R9L4f60jqz4pWj4 for ; Tue, 25 Jul 2023 15:08:02 +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 4R9L4f4zc9z3LXV for ; Tue, 25 Jul 2023 15:08:02 +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=1690297682; 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=vQ+MLh3CsI25oV27gZDAFB+j/2XV1VflnN8hUM/IBhs=; b=Vd8SfUo08wGVZi4N8rnx3w/mok+TWMBnI51HDq1GaVlI8VlKziB+oaEt0E1t7l/syjyiWW ko66jIYMqTBGKcodeCW3nLOXFsv2u+wZkhYsT1fhmn5q08KkqjvVgERd+nQKkM5VcJcBtS meiiT0ZN57WDCjniSM25Zxo3knvLF6isrYLC21S4bXjcfGqSCWClTdE8djF8vSAbBcOSve dEmXU+Xwg3We7+2/PdWdMrj3gJJ8L/38Jg7++sKNe2r957kUZanT785F21Sh7Y6I3NhrFs pP5q/Nz2e2g3v0LRCquvW8ACKS+Fz+GTb4PiMMvHQBE8Blobf3+GNQegGH4ylg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690297682; a=rsa-sha256; cv=none; b=vFWAvmtq1py1NmOxzND4tKy5B3wzpjFf7twcLWQErPA+wkCYYTOcv3fzQsO1oztyTohhVk RRqGeoVcd2GUyJz/3BpwCLq15Kzf611NZbiB/rvGzcN1p2lRPR8gAwIyqTShIFYfTW9+ft z9FAi9gwTysr490ITSLDjWrDiDgRqxDAbKzM4miNNiXmXMTg0BpDInyyy7l+Ayqb853vvA 2NPhZkQEyeOZfkhY9mkHETeqpFgDgInefVUJ7bfkEvf+7hF6LdFzXuB82cO3gSQroJdFWw 46gGnpLuIb+RjGEHtWvL+ldcqN4zo8BN1WBkB8GxiI2c/VVJLHJQo9Sx01SWNw== 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 4R9L4f43Qdz14DS for ; Tue, 25 Jul 2023 15:08:02 +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 36PF82OO077274 for ; Tue, 25 Jul 2023 15:08:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36PF8213077273 for jail@FreeBSD.org; Tue, 25 Jul 2023 15:08:02 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 15:08:02 +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: 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 --- Comment #4 from Andrew "RhodiumToad" Gierth --- (In reply to Andrew "RhodiumToad" Gierth from comment #3) I think I figured this one out, it happens when nullmounts are involved, ev= en if the jail's root directory is not itself the mountpoint of a nullmount. e.g. mkdir /some/dir mount -t nullfs /path/to/real/jail/tree /some/dir jail -c path=3D/some/dir/somejail at this point, executing procstat (or possibly other vn_fullpath clients) inside the jail returns paths based on /path/to/real/jail/tree/somejail (and not /some/dir/somejail). --=20 You are receiving this mail because: You are the assignee for the bug.=