From 6e2ce6613b6875605a6f50a00d33a9f207762be5 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 29 Apr 2018 18:45:45 +0200 Subject: pkg/host: fix syz_mount_image detection Only init admin can mount filesystems with images. --- pkg/host/host_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/host/host_linux.go') diff --git a/pkg/host/host_linux.go b/pkg/host/host_linux.go index 44a872c22..3cd096ba1 100644 --- a/pkg/host/host_linux.go +++ b/pkg/host/host_linux.go @@ -145,7 +145,7 @@ func isSupportedSyzkall(sandbox string, c *prog.Syscall) (bool, string) { syscall.Close(fd) return true, "" case "syz_mount_image": - return onlySandboxNoneOrNamespace(sandbox) + return onlySandboxNone(sandbox) case "syz_read_part_table": return onlySandboxNone(sandbox) } -- cgit mrf-deployment