thermal: add sepolicy rule to access ODPM sysfs

Bug: 170653634
Test: test thermal behavior under enforcing mode
Change-Id: I37500de957cc2375213f1d0416a88356f36d2367
This commit is contained in:
TeYuan Wang 2021-04-14 14:25:05 +08:00
parent f23a4423c4
commit 66fd237730
2 changed files with 3 additions and 0 deletions

View file

@ -1 +1,3 @@
allow hal_thermal_default self:netlink_generic_socket create_socket_perms_no_ioctl;
allow hal_thermal_default sysfs_iio_devices:dir r_dir_perms;
allow hal_thermal_default sysfs_odpm:file r_file_perms;

View file

@ -11,6 +11,7 @@ set_prop(vendor_init, vendor_ro_config_default_prop)
get_prop(vendor_init, vendor_touchpanel_prop)
set_prop(vendor_init, vendor_edgetpu_service_prop)
set_prop(vendor_init, vendor_tcpdump_log_prop)
set_prop(vendor_init, vendor_thermal_prop)
allow vendor_init proc_dirty:file w_file_perms;
allow vendor_init proc_sched:file write;