Skip to content

Commit

Permalink
capsicum-test: rights are propagated on sctp_peeloff(2)
Browse files Browse the repository at this point in the history
As of commit 91a9e4e ("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
  • Loading branch information
emaste committed Oct 9, 2024
1 parent 91a9e4e commit 38518fd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions contrib/capsicum-test/capsicum-freebsd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */

Expand Down

0 comments on commit 38518fd

Please sign in to comment.