blob: fe9a099b3b37601c55f4858675f59aebcf98833f [file] [log] [blame]
wangxl5b6293a2015-02-03 21:10:20 +08001#Policy for mdm_helper
2#mdm_helper - mdm_helper domain
3type mdm_helper, domain;
4type mdm_helper_exec, exec_type, file_type;
5init_daemon_domain(mdm_helper);
6
7#block_suspend capability is needed by kickstart(ks)
8allow mdm_helper self:capability2 block_suspend;
9
10#Needed to power on the peripheral
11allow mdm_helper ssr_device:chr_file { open read };
12
13#Needed to access the esoc device to control the mdm
14allow mdm_helper esoc_device:chr_file { read write ioctl open };
15allow mdm_helper esoc_device:dir { open search };
16
17#Needed to detect presence of hsic bridge and to xfer images
18allow mdm_helper ksbridgehsic_device:chr_file { read write open getattr ioctl};
19
20#Needed to detect efs sync and for kickstart to run the efs sync server
21allow mdm_helper efsbridgehsic_device:chr_file { read write open getattr ioctl};
22
23#Needed for communication with the HSIC driver
24allow mdm_helper sysfs_hsic:dir { open read search };
25allow mdm_helper sysfs_hsic:file { read write open };
26
27#Needed by libmdmdetect to figure out the system configuration
28allow mdm_helper sysfs_esoc:dir { open search read };
29allow mdm_helper sysfs_esoc:lnk_file { read };
30
31#Needed by libmdmdetect to get system information regarding subsystems and to check their states
32allow mdm_helper sysfs_ssr:dir { open search read };
33allow mdm_helper sysfs_ssr:lnk_file { read open };
34
35#Needed in order to run kickstart
36allow mdm_helper shell:fd { use };
37allow mdm_helper shell_exec:file { read open execute execute_no_trans };
38allow mdm_helper system_file:file { execute_no_trans };
39allow mdm_helper mdm_helper_exec:file {execute_no_trans };
40
41#Needed to inform the hsic driver that mdm has booted up
42allow mdm_helper sysfs:file { open read write getattr };
43
44#Needed by ks in order to access the efs sync partitions.
45allow mdm_helper efs_boot_dev:blk_file { open read getattr write};
46allow mdm_helper block_device:dir { getattr search write };
47
48#Ks needs to aquire the wake lock
49allow mdm_helper sysfs_wake_lock:file {open append};
50
51#Needed in order to access the firmware partition
52allow mdm_helper firmware_file:dir { search };
53allow mdm_helper firmware_file:file { open read getattr };
54
55#Needed in order to collect ramdumps
56allow mdm_helper tombstone_data_file:file { create read write open getattr };
57allow mdm_helper tombstone_data_file:dir { create search open read write getattr add_name };