diff options
author | Daniel Verkamp <dverkamp@chromium.org> | 2019-06-25 16:15:59 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-06-27 17:07:01 +0000 |
commit | 06944ec625ba3b546d7e99da235dca3a19b0aa00 (patch) | |
tree | 1e80f927cc13daf42a3a2c578f0d7e13201c22f5 | |
parent | 76199b4a054fa888badc2a4793040658be54c9ff (diff) | |
download | crosvm-06944ec625ba3b546d7e99da235dca3a19b0aa00.tar crosvm-06944ec625ba3b546d7e99da235dca3a19b0aa00.tar.gz crosvm-06944ec625ba3b546d7e99da235dca3a19b0aa00.tar.bz2 crosvm-06944ec625ba3b546d7e99da235dca3a19b0aa00.tar.lz crosvm-06944ec625ba3b546d7e99da235dca3a19b0aa00.tar.xz crosvm-06944ec625ba3b546d7e99da235dca3a19b0aa00.tar.zst crosvm-06944ec625ba3b546d7e99da235dca3a19b0aa00.zip |
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 <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1677318 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Dylan Reid <dgreid@chromium.org>
-rw-r--r-- | seccomp/arm/xhci.policy | 2 |
1 files changed, 1 insertions, 1 deletions
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 |