From nobody Mon Aug 26 13:23:06 2024 X-Original-To: dev-commits-src-all@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 4Wsrvv0Q0gz5SvGx; Mon, 26 Aug 2024 13:23:07 +0000 (UTC) (envelope-from git@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 4Wsrvt71Dfz4Ybk; Mon, 26 Aug 2024 13:23:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724678587; 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=6WJ6pxRMKN4KJvt/XOMG57TMBgGvqJaZFEOKjNqDdJY=; b=JkKZXMG8hOlMoyzMnwm3WtDha3/vMIU9kY1w22AvarL2oinQwpUv/g22JjoOWitF2SiDbD KlS47e054eeIHVvE5HM7383loeapIL+9xIoIwPYMBUpIKRZyk4jCnKpQjUHDzKrdtSH+RU bkLGs8usmY2+/0ceeYB/t+lEWejt1mnI0jvkGkWAgCHbsGYGrWut02xxDXjDkHVbQJTH1w aWq0eM7Y23L7uBcs2mkNzCygUBvAchqUVe5HVsQR8NvK2tLXZSXc4R/9ORaTfYgaVgeMI3 T1051aPnkJ1e4N1wUojHXxZqpmoCVLD2+/GrTxJwQ5QTB6fCbPxhKLmaBVhLeA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724678587; a=rsa-sha256; cv=none; b=cKlO7VgCe/CxGR0wa8wTgrh5thwZee+WCEgXkazFHOAc658Q8SW3GR0DmNN2zK7qGKR2p/ o1plhKJ7AU1OxcSzximLRSpFhWDyDrKGYsRyrd9PMSldTAfUKCst/nR5w4Fy4gWmZdP89y rVVHTqVQvbiXhZCQQSCK8/gi1uvmF3RHnxHmNYWiENIrDZWyJXpMZFtD79EDJjA9T0Rf1g UX8vsGKwNtnlSKlu5oVLKEDze4jyhEdVKD8+mOm0ZdLX02TfTwjzYP83DJPXw61YkfCVAu Ue6eQWfUxjK0YdRzdZf93fFDtg0BNA10ikwZhE8VH7sr1rzk3uEgQs4LrOHAiQ== 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=1724678587; 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=6WJ6pxRMKN4KJvt/XOMG57TMBgGvqJaZFEOKjNqDdJY=; b=xHLaxe8Np0J/vbjLUMRXiAHgLX4k79/HGK86D/Ev4lJ3zlDqL0fb6jeirFRoEfd91K1NwB em+cwLYDpDm4PSYDKDJpEfPx8gLoXSjVXO5kbeehff8+qRfGTEHUKEQJIiPMOXufUVv9SH GZHmrxmEfMQDh6UOOvP/4BJNOIlc1e+kjpcuRKQb/vxGSHSbDMShvEKP62zosB/+hTSNQP Ryj+UiP87ZDfkxNPMu4z8EOopCP1apC4Jk2TnHQVsD9mJQd0+mV/cbGxPqgOsBHkOXmUXB omfxiEBvTMS+BFv6Gb0Dh7ei8iDBYIS/itjfesAfKBhsRxrUlA7ICCjTiz9eFQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Wsrvt6dF3z17cK; Mon, 26 Aug 2024 13:23:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47QDN6Dt066232; Mon, 26 Aug 2024 13:23:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47QDN64r066229; Mon, 26 Aug 2024 13:23:06 GMT (envelope-from git) Date: Mon, 26 Aug 2024 13:23:06 GMT Message-Id: <202408261323.47QDN64r066229@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 6a847b6d1ee8 - stable/13 - linux.4: clarify path translation List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 6a847b6d1ee8ccf7e109d13bece2ad634672e6ff Auto-Submitted: auto-generated The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=6a847b6d1ee8ccf7e109d13bece2ad634672e6ff commit 6a847b6d1ee8ccf7e109d13bece2ad634672e6ff Author: Ed Maste AuthorDate: 2024-08-19 13:43:37 +0000 Commit: Ed Maste CommitDate: 2024-08-26 13:22:58 +0000 linux.4: clarify path translation Try to be a little more explicit about the path translation mechanism accessing /compat/linux/ then falling back to /. As suggested by martin@lispworks.com, refer to the compat path explicitly, and correct an existing grammaro. PR: 277804 Reviewed by: fernape Sponsored by: The FreeBSD Foundation (cherry picked from commit f66e71fa78e16164339f7fd4791306fb30165581) (cherry picked from commit d1daec3d358eb5aaa38fa7c95fbfa330c46a69a1) (cherry picked from commit 226c733737383478f3c1d3f8c119207136c05de0) --- share/man/man4/linux.4 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/share/man/man4/linux.4 b/share/man/man4/linux.4 index 0efc469985f9..0659651d6596 100644 --- a/share/man/man4/linux.4 +++ b/share/man/man4/linux.4 @@ -61,11 +61,13 @@ under .Pa /compat/linux ) before .Pa / . -For example, when Linux process attempts to open +For example, when a Linux process attempts to open .Pa /etc/passwd , -it will really access +it will first access .Pa /compat/linux/etc/passwd , -unless the latter does not exist. +falling back to +.Pa /etc/passwd +if the compat path does not exist. This is used to make sure Linux processes load Linux shared libraries instead of their similarly-named FreeBSD counterparts, and also to provide alternative versions of certain other files and virtual