From a0c32871a98876aa3dfb979d966b0a7f56cbaaa1 Mon Sep 17 00:00:00 2001 From: "Kevin F. Haggerty" Date: Thu, 15 Nov 2018 19:55:06 -0700 Subject: [PATCH] msm8974-common: sepolicy: Broaden sysfs_bluetooth_writable, resolve denials Change-Id: Iff3645e36ece2126f3697bb0389394415be16529 --- sepolicy/common/file_contexts | 2 +- sepolicy/common/init.te | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sepolicy/common/file_contexts b/sepolicy/common/file_contexts index 7c4bc58..f2f9bda 100644 --- a/sepolicy/common/file_contexts +++ b/sepolicy/common/file_contexts @@ -32,7 +32,7 @@ # sysfs /sys/devices/[a-f0-9]+\.uart(/.*)? u:object_r:sysfs_msmuart_file:s0 -/sys/devices/platform/bcm[0-9]+_bluetooth/rfkill/rfkill0/state u:object_r:sysfs_bluetooth_writable:s0 +/sys/devices/platform/bcm[0-9]+_bluetooth/rfkill/rfkill0(/.*)? u:object_r:sysfs_bluetooth_writable:s0 /sys/devices/virtual/camera(/.*)? u:object_r:sysfs_camera:s0 /sys/devices/virtual/input(/.*)? u:object_r:sysfs_input:s0 /sys/module/dhd/parameters/firmware_path u:object_r:sysfs_wifi_writeable:s0 diff --git a/sepolicy/common/init.te b/sepolicy/common/init.te index abe0a80..7ce1e0b 100644 --- a/sepolicy/common/init.te +++ b/sepolicy/common/init.te @@ -10,6 +10,7 @@ allow init sysfs_graphics:file r_file_perms; allow init { sysfs_batteryinfo + sysfs_bluetooth_writable sysfs_graphics sysfs_iio sysfs_input