From b655d91b8cb3b60be16c940d7bf4b192c2624a7b Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Wed, 4 Mar 2020 16:46:46 +0100 Subject: sys/openbsd: prevent killing the ssh VM connection This is one of the root causes of the 'no output from test machine' panic. Issuing a DIOCKILLSTATES ioctl on a /dev/pf file descriptor will cause state associated with ongoing connections to be purged; effectively killing the ssh connection to the VM. Including net/pfvar.h is necessary in order to make use of the DIOCKILLSTATES define. --- sys/openbsd/init_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/openbsd/init_test.go') diff --git a/sys/openbsd/init_test.go b/sys/openbsd/init_test.go index fa6ffcb94..39e93a688 100644 --- a/sys/openbsd/init_test.go +++ b/sys/openbsd/init_test.go @@ -29,6 +29,10 @@ func TestSanitizeCall(t *testing.T) { `fchflags(0x0, 0x60004)`, `fchflags(0x0, 0x0)`, }, + { + `ioctl$BIOCSDIRFILT(0x0, 0xc0e04429, 0x0)`, + `ioctl$BIOCSDIRFILT(0x0, 0x0, 0x0)`, + }, { // major=22, minor=232 `mknodat(0x0, 0x0, 0x0, 0x16e8)`, -- cgit mrf-deployment