git: a8458496b4d9 - stable/14 - capsicum-test: include SCTP tests
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 11 Oct 2024 15:26:19 UTC
The branch stable/14 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=a8458496b4d98962ca194e93b039dba172d7753d
commit a8458496b4d98962ca194e93b039dba172d7753d
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-10-07 19:18:33 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-10-11 15:24:55 +0000
capsicum-test: include SCTP tests
HAVE_SCTP is #defined in syscalls.h, so move the #ifdef after the
inclusion of the header that #defines it.
Issue https://github.com/google/capsicum-test/issues/60 is open upstream
in case a slightly different version is needed for Linux.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46995
(cherry picked from commit e4550c9aa06af54d066c794f1da14f7c91bb5bc0)
---
contrib/capsicum-test/sctp.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/capsicum-test/sctp.cc b/contrib/capsicum-test/sctp.cc
index 76302059fa19..c8c642454a80 100644
--- a/contrib/capsicum-test/sctp.cc
+++ b/contrib/capsicum-test/sctp.cc
@@ -1,6 +1,5 @@
// Tests of SCTP functionality
// Requires: libsctp-dev package on Debian Linux, CONFIG_IP_SCTP in kernel config
-#ifdef HAVE_SCTP
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -12,6 +11,7 @@
#include "capsicum.h"
#include "capsicum-test.h"
+#ifdef HAVE_SCTP
static cap_rights_t r_ro;
static cap_rights_t r_wo;
static cap_rights_t r_rw;