aboutsummaryrefslogtreecommitdiffstats
path: root/sys/openbsd/init_test.go
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2020-03-04 16:46:46 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-03-05 09:14:28 +0100
commitb655d91b8cb3b60be16c940d7bf4b192c2624a7b (patch)
tree106c7619ff6e501845f4da6538458170c74cd000 /sys/openbsd/init_test.go
parent576fb9bc341530127b33f5c588a305f085f39a4f (diff)
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.
Diffstat (limited to 'sys/openbsd/init_test.go')
-rw-r--r--sys/openbsd/init_test.go4
1 files changed, 4 insertions, 0 deletions
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
@@ -30,6 +30,10 @@ func TestSanitizeCall(t *testing.T) {
`fchflags(0x0, 0x0)`,
},
{
+ `ioctl$BIOCSDIRFILT(0x0, 0xc0e04429, 0x0)`,
+ `ioctl$BIOCSDIRFILT(0x0, 0x0, 0x0)`,
+ },
+ {
// major=22, minor=232
`mknodat(0x0, 0x0, 0x0, 0x16e8)`,
`mknodat(0x0, 0x0, 0x0, 0x202)`,