From nobody Mon May 13 14:24:29 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 4VdMFC3T2Fz5KMgw; Mon, 13 May 2024 14:24:31 +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 4VdMFB0Jq9z4X23; Mon, 13 May 2024 14:24:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715610270; 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=mUwESccMgeG1XXIHYPVUioP3vmeowWTDbZkcvHovosU=; b=virnLnnPL07qxMY5vvdQsZ6uEBbjJlFyxtGaEBO47pQplkPPwMc+kEJkQ+sN2l6Uw1e4Mw ZdoFTUbg/RxeHBvznNtI5NwfkCqaoP/VzE6Q+Cp7Riba1yBr0H1s1sAwfZcjxGCS8vDaFQ JLtPMwsBe43o97Alu50aYs2gniVSwY2NCr2i7EFGkRPbVoZ5W/Oio0vUuWd51dJibkTL8e cXBXf2EbzVBjRizU25VjM2bqprTt4tiQqd2uyWDlFR0YRfs15MXyX7i+aqb1awXNsjoL5o U2Az7VizsiQkfoLLSJKxNIocmjbBCrGV6UDCANP5ySz2nJ5vQlaN3H7Pmpul0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715610270; a=rsa-sha256; cv=none; b=yvenMmoTHGot0d+qCmbWyNcM2JlXu6J/aWocCu9pyh81m2Yf1sz6TgS4Cfp03OwXEtc/e7 a0sEW+6yXfQWgHJnubbLv+fTF/QdQ3pObGSYhvYVyGNeKHuZkKjljTh0aUy+Rn3Z1o2p2F 5U1rEwz5LopAT/DiLnrXBcy55LeMVf9xxj8Vfm9OLny+woZN8eYAgds+q0iNZ0FRWHR4gD f77z6C4vC88dqnGilTI6SpMZtel/GJc1dksHXsBT+DDJY7At9THHcYXu+v7C9l4Zb+FWN0 FmxhRXhA9IfLy9h6M3pyk1D+19BWba4Yrtla082uDjwiEjhKlJqU+Fvk97Dnqg== 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=1715610270; 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=mUwESccMgeG1XXIHYPVUioP3vmeowWTDbZkcvHovosU=; b=x4lLxwNpVSth9ABQ0p9k+S+6OG4BkG1BtiXLUNxRl4EKT/+U7rUg0ZbbplF9URcgLxRYDz KCGc6c+BZfvG7+d+Tbo4juqmdmkNehvAWyQKicmYwT96zDazd9z/+Wc9TOzYkjj9rb1lhd K2LEtpTNDcdFouIytzykyVDKwkaOxX3XUImhiZBrE3R0HWnFwMRtet9nqKBWX4ac3ZUL+G M9uMbYoNCdbH6dEWq9DPcZdjxFaareGvdZO1CSYVcTE3eCzkZVA5Fxmk1m8oYOWDjXPl65 tD1Cx/56A0z86IPVTCDpNk+sm8wj5zx4DOHMfGsbkp8bXk4rAWaqQUEm8y1o8Q== 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 4VdMF96NbGzrsg; Mon, 13 May 2024 14:24:29 +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 44DEOTkQ016626; Mon, 13 May 2024 14:24:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44DEOTGf016623; Mon, 13 May 2024 14:24:29 GMT (envelope-from git) Date: Mon, 13 May 2024 14:24:29 GMT Message-Id: <202405131424.44DEOTGf016623@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: f2109683ce37 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: f2109683ce37927d02965fc97e5757761caf89ed Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=f2109683ce37927d02965fc97e5757761caf89ed commit f2109683ce37927d02965fc97e5757761caf89ed Author: Ed Maste AuthorDate: 2024-05-07 01:45:50 +0000 Commit: Ed Maste CommitDate: 2024-05-13 14:22:34 +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) --- 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 09f37ff2fa93..340545114114 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