2019-03-09 04:41:57 +00:00
|
|
|
# Copyright 2018 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
|
|
|
|
|
|
|
|
stat64: 1
|
|
|
|
lstat64: 1
|
2019-06-10 23:45:32 +00:00
|
|
|
readlink: 1
|
2019-03-09 04:41:57 +00:00
|
|
|
readlinkat: 1
|
|
|
|
getdents64: 1
|
|
|
|
name_to_handle_at: 1
|
|
|
|
access: 1
|
|
|
|
timerfd_create: 1
|
|
|
|
getsockname: 1
|
|
|
|
pipe: 1
|
|
|
|
setsockopt: 1
|
|
|
|
bind: 1
|
|
|
|
socket: arg0 == AF_NETLINK
|
|
|
|
stat: 1
|
2020-01-15 21:34:09 +00:00
|
|
|
statx: 1
|
2019-03-09 04:41:57 +00:00
|
|
|
uname: 1
|
|
|
|
# The following ioctls are:
|
|
|
|
# 0x4004550d == USBDEVFS_REAPURBNDELAY32
|
|
|
|
# 0x550b == USBDEVFS_DISCARDURB
|
|
|
|
# 0x8004550f == USBDEVFS_CLAIMINTERFACE
|
|
|
|
# 0x80045510 == USBDEVFS_RELEASEINTERFACE
|
2021-01-15 19:45:53 +00:00
|
|
|
# 0x80045515 == USBDEVFS_CLEAR_HALT
|
2019-03-09 04:41:57 +00:00
|
|
|
# 0x8004551a == USBDEVFS_GET_CAPABILITIES
|
|
|
|
# 0x802c550a == USBDEVFS_SUBMITURB
|
|
|
|
# 0xc0105500 == USBDEVFS_CONTROL
|
2019-03-20 18:16:26 +00:00
|
|
|
# 0x5514 == USBDEVFS_RESET
|
|
|
|
# 0x80045505 == USBDEVFS_SETCONFIGURATION
|
2019-05-07 21:19:23 +00:00
|
|
|
# 0x8108551b == USBDEVFS_DISCONNECT_CLAIM
|
2019-06-10 23:45:32 +00:00
|
|
|
# 0x40085511 == USBDEVFS_CONNECTINFO
|
2019-06-20 16:21:40 +00:00
|
|
|
# 0x80185520 == USBDEVFS_CONNINFO_EX
|
2021-01-15 19:45:53 +00:00
|
|
|
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
|
2019-03-09 04:41:57 +00:00
|
|
|
fstat: 1
|
|
|
|
getrandom: 1
|
|
|
|
getdents: 1
|
2019-06-25 23:15:59 +00:00
|
|
|
_llseek: 1
|
2020-02-01 01:29:45 +00:00
|
|
|
open: return ENOENT
|
|
|
|
openat: 1
|
2021-04-19 19:59:38 +00:00
|
|
|
prctl: arg0 == PR_SET_NAME
|