From nobody Mon May 13 14:25:36 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 4VdMGT2mN2z5KN0F; Mon, 13 May 2024 14:25:37 +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 4VdMGS6f5qz4YBV; Mon, 13 May 2024 14:25:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715610336; 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=gBifF/8JVYxbIi3b0CHrELUVMk+9CvB00Ms284jTzn8=; b=dVxr/KYWZzhKwW2fonEOcImI/fMWAqJvo0fTfrPXfllvMpbBaSmYRFbkzEZr7vtaSLfJ3x hta8eS8RkADewb5UpGm2k1XapZU+k1hS8WbRt93vwZyvSYewykfQpGNCNA2F6TUbBY+0K+ lgbbVCiLes5yWP36stJuFxXlKf+Umt5DxB9hBwZxko8lyfsqEqymqRdecZO1bDpUovgDur dkf58rfmW2m1+5rjl/PZLnb3MJBjBkbwOHihp/d1zTFCk9589S6r6rUbSOo4QRjoiLyZhT TFUOMor3/GcjwxdL6LDW1Rv3TCFf0x1Xa1zwu2ah4GcaevEuPNbBL43T9mltHQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715610336; a=rsa-sha256; cv=none; b=HyTwepOUHQXcy1cLnTTFpY79uvxF7y5X3rK/BGF18+0GyySKbd1g0joKxS52xdC6a4kxFb p/qzkUrFwZXTP8hqIWFwJ6iFjgX6zxNcbTITuNo3HihSdkdmWOO76o9HyxC/zH4NB1Qc81 oZC7GucEn+DWYbi4tHlqpWFw67+RzMe+ep7+4ogzOlabWaLdy4c+FCDZp3F7W6/8d/GuQF km3ml28g+Jb69ibD2ZR7pAfhOz54zm0tRHA/HtptfaCgCpNmFj2W3gljUMqWn0jYO8Wma9 ETPChgyRtLhIMylY8AJWYgFc0GWT8uyk9Nj7YK6n4SOI8Qsr008hqfIjFi2uSA== 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=1715610336; 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=gBifF/8JVYxbIi3b0CHrELUVMk+9CvB00Ms284jTzn8=; b=Q9unID85UwIAGemWKmBaZMg/0d3K2QRIitdIWmTcfrGG0MxAw+kIP2xGbkOx4RdMf0rA4l X7eRn6Rg98eMyP2jrW3XSvdAZppZfEvu77XlGkn4iUyLZhFjTXTUETm6HqTib/Q/uS3Mnv e8SR/btwrLzeti6FfSNgoFu9Or4SAkWJR+tpkVrswufgoi4YTAWsjs2GWKD72Bas9dduHC FYljPmuXt1jsqM2nmaSh11WgpGXEa8HuNC95mSayhNf+HZLc5BYsAmG1eYRwTDb6PFpI9s 2H7qEHh+n4AaNRYtFlokTTpBCBE/GZgbLkva0zuKutCGuiPvgyc6B9LR1apJVQ== 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 4VdMGS643mzs46; Mon, 13 May 2024 14:25:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44DEPacg019193; Mon, 13 May 2024 14:25:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44DEPax8019190; Mon, 13 May 2024 14:25:36 GMT (envelope-from git) Date: Mon, 13 May 2024 14:25:36 GMT Message-Id: <202405131425.44DEPax8019190@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: 3c05a91910d7 - stable/13 - dlopen(3): mention fdlopen for capsicum(4) 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: 3c05a91910d7ee809f884ca6ed46944bfda260e4 Auto-Submitted: auto-generated The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=3c05a91910d7ee809f884ca6ed46944bfda260e4 commit 3c05a91910d7ee809f884ca6ed46944bfda260e4 Author: Ed Maste AuthorDate: 2024-05-07 01:45:50 +0000 Commit: Ed Maste CommitDate: 2024-05-13 14:24:57 +0000 dlopen(3): mention fdlopen for capsicum(4) Capsicum-sandboxed applications generally cannot use dlopen, as absolute and cwd-relative paths cannot be accessed. Mention that fdlopen is useful for sandboxed applications. PR: 277169 Reviewed by: markj, oshogbo Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D45108 (cherry picked from commit d84fd89ecd404ffbf629381d2dde14fd79b39402) (cherry picked from commit f2109683ce37927d02965fc97e5757761caf89ed) --- lib/libc/gen/dlopen.3 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/libc/gen/dlopen.3 b/lib/libc/gen/dlopen.3 index 94dd1864c126..4719d2733fe5 100644 --- a/lib/libc/gen/dlopen.3 +++ b/lib/libc/gen/dlopen.3 @@ -29,9 +29,7 @@ .\" .\" Copyright (c) 1991 Sun Microsystems, Inc. .\" -.\" @(#) dlopen.3 1.6 90/01/31 SMI -.\" -.Dd May 14, 2020 +.Dd May 7, 2024 .Dt DLOPEN 3 .Os .Sh NAME @@ -201,6 +199,10 @@ The function can be used by the code that needs to perform additional checks on the loaded objects, to prevent races with symlinking or renames. +Applications sandboxed using +.Xr capsicum 4 +can also make beneficial use of +.Fn fdlopen . .Pp The .Fn dlsym