diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-04-19 16:58:24 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-04-19 16:58:24 +0200 |
| commit | 81daaca9803a50d7396e0dbfd7ecdebac7b48f7f (patch) | |
| tree | 87e729552e63c3d2642b0d13ba89cb8e12803234 /pkg/host/host_linux.go | |
| parent | 3642839c105d2c84160c10866805f903a22fa343 (diff) | |
pkg/host: fix kallsyms names again
Some x86 syscalls now seem to be __x64_ and __ia32_ instead of sys_ or ksys_.
Diffstat (limited to 'pkg/host/host_linux.go')
| -rw-r--r-- | pkg/host/host_linux.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/host/host_linux.go b/pkg/host/host_linux.go index 64c87d295..c76b044ff 100644 --- a/pkg/host/host_linux.go +++ b/pkg/host/host_linux.go @@ -47,7 +47,9 @@ func isSupported(c *prog.Syscall, sandbox string) (bool, string) { name = newname } if !bytes.Contains(kallsyms, []byte(" T sys_"+name+"\n")) && - !bytes.Contains(kallsyms, []byte(" T ksys_"+name+"\n")) { + !bytes.Contains(kallsyms, []byte(" T ksys_"+name+"\n")) && + !bytes.Contains(kallsyms, []byte(" T __ia32_sys_"+name+"\n")) && + !bytes.Contains(kallsyms, []byte(" T __x64_sys_"+name+"\n")) { return false, fmt.Sprintf("sys_%v is not present in /proc/kallsyms", name) } return true, "" |
