diff options
Diffstat (limited to 'sepolicy/sdcardd.te')
| -rw-r--r-- | sepolicy/sdcardd.te | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sepolicy/sdcardd.te b/sepolicy/sdcardd.te new file mode 100644 index 0000000..24486a0 --- /dev/null +++ b/sepolicy/sdcardd.te @@ -0,0 +1,36 @@ +# ============================================== +# MTK Policy Rule +# ============ + +# Date : WK14.37 +# Operation : Migration +# Purpose : for sdcard daemon to access lk_env +allow sdcardd proc_lk_env:file { read write ioctl open }; +allow sdcardd misc_device:chr_file { read write open }; +allow sdcardd mmcblk_device:blk_file rw_file_perms; +allow sdcardd platformblk_device:blk_file rw_file_perms; +allow sdcardd block_device:dir search; +allow sdcardd platformblk_device:dir search; + +# Date : WK14.47 +# Purpose : create symbolic link from /mnt/shell/emulated to /storage/emulated +allow sdcardd tmpfs:dir {write add_name mounton}; +allow sdcardd tmpfs:lnk_file create; +allow sdcardd tmpfs:filesystem unmount; + +# Date : WK14.48 +# Purpose : invoke vdc for handle_users +allow sdcardd devpts:chr_file { read write getattr open ioctl }; +allow sdcardd vdc_exec:file { read execute open execute_no_trans }; +allow sdcardd vold:unix_stream_socket connectto; +allow sdcardd vold_socket:sock_file write; + + +# Date : WK14.48 +# Purpose : unknown +allow sdcardd platform_app:fd use; +allow sdcardd untrusted_app:fd use; + +# Date : WK15.02 +# Purpose : ashared memory +allow sdcardd platform_app_tmpfs:file write; |
