From nobody Fri Feb 18 15:10:29 2022 X-Original-To: dev-commits-src-branches@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 8636819DBDD1; Fri, 18 Feb 2022 15:10:30 +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 4K0ZrP6sHnz3KNd; Fri, 18 Feb 2022 15:10:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645197030; 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=5wxT/zlKOWoQf6QPgnqlkONOH4KKA96OQatmZ136V14=; b=ZM/6Ix1+oQ5LBPvDWlHU8/htzAKi806JdyeS60X9uelV+1xj1g4w1VAS5qZin+M25yiy7R KQJK8/dy8JgaqHH89vczG/qbNXN1jWXCvf+38PRB/RK8Rg80jekjW3lFhQz8ltnFiSRZ2F 5GqSNE3IozacQ/kj6P7ZpvgYIrWOM7Ja4kyVGnO1gsCsd1t6UNEYdgFP/EbvDyJyWercp9 4CZktffWCIqos8uobGbb33jgF0eCVH9xBmNEmaukJAX69gR6X/z9Kgq2TZz/a0O4LXqFQI oGJzGUCAtuB/1SV8MpzU8fuxY6vQwCi0993T6CuUo5X7UjlWLabPPPT5gZbRiQ== 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 ADE181F8CC; Fri, 18 Feb 2022 15:10:29 +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 21IFATis000695; Fri, 18 Feb 2022 15:10:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21IFATY6000694; Fri, 18 Feb 2022 15:10:29 GMT (envelope-from git) Date: Fri, 18 Feb 2022 15:10:29 GMT Message-Id: <202202181510.21IFATY6000694@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Edward Tomasz Napierala Subject: git: f89309617e10 - stable/13 - linux: More man page tweaks List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: f89309617e10cf9b460c76cbe724d82817573653 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645197030; 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=5wxT/zlKOWoQf6QPgnqlkONOH4KKA96OQatmZ136V14=; b=uq5czzHGdwPGjk148jvgUbOMbNlsq58O7oE09/yxtVto2Mf1vbsWrwWWoN2I7wWnRn0CuF IkjNUTn3k4P9XZKPFbX4FfSU8ZWaPn4It5tmL+6oyE5XFzPkCaT0RouqlbgwtE2bRA6Bog 3XyzHiI85lvG6hNFCJhG3dp5aoH9uhYvuVRxNzz9OEFyjL5uq6d6i6JOWH6ULBa5FIy+Y2 N2RFU0qNGxSAtA5SPORwxB41RK7mn1z+ixv4pTQmn/K/dii3xdaugOE1W8KO154kjpmJCh TlTWx6/bskrN4j1+06suHmcL+X87FhGB9tZULakWIbak0VJ3Sm0Wl1WhEQPiAQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645197030; a=rsa-sha256; cv=none; b=vb6o8pmyT+HPJfLVOPdkkRsQXCGP5N1zed2zoIqVvzda/5b8+9Pn2TqzXpKoMpXUFB3XwI Z+e5JJoeJ3TqGDmINfMlSPdeQmQtlvIl8Lw49/AFID7Es6uErc7R+JIjMLw2/p2GVnQmZ/ 2Z5Ss3hzhp7Rtw5KWVjbi1+qy/BypsHUTSDPw7idAOMtJ3UW41srXpkrYL1JAwAu4mZSmn gZHv8eGnoaN3xRFZts4IEaYWjyagZmVMmVZHff8RPBp1X8NVMylwC6n+49HSgM6/FU0MG/ MCiPqD5APcADG9McjpfqogWUVAfffcmW/d4nW6LDIwmgmWz8ut/IQcrZZLgL7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=f89309617e10cf9b460c76cbe724d82817573653 commit f89309617e10cf9b460c76cbe724d82817573653 Author: Edward Tomasz Napierala AuthorDate: 2022-01-09 10:03:44 +0000 Commit: Edward Tomasz Napierala CommitDate: 2022-02-14 19:35:10 +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 (cherry picked from commit 595532a766b4bf62401f0567a607e85ed0f548fc) --- 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 .