summary refs log tree commit diff
path: root/seccomp/aarch64/xhci.policy
diff options
context:
space:
mode:
authorStephen Boyd <swboyd@chromium.org>2019-12-02 10:28:28 -0800
committerCommit Bot <commit-bot@chromium.org>2019-12-06 19:06:34 +0000
commitcef1079c2058457bc9485fc0f41f5fe1d592e715 (patch)
treebf2425953d87e4253d85fedf6c1cf526668ee0ee /seccomp/aarch64/xhci.policy
parent92a2c49349404b4ba90941e18e8a828beca52390 (diff)
downloadcrosvm-cef1079c2058457bc9485fc0f41f5fe1d592e715.tar
crosvm-cef1079c2058457bc9485fc0f41f5fe1d592e715.tar.gz
crosvm-cef1079c2058457bc9485fc0f41f5fe1d592e715.tar.bz2
crosvm-cef1079c2058457bc9485fc0f41f5fe1d592e715.tar.lz
crosvm-cef1079c2058457bc9485fc0f41f5fe1d592e715.tar.xz
crosvm-cef1079c2058457bc9485fc0f41f5fe1d592e715.tar.zst
crosvm-cef1079c2058457bc9485fc0f41f5fe1d592e715.zip
seccomp: Add initial arm64 seccomp filters
BUG=chromium:1029666
TEST=tast run crostini.LaunchTerminal.download_buster

Change-Id: I8fa7dc9df4d5f0144aed80fcd60307036fc7e16d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1946765
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Tested-by: Stephen Barber <smbarber@chromium.org>
Commit-Queue: Stephen Barber <smbarber@chromium.org>
Diffstat (limited to 'seccomp/aarch64/xhci.policy')
-rw-r--r--seccomp/aarch64/xhci.policy44
1 files changed, 44 insertions, 0 deletions
diff --git a/seccomp/aarch64/xhci.policy b/seccomp/aarch64/xhci.policy
new file mode 100644
index 0000000..7e5b1c7
--- /dev/null
+++ b/seccomp/aarch64/xhci.policy
@@ -0,0 +1,44 @@
+# Copyright 2019 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+openat: 1
+@include /usr/share/policy/crosvm/common_device.policy
+
+statx: 1
+fcntl: 1
+readlinkat: 1
+getdents64: 1
+getrandom: 1
+name_to_handle_at: 1
+faccessat: 1
+gettid: 1
+clock_gettime: 1
+timerfd_create: 1
+getsockname: 1
+pipe2: 1
+setsockopt: 1
+bind: 1
+fcntl: 1
+socket: arg0 == AF_NETLINK
+uname: 1
+# The following ioctls are:
+# 0x4004550d == USBDEVFS_REAPURBNDELAY32
+# 0x550b     == USBDEVFS_DISCARDURB
+# 0x8004550f == USBDEVFS_CLAIMINTERFACE
+# 0x80045510 == USBDEVFS_RELEASEINTERFACE
+# 0x8004551a == USBDEVFS_GET_CAPABILITIES
+# 0x802c550a == USBDEVFS_SUBMITURB
+# 0xc0105500 == 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 == 0x550b || arg1 == 0x5514 || arg1 == 0x80045505 || arg1 == 0x8108551b || arg1 == 0x40085511 || arg1 == 0x80185520
+fstat: 1
+sigaltstack: 1
+recvmsg: 1
+getrandom: 1
+getdents64: 1
+lseek: 1