summaryrefslogtreecommitdiffstats
path: root/common/qcomsysd.te
blob: 7b786da49416a14f0fa4831eab42a356b818ddaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#Policy file for qcom-system-daemon
#qcomsysd = qcom-system-daemon domain
type qcomsysd, domain;
type qcomsysd_exec, exec_type, file_type;
init_daemon_domain(qcomsysd);

#Needed for logging
allow qcomsysd smem_log_device:chr_file { open read write ioctl };

#Needed for handling diag commands
allow qcomsysd diag_device:chr_file { open read write ioctl };

#Needed to read/write cookies to the misc partition
allow qcomsysd block_device:dir { search };
allow qcomsysd misc_partition:blk_file { open read getattr write };

#Needed to access the bootselect partition
allow qcomsysd bootselect_device:blk_file { open read getattr write };

#Needed to get image info from socinfo
allow qcomsysd sysfs_socinfo:dir  { open search read };
allow qcomsysd sysfs_socinfo:file { open read write };