From nobody Mon Oct 07 19:40:28 2024 X-Original-To: dev-commits-src-main@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 4XMqHw46Vjz5YMRC; Mon, 07 Oct 2024 19:40:28 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XMqHw3LtMz4x2D; Mon, 7 Oct 2024 19:40:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728330028; 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=mm21lqNXQ1wK3GvQEiq0aXMPK7u4zrHHSV4GYhUQkpU=; b=qidleLmUmvNNPti5tcU2UhVTRt7mb0O1/pv1VskhIVL8yM9i/CsxQHv0fAiI21AXSw63n8 +tg2+D13RYkmowzLgO/iTYIL+1fq9jgrd7pRTCwwfPPGa5UXDKLWHeZtJnZuWq4oPcYKPp dJgkyxjr0aESDL6XFm5swDZIJcnuZPBB24RiRVeeV2ni4kZXvPDxA6QGKnp5UIqpDGizz+ 0sErEWx0/Zc4xMHaLcxB52hxkJWCgw39HzXGAgJN0Eh9qcs8aEGn/w41H2GGRQnuaNNB1n Cr2uYC2kEzmS2NbQz6FeAmFljazTF3gDgWU5j+5UifwZ+MDSjvH9XrlIfSk5Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728330028; 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=mm21lqNXQ1wK3GvQEiq0aXMPK7u4zrHHSV4GYhUQkpU=; b=g5JWUiY8S7kHwBG/E0FFsTuI9AUw4kZp375m0QdcXeYXUF+cI7uKQvP6/alLxWoArIQ+h2 rMLXL7T6vB5HcBEtUOl/vEt3d+SyAtJntdWZ9Xp0Np1g42lcXWLdHx3TGe+8AJmIDkEw3D Sp8iB8VS2wq5lagimvtCWxAWH35OkCdir4t0CqHYwchKsB7OBB9CwB2X12nH8YIYvd4ayB c252/psGEuKFBQiP5OFS+FwbksIthZecuTSviaf1ql5xEiRAPPcwcgG6cXNSU6NMNnUAFK rpxb4LPv8oy5x33uvbGMjMl9Hq57wIlo/k3rFw3w25U7BL86dw3FsFZ2BsoQuw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728330028; a=rsa-sha256; cv=none; b=ftTv0q1H0Zp0MRCyIXv33kDT7JtGguF4LEDczLHuvIBqVg75vukl0HnETcEZQhgdxukIa/ ZP1ND1mrDbt2x3GfQJfxmy+abBVUGyMsG+QVg8upiVTOWvIhVMQ2hZjDBL905qnstcmfeG nYX6zwRZ6bIqANLL0hl9N9HThKpeh1e92bhyfLyVz8ogLiLn+7W5IsNlrfdAZFAfLubBoq a8jk60BnNSREyPpHGi3Y+2I3lnY21GU6vk3fmA+gy7uN5mMTxP632s5Q65lOp0eViVl1tD mfVyZCX+uYbJXiosBWZwtifSMCc3QCMWbUyyRWf+S3fYnfjqx7Vfjg8RJ5HGpg== 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 4XMqHw2rcWzytY; Mon, 7 Oct 2024 19:40:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 497JeSju085573; Mon, 7 Oct 2024 19:40:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 497JeSdA085570; Mon, 7 Oct 2024 19:40:28 GMT (envelope-from git) Date: Mon, 7 Oct 2024 19:40:28 GMT Message-Id: <202410071940.497JeSdA085570@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: 6684779b3215 - main - capsicum-test: rights are propagated on accept(2) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: 6684779b321590c71f162390bcf28feee2a3b967 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=6684779b321590c71f162390bcf28feee2a3b967 commit 6684779b321590c71f162390bcf28feee2a3b967 Author: Ed Maste AuthorDate: 2024-10-07 18:26:58 +0000 Commit: Ed Maste CommitDate: 2024-10-07 19:40:06 +0000 capsicum-test: rights are propagated on accept(2) As of commit 85b0f9de11c3 ("capsicum: propagate rights on accept(2)") a capability is generated from accept(cap_fd,...). Enable the corresponding test code. PR: 201052 Reviewed by: oshogbo Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46994 --- contrib/capsicum-test/capsicum-freebsd.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/contrib/capsicum-test/capsicum-freebsd.h b/contrib/capsicum-test/capsicum-freebsd.h index 96ceb9b6d5f1..da7bb38f073b 100644 --- a/contrib/capsicum-test/capsicum-freebsd.h +++ b/contrib/capsicum-test/capsicum-freebsd.h @@ -59,10 +59,9 @@ typedef unsigned long cap_ioctl_t; // Too many links #define E_TOO_MANY_LINKS EMLINK -// TODO(FreeBSD): uncomment if/when FreeBSD propagates rights on accept. -// FreeBSD does not generate a capability from accept(cap_fd,...). -// https://bugs.freebsd.org/201052 -// #define CAP_FROM_ACCEPT +// As of commit 85b0f9de11c3 ("capsicum: propagate rights on accept(2)") +// FreeBSD generates a capability from accept(cap_fd,...). +#define CAP_FROM_ACCEPT // TODO(FreeBSD): uncomment if/when FreeBSD propagates rights on sctp_peeloff. // FreeBSD does not generate a capability from sctp_peeloff(cap_fd,...). // https://bugs.freebsd.org/201052