Home | History | Annotate | Download | only in sepolicy
      1 userdebug_or_eng(`
      2   allow hal_audio diag_device:chr_file rw_file_perms;
      3 ')
      4 
      5 # access for speaker calibration file
      6 allow hal_audio persist_file:dir search;
      7 allow hal_audio persist_audio_file:dir search;
      8 allow hal_audio persist_audio_file:file r_file_perms;
      9 
     10 # allow communication w/perfd
     11 allow hal_audio perfd_data_file:dir search;
     12 allow hal_audio perfd_data_file:sock_file write;
     13 allow hal_audio perfd:unix_dgram_socket sendto;
     14 allow hal_audio perfd:unix_stream_socket connectto;
     15 
     16 # allow reading /sys/devices/soc0/hw_platform for acdb
     17 allow hal_audio sysfs:file { getattr open read };
     18