From 06944ec625ba3b546d7e99da235dca3a19b0aa00 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 25 Jun 2019 16:15:59 -0700 Subject: usb: Arm seccomp policy needs _llseek, not lseek Since our Arm version is a 32-bit process, it uses the _llseek syscall rather than lseek for 64-bit file offset support. Fix the seccomp filter to match. Fixes a SIGSYS when attaching a USB device to Linux VM on Arm. BUG=None TEST=Attach USB device to kevin; verify device in `adb devices` Change-Id: Ia46e60df17950bfbe967c4730c62ddb26fb6faa7 Signed-off-by: Daniel Verkamp Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1677318 Tested-by: kokoro Reviewed-by: Dylan Reid --- seccomp/arm/xhci.policy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'seccomp') diff --git a/seccomp/arm/xhci.policy b/seccomp/arm/xhci.policy index 4fca144..34c0b40 100644 --- a/seccomp/arm/xhci.policy +++ b/seccomp/arm/xhci.policy @@ -44,4 +44,4 @@ sigaltstack: 1 recvmsg: 1 getrandom: 1 getdents: 1 -lseek: 1 +_llseek: 1 -- cgit 1.4.1