1# Grant access to Qualcomm MSM Interface (QMI) audio sockets to audioserver
2qmux_socket(audioserver)
3
4# Permit audioserver to create sockets with no specific SELinux class.
5# TODO: Investigate the specific type of socket.
6allow audioserver self:socket create_socket_perms;
7
8allow audioserver mpdecision_socket:dir r_dir_perms;
9unix_socket_send(audioserver, mpdecision, mpdecision)
10
11binder_call(audioserver, rild)
12
13unix_socket_connect(audioserver, adspd, adspd)
14allow audioserver audio_cutback_data_file:dir search;
15allow audioserver audio_cutback_data_file:sock_file write;
16
17# access files in /sys
18r_dir_file(audioserver, sysfs)
19# connect to rild for phone calls
20allow audioserver rild:unix_stream_socket connectto;
21