mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
msm8226-common: sepolicy: Address sensor denials on kmini3g
This commit is contained in:
parent
6d718ff134
commit
ed4164ae3a
3 changed files with 5 additions and 0 deletions
1
sepolicy/device.te
Normal file
1
sepolicy/device.te
Normal file
|
@ -0,0 +1 @@
|
|||
type io_device, dev_type;
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue