aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/host_linux.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-08-02 16:55:29 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-08-02 16:57:32 +0200
commit5cbdd9f4445514cbacadc362c2891e40b7f36072 (patch)
tree6c46fa812fba9dbf71819bed15669363f5fab8e6 /pkg/host/host_linux.go
parent88d4a8fc562c4fe8f975446854358c99c4c876d1 (diff)
gometalinter: strengthen gocyclo limit
Strengthen gocycle limit 35->24! Yay! No more jumbo functions! Fixes #538
Diffstat (limited to 'pkg/host/host_linux.go')
-rw-r--r--pkg/host/host_linux.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/host/host_linux.go b/pkg/host/host_linux.go
index 6d7c9c516..16be1d578 100644
--- a/pkg/host/host_linux.go
+++ b/pkg/host/host_linux.go
@@ -122,6 +122,10 @@ var (
filesystemsOnce sync.Once
)
+// The function is lengthy as it handles all pseudo-syscalls,
+// but it does not seem to cause comprehension problems as there is no shared state.
+// Splitting this per-syscall will only increase code size.
+// nolint: gocyclo
func isSupportedSyzkall(sandbox string, c *prog.Syscall) (bool, string) {
switch c.CallName {
case "syz_open_dev":