mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
seccomp: aarch64: fix USB ioctl struct sizes
The ioctl allow list for the emulated xhci USB controller device was copied from the 32-bit ARM version, but the structure sizes are incorrect for 64-bit aarch64. Update the constants for ioctls that take a structure with a different size: - USBDEVFS_REAPURBNDELAY: struct usbdevfs_urb - USBDEVFS_SUBMITURB: struct usbdevfs_urb - USBDEVFS_CONTROL: struct usbdevfs_ctrltransfer BUG=chromium:1328120 TEST=Share USB device with Crostini on trogdor64 Change-Id: I45d69021257af55cfeaf72dd33a500a358adc5ee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3670055 Reviewed-by: Stephen Boyd <swboyd@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
parent
539ba3dcc9
commit
a6f7cbf5fb
1 changed files with 4 additions and 4 deletions
|
@ -17,20 +17,20 @@ setsockopt: 1
|
|||
bind: 1
|
||||
socket: arg0 == AF_NETLINK
|
||||
# The following ioctls are:
|
||||
# 0x4004550d == USBDEVFS_REAPURBNDELAY32
|
||||
# 0x4008550d == USBDEVFS_REAPURBNDELAY
|
||||
# 0x550b == USBDEVFS_DISCARDURB
|
||||
# 0x8004550f == USBDEVFS_CLAIMINTERFACE
|
||||
# 0x80045510 == USBDEVFS_RELEASEINTERFACE
|
||||
# 0x80045515 == USBDEVFS_CLEAR_HALT
|
||||
# 0x8004551a == USBDEVFS_GET_CAPABILITIES
|
||||
# 0x802c550a == USBDEVFS_SUBMITURB
|
||||
# 0xc0105500 == USBDEVFS_CONTROL
|
||||
# 0x8038550a == USBDEVFS_SUBMITURB
|
||||
# 0xc0185500 == USBDEVFS_CONTROL
|
||||
# 0x5514 == USBDEVFS_RESET
|
||||
# 0x80045505 == USBDEVFS_SETCONFIGURATION
|
||||
# 0x8108551b == USBDEVFS_DISCONNECT_CLAIM
|
||||
# 0x40085511 == USBDEVFS_CONNECTINFO
|
||||
# 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
|
||||
ioctl: arg1 == 0xc0185500 || arg1 == 0x8038550a || arg1 == 0x8004551a || arg1 == 0x4008550d || arg1 == 0x8004550f || arg1 == 0x80045510 || arg1 == 0x80045515 || arg1 == 0x550b || arg1 == 0x5514 || arg1 == 0x80045505 || arg1 == 0x8108551b || arg1 == 0x40085511 || arg1 == 0x80185520
|
||||
fstat: 1
|
||||
getrandom: 1
|
||||
lseek: 1
|
||||
|
|
Loading…
Reference in a new issue