aboutsummaryrefslogtreecommitdiff
path: root/krb5/plugins/preauth/test/Makefile
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2025-11-19 16:02:21 +0000
committerMark Johnston <markj@FreeBSD.org>2025-11-19 16:02:21 +0000
commit0e62ebd20172f67283bac9526c2aaeaffeb41b45 (patch)
tree954df966c89fdcd7b7da4d2ddeb1ca3e823f13c8 /krb5/plugins/preauth/test/Makefile
parente22cc773f1a926fed3558c51bf0dd7890af26a2b (diff)
bhyve: Move the slirp backend out into a separate processHEADmain
The previous implementation implemented hostfwd rules which would allow the host to connect to the guest via a NATed TCP connection. libslirp also permits NAT in the other direction, but this was prevented by bhyve's capsicum sandbox. To make the slirp backend more useful, split the backend out into a separate process which does not enter capability mode if outbound connections are permitted (enabled by setting the new "open" keyword). The process communicates with the bhyve network frontend (typically a virtio network interface) using a unix SOCK_SEQPACKET socket pair. If the bhyve process exits, the helper will automatically exit. Aside from this restructuring, there is not much actual change. Many slirp parameters are still hard-coded for now, though this may change. The "restricted" feature is toggled by the new "open" keyword; in particular, the backend is restricted by default for compatibility with 15.0 and 14.3. Each packet now has to traverse an extra socket, but this overhead should be acceptable given that the slirp backend cannot be said to provide high-performance networking. With iperf3 I can get 4Gbps from the guest to the host on a Zen 4 system. MFC after: 1 month Sponsored by: CHERI Research Centre (EPSRC grant UKRI3001) Differential Revision: https://reviews.freebsd.org/D53454
Diffstat (limited to 'krb5/plugins/preauth/test/Makefile')
0 files changed, 0 insertions, 0 deletions