From nobody Mon Aug 26 13:22:28 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 4Wsrv91C7bz5SvnB; Mon, 26 Aug 2024 13:22:29 +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 4Wsrv90p10z4Y9g; Mon, 26 Aug 2024 13:22:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724678549; 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=Wsl/PkGcruWNJJuXztIXt4qUwe859OyC4m+DRDsCEOg=; b=hK7yJOBoT2VyJhxx79Emd8B/vMb9qKCp4QUS0UqoPZZs0psP6h8ZWK4W0ULii7PvqMJEQV es7ubhrBcEFbXnCfAHJ2AwD2Avpo87kV3pr0hrBR2pFjwk/Wjz6jIyWJcfXkQhP0ytU94y 43QwVdjwURtBfvdEq+NDG9QC/EtEh7R3nKAKs7lZWXhCa9kmKOIIyM5MkKcZb9MY+GS8hc MJqG9P7vSoLV/oJNG7dm5ThWgH+VGKFYWbFBkw82dOKnhwvVwsH7YD7dpju0SH/wc9XoXh PMwxbrLL0eNxhIl8GL3iFcwXDHDRQIHB2ST87ErBnHWFD8GY1as4jk1wL1jQig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724678549; a=rsa-sha256; cv=none; b=H4PkL0a9MKswUDNyITrEhcO6d83P2ysheyh5Y/PIJmkSHk+sva7hbCqz5638BYVsUVOruK 9b24im7UuaXokuBlpko98dbN6YrG02uQEMrwgjSgrbOfdAKb9VL1Isj2HZvFEnEaWXXIcX Fs+D0IPYjnDZBUEBK6DmsIhRcBT1ibYkGMmgL8rXZjw/HRScZu3E3xUmg8AAWeuMI2BBNX CEbVM1YOLrLVbq/0O4Jdp07+er+cUy6KrL4OUA1JS6mdOg6xnndfXnMJG+fiAZY1ha6y9N tYjYxa5+0MFD+IvKeckBpkMGuCtSJHzl4A+fpCb9LRbH7AynCtpn4zvqmrUFjQ== 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=1724678549; 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=Wsl/PkGcruWNJJuXztIXt4qUwe859OyC4m+DRDsCEOg=; b=RJEDLrur+ACwh8VyOSo4sdhLL4V8srwunLcfQOfa5RiexE9AsXrtV/NHIfG8K8ZR5gsQoK 4MTyJX2aGJm2BAdgPG3QawBmYJYQBVqUYOh5N6QxadCVGXDm/PyUb3rCqUJbLDGVIjp76m p8MTE+eYHayQOufe+z1cCw0KRsjwtQ9T01DsEojp38guYNA17Fya2Dncw5XQlM5O39jYBT 6hlkgojPWgLUXI7DHADCXpUKyLq8aQuI93qqlYDAtiMqi8JJUqyiTRk/nx7RCa/Eu9BNej NmHBrg8NvA5n0G6GkDOPCyN+r6d5tjLhDJZwGH9ha31bEPNzDOGIMS2iCld0ig== 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 4Wsrv90PX1z17cH; Mon, 26 Aug 2024 13:22:29 +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 47QDMSPp066026; Mon, 26 Aug 2024 13:22:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47QDMS3N066023; Mon, 26 Aug 2024 13:22:28 GMT (envelope-from git) Date: Mon, 26 Aug 2024 13:22:28 GMT Message-Id: <202408261322.47QDMS3N066023@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: 226c73373738 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 226c733737383478f3c1d3f8c119207136c05de0 Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=226c733737383478f3c1d3f8c119207136c05de0 commit 226c733737383478f3c1d3f8c119207136c05de0 Author: Ed Maste AuthorDate: 2024-08-19 13:43:37 +0000 Commit: Ed Maste CommitDate: 2024-08-26 13:22:03 +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) --- 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