From nobody Sun Jan 09 10:05:33 2022 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 63A9C19335E2; Sun, 9 Jan 2022 10:05:34 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JWsz20n17z4TmX; Sun, 9 Jan 2022 10:05:34 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 EC16F10714; Sun, 9 Jan 2022 10:05:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 209A5X9b095972; Sun, 9 Jan 2022 10:05:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 209A5XBF095971; Sun, 9 Jan 2022 10:05:33 GMT (envelope-from git) Date: Sun, 9 Jan 2022 10:05:33 GMT Message-Id: <202201091005.209A5XBF095971@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Edward Tomasz Napierala Subject: git: 595532a766b4 - main - linux: More man page tweaks 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: trasz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 595532a766b4bf62401f0567a607e85ed0f548fc Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641722734; 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=GSBM0VVKzXcElx9ye1HnjEHwv7SY9rcN0YzHV2fSIA8=; b=JKCZVs9XDTqI0w0wGC4i5PVvPStfCWGw0Z3Xqk3Pb9R7zvsZXrkKirFtZ4pHvOn9VfE8Yc Xk2NOgWgZMp5wlRIWzd2ROla98KVF+jHdLERDFc54sHsuXoAOUOGc1L9rEP0sGeieRfTis UMiRd5uiewwDUETbp8wwiKeEcVB95heDZ8ST51+3jEEkLPlgBwsHZPNe5X+MvF82iv0hTM il8KRGyE1Pmz6Rlvt6GO2JI7ttOosM/kk0BwcH2pOsZC0B+amXWQMgk48NNjCbHJxLUYve uflTnxoaNgzVrsdwvZf9iFOBHOmnV+OBDVv9Q2azx7Zzvr8BPm1q8ixTpG12Cw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641722734; a=rsa-sha256; cv=none; b=O0Q0+BF8uXF3trZJtoKojI8e4OdEiVFzx/zZ0iDQyk18hWN+Mr/GzoLZC4oDB2rmms+Jvq KNJ4RkcM1F5FrJY5iVgq8cYyB3/Nlly5J1qOFLklv5Z1758axmZGLVUHXy4JxyOr6As2jl 4QXE9C7RQeI40++I6Mj/aeQOLOcoIbNAJ/lMcN/fvscr+4bIoDscZIKnA4ebLFjPvM7iQd mDGnvowlnysOFz53hYxSZs/su/0z/nKJyQJXVZzp2qY1/Ft8X/ccP09DXnv6kJmsFMPCUU 26Uhgdh5rwKIgH0hS9IdBQluWXwRJT5a3VgS20sISU2UH2VdBi7msCnJFtDE+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=595532a766b4bf62401f0567a607e85ed0f548fc commit 595532a766b4bf62401f0567a607e85ed0f548fc Author: Edward Tomasz Napierala AuthorDate: 2022-01-09 10:03:44 +0000 Commit: Edward Tomasz Napierala CommitDate: 2022-01-09 10:05:05 +0000 linux: More man page tweaks Mention debootstrap(8) and improve the wording. Reviewed By: debdrup, emaste, Pau Amma Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D33772 --- share/man/man4/linux.4 | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/share/man/man4/linux.4 b/share/man/man4/linux.4 index b24e3dbc9f79..6054ae1aa455 100644 --- a/share/man/man4/linux.4 +++ b/share/man/man4/linux.4 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd January 2, 2022 +.Dd January 9, 2022 .Dt LINUX 4 .Os .Sh NAME @@ -39,8 +39,8 @@ linux_enable="YES" .Sh DESCRIPTION The .Nm -module provides limited Linux ABI (application binary interface) compatibility, -making it possible to run many unmodified Linux applications +kernel module provides limited Linux ABI (application binary interface) +compatibility, making it possible to run many unmodified Linux applications without the need for virtualization or emulation. Some of the facilities provided are: .Bl -bullet @@ -75,11 +75,13 @@ file systems. .Pp To install Linux shared libraries and system files into .Pa /compat/linux , -use the +either use the .Pa emulators/linux_base-c7 -port or the -.Dv linux_base-c7 -package. +port or package, +or +.Xr debootstrap 8 +installed from +.Pa sysutils/debootstrap . .Pp To avoid mounting Linux-specific filesystems at startup, add the following line to the @@ -132,18 +134,17 @@ From a user perspective, this makes work for Linux executables. Defaults to 0. .It Va compat.linux.setid_allowed -Disable handling of set-user-ID and set-group-ID mode bits for the new +Enable handling of set-user-ID and set-group-ID mode bits for the new process image file when image is to be executed under Linux ABI. -When set, new Linux images always use credentials of the program +When set to 0, new Linux images always use credentials of the program that issued the .Xr execve 2 call, regardless of the image file mode. -Defaults to 1. -.Pp This might be reasonable or even required, because .Fx -does not emulate Linux environment completely, and missed features -could become holes. +does not emulate the Linux environment completely, and missed features +may result in security vulnerabilities. +Defaults to 1. .El .Sh FILES .Bl -tag -width /compat/linux/dev/shm -compact @@ -176,7 +177,7 @@ Linux kernel objects file system, see .Xr linsysfs 5 , .Xr tmpfs 5 .Sh HISTORY -Linux ABI support first appeared in +Linux ABI support first appeared for i386 in .Fx 2.1 . Support for amd64 binaries first appeared in .Fx 10.3 .