summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordcashman <dcashman@google.com>2016-06-10 11:02:12 -0700
committerdcashman <dcashman@google.com>2016-06-10 11:02:12 -0700
commit4a26a5d123d637b95fcd2c0b2535fa568452570c (patch)
tree784a9fc8f14fa3d905f4433113c13c38e2488422
parent4bab6be3ec8699ad23b178e5b80a034b13512fbc (diff)
downloadshamu-4a26a5d123d637b95fcd2c0b2535fa568452570c.tar.gz
Allow access to sysfs usb nodes.
Some legitimate functionality currently requires direct sysfs access that is not otherwise possible via the android APIs. Specifically, isochronous USB transfers require this direct access, without which USB audio applications would noticibly suffer. Grant read access to the usb files under /sys/devices to prevent this regression. Bug: 28417852 Change-Id: I8697abb45e440913afcfcee48ac7b2c4a1e88273
-rw-r--r--sepolicy/file_contexts2
1 files changed, 2 insertions, 0 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 456f1f8e..993a745d 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -151,6 +151,8 @@
# Sysfs files used by qmuxd
/sys/devices/virtual/smdpkt/smdcntl([0-9])+/open_timeout u:object_r:sysfs_smdcntl_open_timeout:s0
+/sys/devices/f9200000\.ssusb(/.*)? u:object_r:sysfs_usb:s0
+
# mmi_touch related /sys files
/sys/devices/f9966000\.i2c/i2c-1/1-004a(/.*)? u:object_r:sysfs_mmi_touch:s0