Commits

Robert Craig committed e685607

Move bluetooth_device domains to hci_attach_dev domain.

In the interest of minimizing per-device policy, relabel
/dev/smd2 and /dev/smd3 as hci_attach_dev domains.

Change-Id: Iaa511a8610672994482d39b5064a8c7d0d1a90c2
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>

Comments (0)

Files changed (3)

 	file_contexts \
 	te_macros \
 	bluetooth_loader.te \
-	bluetooth.te \
 	bridge.te \
 	camera.te \
 	conn_init.te \

sepolicy/bluetooth.te

-# bt_hc_worker access to shared memory driver
-allow bluetooth bluetooth_device:chr_file rw_file_perms;

sepolicy/file_contexts

 
 /dev/ttyHS0                    u:object_r:hci_attach_dev:s0
 /dev/ttyMSM0                   u:object_r:hci_attach_dev:s0
+/dev/smd2                      u:object_r:hci_attach_dev:s0
+/dev/smd3                      u:object_r:hci_attach_dev:s0
 
 /dev/cpu_dma_latency           u:object_r:power_control_device:s0
 /dev/diag                      u:object_r:diagnostic_device:s0
-/dev/smd2                      u:object_r:bluetooth_device:s0
-/dev/smd3                      u:object_r:bluetooth_device:s0
 /dev/smd.*                     u:object_r:shared_memory_device:s0
 /dev/smem_log                  u:object_r:shared_log_device:s0
 /dev/kgsl-3d0                  u:object_r:kgsl_device:s0