1# ============================================== 2# MTK Policy Rule for plat_private 3# ============================================== 4 5# Date : WK14.32 6# Operation : Migration 7# Purpose : For audio dump and log 8allow audioserver sdcard_type:dir { w_dir_perms create }; 9allow audioserver sdcard_type:file create; 10allow audioserver sdcard_type:dir remove_name; 11allow audioserver sdcard_type:file unlink; 12 13# Data : WK14.38 14# Operation : Migration 15# Purpose : for boot animation. 16allow audioserver bootanim:binder { transfer call }; 17 18allow audioserver mtkbootanimation:binder { transfer call }; 19 20# Data : WK14.38 21# Operation : Migration 22# Purpose : dump for debug 23allow audioserver sdcard_type:file append; 24 25# Data : WK14.46 26# Operation : Migration 27# Purpose : for SMS app 28allow audioserver radio_data_file:dir search; 29allow audioserver radio_data_file:file open; 30 31# Data : WK14.47 32# Operation : Audio playback 33# Purpose : Music as ringtone 34allow audioserver radio:dir { search read }; 35allow audioserver radio:file r_file_perms; 36 37# Data : WK14.47 38# Operation : CTS 39# Purpose : cts search strange app 40allow audioserver untrusted_app:dir search; 41 42# Date : WK15.34 43# Operation : Migration 44# Purpose: for camera middleware dump image buffer to sdcard & audio frameworks dump 45allow audioserver storage_file:lnk_file {read write}; 46allow audioserver mnt_user_file:dir {write read search}; 47allow audioserver mnt_user_file:lnk_file {read write}; 48 49# Purpose: Dump debug info 50allow audioserver kmsg_device:chr_file { open write }; 51allow audioserver media_rw_data_file:dir { create_dir_perms }; 52 53# Date : WK16.27 54# Operation : Migration 55# Purpose: tunning tool update parameters 56allow audioserver media_rw_data_file:file { create_file_perms }; 57 58# Date : WK16.28 59# Operation : Migration 60# Purpose: Write audio dump files to external SDCard. 61allow audioserver sdcard_type:file { create_file_perms }; 62allow audioserver storage_file:dir { r_dir_perms }; 63 64# Date : W18.01 65# Add for turn on SElinux in enforcing mode 66allow audioserver self:netlink_kobject_uevent_socket { read create }; 67