git: 38518fda66cd - main - capsicum-test: rights are propagated on sctp_peeloff(2)

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Wed, 09 Oct 2024 00:42:12 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=38518fda66cda6c57af0aa655d19c1897c0ab15d

commit 38518fda66cda6c57af0aa655d19c1897c0ab15d
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-10-07 18:28:20 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-10-09 00:41:45 +0000

    capsicum-test: rights are propagated on sctp_peeloff(2)
    
    As of commit 91a9e4e01dab ("capsicum: propagate rights on sctp_peeloff")
    a capability is generated from sctp_peeloff(cap_fd,...).  Enable the
    corresponding test code.
    
    PR:             201052
    Reviewed by:    oshogbo, tuexen
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D47000
---
 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 da7bb38f073b..13fa24a0f722 100644
--- a/contrib/capsicum-test/capsicum-freebsd.h
+++ b/contrib/capsicum-test/capsicum-freebsd.h
@@ -62,10 +62,9 @@ typedef unsigned long cap_ioctl_t;
 // 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
-// #define CAP_FROM_PEELOFF
+// As of commit 91a9e4e01dab ("capsicum: propagate rights on sctp_peeloff")
+// FreeBSD generates a capability from sctp_peeloff(cap_fd,...).
+#define CAP_FROM_PEELOFF
 
 #endif  /* __FreeBSD__ */