From 0a60f55c243dad3423730685e8d09ee1eed999df Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 25 May 2022 22:20:33 -0700 Subject: [PATCH] seccomp: arm: allow fstatat for xhci glibc 2.33 uses the fstatat64 syscall to implement statx(), which is called by the USB emulation code when a device is added. Allow it along with fstat64 to fix a crash on USB device insertion. aarch64 and x86_64 use the newfstatat syscall instead, so they do not need to be adjusted. BUG=chromium:1328120 TEST=Attach yubikey to Crostini on kevin Change-Id: I6a592e25126a5baebdbc8839ba11b971950f4575 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3671085 Tested-by: kokoro Reviewed-by: Dmitry Torokhov Commit-Queue: Daniel Verkamp (cherry picked from commit 67927318009002b074062acd9fcadfc4f14272e9) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3690465 Tested-by: Daniel Verkamp --- seccomp/arm/xhci.policy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/seccomp/arm/xhci.policy b/seccomp/arm/xhci.policy index f4a7d14d45..607e92a601 100644 --- a/seccomp/arm/xhci.policy +++ b/seccomp/arm/xhci.policy @@ -35,6 +35,8 @@ statx: 1 # 0x80185520 == USBDEVFS_CONNINFO_EX ioctl: arg1 == 0xc0105500 || arg1 == 0x802c550a || arg1 == 0x8004551a || arg1 == 0x4004550d || arg1 == 0x8004550f || arg1 == 0x80045510 || arg1 == 0x80045515 || arg1 == 0x550b || arg1 == 0x5514 || arg1 == 0x80045505 || arg1 == 0x8108551b || arg1 == 0x40085511 || arg1 == 0x80185520 fstat: 1 +fstat64: 1 +fstatat64: 1 getrandom: 1 getdents: 1 _llseek: 1