From 2675f920652cc9218b4b3dc513c76b0546a5a5ae Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 22 Mar 2018 13:24:02 +0100 Subject: sys/linux: add cgroup descriptions --- 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 d72a27c9e..12f901ec8 100644 --- a/pkg/host/host_linux.go +++ b/pkg/host/host_linux.go @@ -155,7 +155,7 @@ func isSupportedSocket(c *prog.Syscall) bool { func isSupportedOpenAt(c *prog.Syscall) bool { fname, ok := extractStringConst(c.Args[1]) - if !ok { + if !ok || len(fname) == 0 || fname[0] != '/' { return true } fd, err := syscall.Open(fname, syscall.O_RDONLY, 0) -- cgit mrf-deployment