1### 2### A domain for further sandboxing the MediaProvider mainline module. 3### 4type mediaprovider_app, domain, coredomain; 5 6app_domain(mediaprovider_app) 7 8# Access to /mnt/pass_through. 9allow mediaprovider_app mnt_pass_through_file:dir r_dir_perms; 10 11# Allow MediaProvider to host a FUSE daemon for external storage 12allow mediaprovider_app fuse_device:chr_file { read write ioctl getattr }; 13 14# Allow MediaProvider to read/write media_rw_data_file files and dirs 15allow mediaprovider_app media_rw_data_file:file create_file_perms; 16allow mediaprovider_app media_rw_data_file:dir create_dir_perms; 17 18# Talk to the DRM service 19allow mediaprovider_app drmserver_service:service_manager find; 20 21# Talk to the MediaServer service 22allow mediaprovider_app mediaserver_service:service_manager find; 23 24# Talk to regular app services 25allow mediaprovider_app app_api_service:service_manager find; 26 27# Talk to the GPU service 28binder_call(mediaprovider_app, gpuservice) 29 30# read pipe-max-size configuration 31allow mediaprovider_app proc_pipe_conf:file r_file_perms; 32 33# Allow MediaProvider to set extended attributes (such as quota project ID) 34# on media files. 35allowxperm mediaprovider_app media_rw_data_file:{ dir file } ioctl { 36 FS_IOC_FSGETXATTR 37 FS_IOC_FSSETXATTR 38 FS_IOC_GETFLAGS 39 FS_IOC_SETFLAGS 40}; 41 42allow mediaprovider_app proc_filesystems:file r_file_perms; 43 44#Allow MediaProvider to see if sdcardfs is in use 45get_prop(mediaprovider_app, storage_config_prop) 46