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