diff --git a/bluetooth.te b/bluetooth.te index 2b108a9e8ae99e87f9c738e9d03c2aa9637bfc17..5541f6811e7efaba06a6f2f0a219d21c2e919994 100644 --- a/bluetooth.te +++ b/bluetooth.te @@ -49,6 +49,10 @@ allow bluetooth bluetooth_prop:property_service set; allow bluetooth pan_result_prop:property_service set; allow bluetooth ctl_dhcp_pan_prop:property_service set; +# Bluetooth Sim Access Profile Socket to the RIL +unix_socket_connect(bluetooth, sap_uim, rild) + + ### ### Neverallow rules ### diff --git a/file.te b/file.te index 9e56d7f651939b03dae09ca5f3e3d647fc505653..9a7230ca2da9dd464128b6b6ebd5ac729f047c6d 100644 --- a/file.te +++ b/file.te @@ -155,7 +155,7 @@ type system_ndebug_socket, file_type; type vold_socket, file_type; type wpa_socket, file_type; type zygote_socket, file_type; - +type sap_uim_socket, file_type; # UART (for GPS) control proc file type gps_control, file_type; diff --git a/file_contexts b/file_contexts index 62802e0a95ef281467239ebdd60e02cd0a2f53a3..30fd9e3f1fc8a0e60b4aeafe932b2d5110830d91 100644 --- a/file_contexts +++ b/file_contexts @@ -77,6 +77,7 @@ /dev/snd(/.*)? u:object_r:audio_device:s0 /dev/socket(/.*)? u:object_r:socket_device:s0 /dev/socket/adbd u:object_r:adbd_socket:s0 +/dev/socket/sap_uim_socket[0-9] u:object_r:sap_uim_socket:s0 /dev/socket/dnsproxyd u:object_r:dnsproxyd_socket:s0 /dev/socket/dumpstate u:object_r:dumpstate_socket:s0 /dev/socket/fwmarkd u:object_r:fwmarkd_socket:s0