Home | History | Annotate | Download | only in sepolicy
      1 binder_call(mediaserver, rild)
      2 # send data to camera socket
      3 allow mediaserver camera_data_file:sock_file write;
      4 allow mediaserver camera:unix_stream_socket connectto;
      5 allow mediaserver camera:unix_dgram_socket sendto;
      6 #read/write /dev/media[0-N]
      7 allow mediaserver media_device:chr_file rw_file_perms;
      8 #read/write /dev/msm_audio_cal
      9 userdebug_or_eng(`
     10   allow mediaserver diag_device:chr_file rw_file_perms;
     11 ')
     12 #read/write /dev/v4l-subdev[0-N]
     13 allow mediaserver v41_subdev_device:chr_file rw_file_perms;
     14 
     15 allow mediaserver persist_file:dir search;
     16 allow mediaserver persist_audio_file:dir search;
     17 allow mediaserver persist_audio_file:file r_file_perms;
     18 
     19 # allow communication w/perfd
     20 allow mediaserver perfd_data_file:dir search;
     21 allow mediaserver perfd_data_file:sock_file write;
     22 allow mediaserver perfd:unix_dgram_socket sendto;
     23 allow mediaserver perfd:unix_stream_socket connectto;
     24