summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorMikael Urankar <mikael@FreeBSD.org>2020-06-11 18:30:41 +0000
committerMikael Urankar <mikael@FreeBSD.org>2020-06-11 18:30:41 +0000
commitbfed615a2960b8068768be0985e6097672da1ec1 (patch)
tree9a312773747d1d56563958d16ddfe601afb5abf7 /security
parentsysutils/aptly: fix build on aarch64 (diff)
security/honeytrap: fix build on aarch64
Approved by: portmgr (tier-2 blanket)
Notes
Notes: svn path=/head/; revision=538525
Diffstat (limited to 'security')
-rw-r--r--security/honeytrap/files/patch-vendor_golang.org_x_net_internal_socket_zsys__freebsd__arm64.go63
-rw-r--r--security/honeytrap/files/patch-vendor_golang.org_x_net_ipv4_zsys__freebsd__arm64.go96
-rw-r--r--security/honeytrap/files/patch-vendor_golang.org_x_net_ipv6_zsys__freebsd__arm64.go125
3 files changed, 284 insertions, 0 deletions
diff --git a/security/honeytrap/files/patch-vendor_golang.org_x_net_internal_socket_zsys__freebsd__arm64.go b/security/honeytrap/files/patch-vendor_golang.org_x_net_internal_socket_zsys__freebsd__arm64.go
new file mode 100644
index 000000000000..1abc00eb598c
--- /dev/null
+++ b/security/honeytrap/files/patch-vendor_golang.org_x_net_internal_socket_zsys__freebsd__arm64.go
@@ -0,0 +1,63 @@
+--- vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm64.go.orig 2020-06-09 20:01:03 UTC
++++ vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm64.go
+@@ -0,0 +1,60 @@
++// Code generated by cmd/cgo -godefs; DO NOT EDIT.
++// cgo -godefs defs_freebsd.go
++
++package socket
++
++const (
++ sysAF_UNSPEC = 0x0
++ sysAF_INET = 0x2
++ sysAF_INET6 = 0x1c
++ sysSOCK_RAW = 0x3
++)
++
++type iovec struct {
++ Base *byte
++ Len uint64
++}
++
++type msghdr struct {
++ Name *byte
++ Namelen uint32
++ Pad_cgo_0 [4]byte
++ Iov *iovec
++ Iovlen int32
++ Pad_cgo_1 [4]byte
++ Control *byte
++ Controllen uint32
++ Flags int32
++}
++
++type cmsghdr struct {
++ Len uint32
++ Level int32
++ Type int32
++}
++
++type sockaddrInet struct {
++ Len uint8
++ Family uint8
++ Port uint16
++ Addr [4]byte /* in_addr */
++ Zero [8]int8
++}
++
++type sockaddrInet6 struct {
++ Len uint8
++ Family uint8
++ Port uint16
++ Flowinfo uint32
++ Addr [16]byte /* in6_addr */
++ Scope_id uint32
++}
++
++const (
++ sizeofIovec = 0x10
++ sizeofMsghdr = 0x30
++ sizeofCmsghdr = 0xc
++
++ sizeofSockaddrInet = 0x10
++ sizeofSockaddrInet6 = 0x1c
++)
diff --git a/security/honeytrap/files/patch-vendor_golang.org_x_net_ipv4_zsys__freebsd__arm64.go b/security/honeytrap/files/patch-vendor_golang.org_x_net_ipv4_zsys__freebsd__arm64.go
new file mode 100644
index 000000000000..fb9681d998cb
--- /dev/null
+++ b/security/honeytrap/files/patch-vendor_golang.org_x_net_ipv4_zsys__freebsd__arm64.go
@@ -0,0 +1,96 @@
+--- vendor/golang.org/x/net/ipv4/zsys_freebsd_arm64.go.orig 2020-03-30 16:34:45 UTC
++++ vendor/golang.org/x/net/ipv4/zsys_freebsd_arm64.go
+@@ -0,0 +1,93 @@
++// Code generated by cmd/cgo -godefs; DO NOT EDIT.
++// cgo -godefs defs_freebsd.go
++
++package ipv4
++
++const (
++ sysIP_OPTIONS = 0x1
++ sysIP_HDRINCL = 0x2
++ sysIP_TOS = 0x3
++ sysIP_TTL = 0x4
++ sysIP_RECVOPTS = 0x5
++ sysIP_RECVRETOPTS = 0x6
++ sysIP_RECVDSTADDR = 0x7
++ sysIP_SENDSRCADDR = 0x7
++ sysIP_RETOPTS = 0x8
++ sysIP_RECVIF = 0x14
++ sysIP_ONESBCAST = 0x17
++ sysIP_BINDANY = 0x18
++ sysIP_RECVTTL = 0x41
++ sysIP_MINTTL = 0x42
++ sysIP_DONTFRAG = 0x43
++ sysIP_RECVTOS = 0x44
++
++ sysIP_MULTICAST_IF = 0x9
++ sysIP_MULTICAST_TTL = 0xa
++ sysIP_MULTICAST_LOOP = 0xb
++ sysIP_ADD_MEMBERSHIP = 0xc
++ sysIP_DROP_MEMBERSHIP = 0xd
++ sysIP_MULTICAST_VIF = 0xe
++ sysIP_ADD_SOURCE_MEMBERSHIP = 0x46
++ sysIP_DROP_SOURCE_MEMBERSHIP = 0x47
++ sysIP_BLOCK_SOURCE = 0x48
++ sysIP_UNBLOCK_SOURCE = 0x49
++ sysMCAST_JOIN_GROUP = 0x50
++ sysMCAST_LEAVE_GROUP = 0x51
++ sysMCAST_JOIN_SOURCE_GROUP = 0x52
++ sysMCAST_LEAVE_SOURCE_GROUP = 0x53
++ sysMCAST_BLOCK_SOURCE = 0x54
++ sysMCAST_UNBLOCK_SOURCE = 0x55
++
++ sizeofSockaddrStorage = 0x80
++ sizeofSockaddrInet = 0x10
++
++ sizeofIPMreq = 0x8
++ sizeofIPMreqn = 0xc
++ sizeofIPMreqSource = 0xc
++ sizeofGroupReq = 0x88
++ sizeofGroupSourceReq = 0x108
++)
++
++type sockaddrStorage struct {
++ Len uint8
++ Family uint8
++ X__ss_pad1 [6]uint8
++ X__ss_align int64
++ X__ss_pad2 [112]uint8
++}
++
++type sockaddrInet struct {
++ Len uint8
++ Family uint8
++ Port uint16
++ Addr [4]byte /* in_addr */
++ Zero [8]uint8
++}
++
++type ipMreq struct {
++ Multiaddr [4]byte /* in_addr */
++ Interface [4]byte /* in_addr */
++}
++
++type ipMreqn struct {
++ Multiaddr [4]byte /* in_addr */
++ Address [4]byte /* in_addr */
++ Ifindex int32
++}
++
++type ipMreqSource struct {
++ Multiaddr [4]byte /* in_addr */
++ Sourceaddr [4]byte /* in_addr */
++ Interface [4]byte /* in_addr */
++}
++
++type groupReq struct {
++ Interface uint32
++ Group sockaddrStorage
++}
++
++type groupSourceReq struct {
++ Interface uint32
++ Group sockaddrStorage
++ Source sockaddrStorage
++}
diff --git a/security/honeytrap/files/patch-vendor_golang.org_x_net_ipv6_zsys__freebsd__arm64.go b/security/honeytrap/files/patch-vendor_golang.org_x_net_ipv6_zsys__freebsd__arm64.go
new file mode 100644
index 000000000000..c7ed963fe175
--- /dev/null
+++ b/security/honeytrap/files/patch-vendor_golang.org_x_net_ipv6_zsys__freebsd__arm64.go
@@ -0,0 +1,125 @@
+--- vendor/golang.org/x/net/ipv6/zsys_freebsd_arm64.go.orig 2020-03-30 16:34:37 UTC
++++ vendor/golang.org/x/net/ipv6/zsys_freebsd_arm64.go
+@@ -0,0 +1,122 @@
++// Code generated by cmd/cgo -godefs; DO NOT EDIT.
++// cgo -godefs defs_freebsd.go
++
++package ipv6
++
++const (
++ sysIPV6_UNICAST_HOPS = 0x4
++ sysIPV6_MULTICAST_IF = 0x9
++ sysIPV6_MULTICAST_HOPS = 0xa
++ sysIPV6_MULTICAST_LOOP = 0xb
++ sysIPV6_JOIN_GROUP = 0xc
++ sysIPV6_LEAVE_GROUP = 0xd
++ sysIPV6_PORTRANGE = 0xe
++ sysICMP6_FILTER = 0x12
++
++ sysIPV6_CHECKSUM = 0x1a
++ sysIPV6_V6ONLY = 0x1b
++
++ sysIPV6_IPSEC_POLICY = 0x1c
++
++ sysIPV6_RTHDRDSTOPTS = 0x23
++
++ sysIPV6_RECVPKTINFO = 0x24
++ sysIPV6_RECVHOPLIMIT = 0x25
++ sysIPV6_RECVRTHDR = 0x26
++ sysIPV6_RECVHOPOPTS = 0x27
++ sysIPV6_RECVDSTOPTS = 0x28
++
++ sysIPV6_USE_MIN_MTU = 0x2a
++ sysIPV6_RECVPATHMTU = 0x2b
++
++ sysIPV6_PATHMTU = 0x2c
++
++ sysIPV6_PKTINFO = 0x2e
++ sysIPV6_HOPLIMIT = 0x2f
++ sysIPV6_NEXTHOP = 0x30
++ sysIPV6_HOPOPTS = 0x31
++ sysIPV6_DSTOPTS = 0x32
++ sysIPV6_RTHDR = 0x33
++
++ sysIPV6_RECVTCLASS = 0x39
++
++ sysIPV6_AUTOFLOWLABEL = 0x3b
++
++ sysIPV6_TCLASS = 0x3d
++ sysIPV6_DONTFRAG = 0x3e
++
++ sysIPV6_PREFER_TEMPADDR = 0x3f
++
++ sysIPV6_BINDANY = 0x40
++
++ sysIPV6_MSFILTER = 0x4a
++
++ sysMCAST_JOIN_GROUP = 0x50
++ sysMCAST_LEAVE_GROUP = 0x51
++ sysMCAST_JOIN_SOURCE_GROUP = 0x52
++ sysMCAST_LEAVE_SOURCE_GROUP = 0x53
++ sysMCAST_BLOCK_SOURCE = 0x54
++ sysMCAST_UNBLOCK_SOURCE = 0x55
++
++ sysIPV6_PORTRANGE_DEFAULT = 0x0
++ sysIPV6_PORTRANGE_HIGH = 0x1
++ sysIPV6_PORTRANGE_LOW = 0x2
++
++ sizeofSockaddrStorage = 0x80
++ sizeofSockaddrInet6 = 0x1c
++ sizeofInet6Pktinfo = 0x14
++ sizeofIPv6Mtuinfo = 0x20
++
++ sizeofIPv6Mreq = 0x14
++ sizeofGroupReq = 0x88
++ sizeofGroupSourceReq = 0x108
++
++ sizeofICMPv6Filter = 0x20
++)
++
++type sockaddrStorage struct {
++ Len uint8
++ Family uint8
++ X__ss_pad1 [6]uint8
++ X__ss_align int64
++ X__ss_pad2 [112]uint8
++}
++
++type sockaddrInet6 struct {
++ Len uint8
++ Family uint8
++ Port uint16
++ Flowinfo uint32
++ Addr [16]byte /* in6_addr */
++ Scope_id uint32
++}
++
++type inet6Pktinfo struct {
++ Addr [16]byte /* in6_addr */
++ Ifindex uint32
++}
++
++type ipv6Mtuinfo struct {
++ Addr sockaddrInet6
++ Mtu uint32
++}
++
++type ipv6Mreq struct {
++ Multiaddr [16]byte /* in6_addr */
++ Interface uint32
++}
++
++type groupReq struct {
++ Interface uint32
++ Group sockaddrStorage
++}
++
++type groupSourceReq struct {
++ Interface uint32
++ Group sockaddrStorage
++ Source sockaddrStorage
++}
++
++type icmpv6Filter struct {
++ Filt [8]uint32
++}