[ALPS04761129] sensor: high risk sepolicy of mtk_hal_sensors
give /sys/class/sensor folder perms for mtk_hal_sensors MTK-Commit-Id: 7d2c08aad389eb68e423d9fa75d5c4f0d514577c Change-Id: I63c5300a31b523de5d4c22ac53e5e03ba8cdd048 CR-Id: ALPS04761129 Feature: Sensor Hub
This commit is contained in:
parent
f4c7151104
commit
f57f7914f3
@ -381,3 +381,6 @@ type debugfs_smi_mon, fs_type, debugfs_type;
|
||||
# Date : WK19.34
|
||||
# Purpose: Android Migration for video codec driver
|
||||
type vcodec_file, file_type, data_file_type;
|
||||
|
||||
# Date : 2019/08/24
|
||||
type sysfs_sensor, fs_type, sysfs_type;
|
||||
|
@ -214,4 +214,6 @@ genfscon iso9660 / u:object_r:iso9660:s0
|
||||
genfscon rawfs / u:object_r:rawfs:s0
|
||||
genfscon fuseblk / u:object_r:fuseblk:s0
|
||||
|
||||
|
||||
# 2019/08/24
|
||||
genfscon sysfs /class/sensor u:object_r:sysfs_sensor:s0
|
||||
genfscon sysfs /devices/virtual/sensor u:object_r:sysfs_sensor:s0
|
@ -27,7 +27,8 @@ allow mtk_hal_sensors system_file:dir read;
|
||||
allow mtk_hal_sensors system_file:dir open;
|
||||
|
||||
# sensors input rw access
|
||||
allow mtk_hal_sensors sysfs:file rw_file_perms;
|
||||
allow mtk_hal_sensors sysfs_sensor:dir r_dir_perms;
|
||||
allow mtk_hal_sensors sysfs_sensor:file rw_file_perms;
|
||||
|
||||
# hal sensor for chr_file
|
||||
allow mtk_hal_sensors hwmsensor_device:chr_file r_file_perms;
|
||||
|
Loading…
x
Reference in New Issue
Block a user