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