sepolicy-sensors : allow sensors-hal to access sysfs_adsp_ssr object

to trigger ssr

Change-Id: Id4a45a972189cdff6d2a4dfd834a977501753b87
This commit is contained in:
Sandeep Neerudu
2019-11-08 11:44:10 +05:30
committed by Gerrit - the friendly Code Review server
parent 2cc645f310
commit 727a9141ca
3 changed files with 3 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ type sysfs_usb_supply, sysfs_type, fs_type;
type sysfs_usbpd_device, sysfs_type, fs_type;
type sysfs_vadc_dev, sysfs_type, fs_type;
type sysfs_lcd, sysfs_type, fs_type;
type sysfs_adsp_ssr, sysfs_type, fs_type;
type debugfs_clk, debugfs_type, fs_type;
type debugfs_ion, debugfs_type, fs_type;

View File

@@ -121,6 +121,7 @@ genfscon sysfs /firmware/devicetree/base/cpus u:object_r:sysfs_devices_system_cp
genfscon sysfs /bus/spmi/devices u:object_r:sysfs_spmi_dev:s0
genfscon sysfs /power/mem_sleep u:object_r:sysfs_suspend:s0
genfscon sysfs /kernel/boot_adsp/ssr u:object_r:sysfs_adsp_ssr:s0
genfscon debugfs /kgsl/proc u:object_r:debugfs_kgsl:s0
genfscon debugfs /clk/debug_suspend u:object_r:debugfs_clk:s0

View File

@@ -47,6 +47,7 @@ allow hal_sensors sysfs_sensors:lnk_file read;
#following to set the ssr
allow hal_sensors_default sysfs_slpi:dir search;
allow hal_sensors_default sysfs_slpi:file w_file_perms;
allow hal_sensors_default sysfs_adsp_ssr:file w_file_perms;
allow hal_sensors_default persist_sensors_file:dir rw_dir_perms;
allow hal_sensors_default persist_sensors_file:file create_file_perms;