pkg/host: fix kallsyms names again

Some x86 syscalls now seem to be __x64_ and __ia32_ instead of sys_ or ksys_.
This commit is contained in:
Dmitry Vyukov 2018-04-19 16:58:24 +02:00
parent 3642839c10
commit 81daaca980

View File

@ -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, ""