From nobody Tue May 07 13:10:06 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 4VYdt66bW9z5Kndf; Tue, 07 May 2024 13:10:06 +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 4VYdt666MCz44rf; Tue, 7 May 2024 13:10:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715087406; 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=gOqty6BScfnqBKDiinBzWsgQyWrnNOSuh9KNLy2krfc=; b=L3V15C+3RiFD93FoJ/dY5Bi5a1MwWzEUopZ5VVZWwS+vw9dzlLnaewF0PlIBUxqGrW+MOe CO8kzbWQWNdax5Rniwauf8ZWmqR2e1xQ/iN/zxVHw0cTIjdVXXgllmy5YfECkAlMbZr7ci duvE9v3XN0xHZaAacVLA7fbY2pd4ZBr+AIUPrkwEMnnuc09CmKx3ugdaRcJpSXGcvvQTmp fNkah3XeSGZEszaGKPnhxdP2/myw6jdLum9ll9+EYuPjJ9PlJGucUZS8OmFlSmgWH91UC1 hbWi0zMyNiteCR4oTjd8Ptq0AXzADHF54H++L5BJNHF8lznHbtqiADIdi3w2rQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715087406; a=rsa-sha256; cv=none; b=xVuyWxZMKjJyZON14ulyo5IdBOhHwLx19637hguf5jh/AMd8j2FUsvizcgcUDDyUEKESJM P1VXJNsG9iDbGDES8f6gvCyYtuFA9DvFMbP3biCt4m/+eC4KYmk9oz4+EBsQFymop+tHe7 HUtki7VHU7/eIzn9bKXOpZvbVSlf42UbbTCyH4NyDV9DackWJlFpgkn6Et/ZJaCTFw+HRs x+ttOzg2JsCZ2szLSEVAcngRvInemX5LmPZBWEk5jcwdxToRSwcTiQz8UnLPsu6uXyksxb jCsqd3XdlV5GVCVIeHHzMTixhh9mTRRMGS/8UAIzrGJfNjUVZ8Bhtk0vTh4aUQ== 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=1715087406; 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=gOqty6BScfnqBKDiinBzWsgQyWrnNOSuh9KNLy2krfc=; b=fbQTBUePIy3CucIxgh9JqBXmdH9PT+qZq3tuQXq5P0gI2hyhSt0ssRxcxkbAPbSoNF4GQU m4Ks6CDBc0OT29aEs097h8VmXUF8e7qs2fp1P6M7vzWCrBYtbnSUH0YA9zI3z7U66Hn1LN fH/NxkqDvrPoJDO1Fr+5XbBRMNB3kqoNiFaYyvlwW9jilDKEleDa+d77BhliLWY7486sM/ hwMmOJ1KZMwFp3x8/f5OPyQN5/zkvRjXfvYvvZIHfEgT1Na3WVRqpABkd8SNdoEmJhdsj9 C4suqu9B43SDCnMw/04ofByaM9c0JGFseH+Cbp20h5lON7Dj8fDOs0iwq8l47g== 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 4VYdt65XH2zjd4; Tue, 7 May 2024 13:10:06 +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 447DA6HP047922; Tue, 7 May 2024 13:10:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 447DA6qH047918; Tue, 7 May 2024 13:10:06 GMT (envelope-from git) Date: Tue, 7 May 2024 13:10:06 GMT Message-Id: <202405071310.447DA6qH047918@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: d84fd89ecd40 - main - 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/main X-Git-Reftype: branch X-Git-Commit: d84fd89ecd404ffbf629381d2dde14fd79b39402 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=d84fd89ecd404ffbf629381d2dde14fd79b39402 commit d84fd89ecd404ffbf629381d2dde14fd79b39402 Author: Ed Maste AuthorDate: 2024-05-07 01:45:50 +0000 Commit: Ed Maste CommitDate: 2024-05-07 13:09:59 +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 --- lib/libc/gen/dlopen.3 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/libc/gen/dlopen.3 b/lib/libc/gen/dlopen.3 index 9871029a84b5..340545114114 100644 --- a/lib/libc/gen/dlopen.3 +++ b/lib/libc/gen/dlopen.3 @@ -29,7 +29,7 @@ .\" .\" Copyright (c) 1991 Sun Microsystems, Inc. .\" -.Dd May 14, 2020 +.Dd May 7, 2024 .Dt DLOPEN 3 .Os .Sh NAME @@ -199,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