diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-03-22 13:24:02 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-03-25 12:46:05 +0200 |
| commit | 2675f920652cc9218b4b3dc513c76b0546a5a5ae (patch) | |
| tree | 8ae9084acf230839d4b7f2eeef2ba4549ee8d35d /pkg/host/host_linux.go | |
| parent | 2e9d905410db5615d2e7d3418979d79249ac74f6 (diff) | |
sys/linux: add cgroup descriptions
Diffstat (limited to 'pkg/host/host_linux.go')
| -rw-r--r-- | pkg/host/host_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
