msm8226-common: sepolicy: Address sensor denials on kmini3g

This commit is contained in:
Rox- 2015-03-08 20:05:54 +01:00
parent 6d718ff134
commit ed4164ae3a
3 changed files with 5 additions and 0 deletions

1
sepolicy/device.te Normal file
View file

@ -0,0 +1 @@
type io_device, dev_type;

View file

@ -21,8 +21,11 @@
/dev/block/mmcblk1(.*) u:object_r:mmc_block_device:s0
# Sensors
/dev/alps_io u:object_r:io_device:s0
/efs/FactoryApp/baro_delta u:object_r:sensors_efs_file:s0
/efs/gyro_cal_data u:object_r:sensors_efs_file:s0
/efs/prox_cal u:object_r:sensors_efs_file:s0
# WiFi
/data/.wifiver.info u:object_r:wifi_data_file:s0

View file

@ -1,4 +1,5 @@
allow system_server efs_file:dir search;
allow system_server io_device:chr_file rw_file_perms;
allow system_server sensors_efs_file:file { open read };
allow system_server sysfs_display:file { getattr open read write };
allow system_server sysfs_vibeamp:dir search;