From 57df6a0ab23c3b2ba233b9aa5886ecf47ba3f91f Mon Sep 17 00:00:00 2001 From: Keiichi Watanabe Date: Fri, 6 Dec 2019 22:24:40 +0900 Subject: devices: virtio: Initial implementation of virtio-video device This CL adds a fundamental part of the virtio video device, which will be shared between the encoder and the decoder. Both devices uses the virtio-video protocol proposed as RFC v3 [1,2]. The corresponding driver code is at CL:2060327 and its children CLs. The actual decoding and encoding logic will be implemented in different CLs. [1]: mail: https://markmail.org/thread/wxdne5re7aaugbjg [2]: PDF: https://drive.google.com/file/d/1jOsS2WdVhL4PpcWLO8Zukq5J0fXDiWn-/view BUG=b:147465619, b:140082257 TEST=cargo check --features=video-decoder,video-encoder TEST=ARCVM started with --video-decoder --video-encoder Cq-Depend: chromium:2203997 Change-Id: I01999eea218ba0f3aaed1558ca2311a57d0c6819 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1973973 Reviewed-by: Keiichi Watanabe Tested-by: Keiichi Watanabe Tested-by: kokoro Commit-Queue: Keiichi Watanabe --- seccomp/x86_64/video_device.policy | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 seccomp/x86_64/video_device.policy (limited to 'seccomp') diff --git a/seccomp/x86_64/video_device.policy b/seccomp/x86_64/video_device.policy new file mode 100644 index 0000000..fdc5935 --- /dev/null +++ b/seccomp/x86_64/video_device.policy @@ -0,0 +1,24 @@ +# Copyright 2020 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. + +@include /usr/share/policy/crosvm/common_device.policy + +# Syscalls specific to video devices. +clock_getres: 1 +connect: 1 +fcntl: arg1 == F_GETFL || arg1 == F_SETFL || arg1 == F_DUPFD_CLOEXEC || arg1 == F_GETFD || arg1 == F_SETFD +getdents: 1 +getegid: 1 +geteuid: 1 +getgid: 1 +getresgid: 1 +getresuid: 1 +getsockname: 1 +getuid: 1 +# ioctl: arg1 == DRM_IOCTL_* +ioctl: arg1 & 0x6400 +openat: 1 +setpriority: 1 +socket: arg0 == AF_UNIX +stat: 1 -- cgit 1.4.1