From 1a73d75b59bc7159b5faa2e6e8117f1168ec54a8 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Wed, 21 Mar 2018 14:22:00 -0400 Subject: [PATCH] PortconProtocol: Add support for SCTP portcons. --- setools/policyrep/libpolicyrep.pyx | 1 + setools/policyrep/netcontext.pxi | 1 + 2 files changed, 2 insertions(+) diff --git a/setools/policyrep/libpolicyrep.pyx b/setools/policyrep/libpolicyrep.pyx index 6d885c0..91455f8 100644 --- a/setools/policyrep/libpolicyrep.pyx +++ b/setools/policyrep/libpolicyrep.pyx @@ -54,6 +54,7 @@ cdef extern from "": cdef extern from "": cdef int INET6_ADDRSTRLEN cdef int IPPROTO_DCCP + cdef int IPPROTO_SCTP cdef int IPPROTO_TCP cdef int IPPROTO_UDP diff --git a/setools/policyrep/netcontext.pxi b/setools/policyrep/netcontext.pxi index bc01c25..07b9552 100644 --- a/setools/policyrep/netcontext.pxi +++ b/setools/policyrep/netcontext.pxi @@ -186,6 +186,7 @@ class PortconProtocol(PolicyEnum): tcp = IPPROTO_TCP udp = IPPROTO_UDP dccp = IPPROTO_DCCP + sctp = IPPROTO_SCTP cdef class Portcon(Ocontext):