Merge "sepolicy: Add property context for vendor GPU frequencies"
This commit is contained in:
commit
77d4317950
4 changed files with 10 additions and 2 deletions
5
vendor/common/init_shell.te
vendored
5
vendor/common/init_shell.te
vendored
|
@ -57,6 +57,7 @@ set_prop(qti_init_shell, vendor_mpdecision_prop)
|
|||
set_prop(qti_init_shell, vendor_radio_prop)
|
||||
set_prop(qti_init_shell, vendor_audio_prop)
|
||||
get_prop(qti_init_shell, exported3_radio_prop)
|
||||
set_prop(qti_init_shell, vendor_gpu_prop)
|
||||
|
||||
allow qti_init_shell {
|
||||
sysfs_devices_system_cpu
|
||||
|
@ -102,8 +103,8 @@ allow qti_init_shell configfs:file rw_file_perms;
|
|||
allow qti_init_shell sysfs_zram:dir r_dir_perms;
|
||||
allow qti_init_shell sysfs_zram:file rw_file_perms;
|
||||
|
||||
# To get GPU frequencies
|
||||
allow qti_init_shell sysfs_kgsl:file r_file_perms;
|
||||
# To get GPU frequencies and set attributes
|
||||
allow qti_init_shell sysfs_kgsl:file { r_file_perms setattr };
|
||||
|
||||
allow qti_init_shell proc:file r_file_perms;
|
||||
allow qti_init_shell rootfs:file r_file_perms;
|
||||
|
|
2
vendor/common/property.te
vendored
2
vendor/common/property.te
vendored
|
@ -47,3 +47,5 @@ type vendor_pd_locater_dbg_prop, property_type;
|
|||
|
||||
#rmt_storage
|
||||
type ctl_vendor_rmt_storage_prop, property_type;
|
||||
|
||||
type vendor_gpu_prop, property_type;
|
||||
|
|
3
vendor/common/property_contexts
vendored
3
vendor/common/property_contexts
vendored
|
@ -65,3 +65,6 @@ persist.vendor.pd_locater_debug u:object_r:vendor_pd_locater_dbg_prop:s0
|
|||
|
||||
#rmt_storage
|
||||
ctl.vendor.rmt_storage u:object_r:ctl_vendor_rmt_storage_prop:s0
|
||||
|
||||
#GPU Available frequencies
|
||||
vendor.gpu.available_frequencies u:object_r:vendor_gpu_prop:s0
|
||||
|
|
2
vendor/common/vendor_init.te
vendored
2
vendor/common/vendor_init.te
vendored
|
@ -85,3 +85,5 @@ set_prop(vendor_init, vendor_display_prop)
|
|||
#Access vendor gralloc properties
|
||||
set_prop(vendor_init, vendor_gralloc_prop)
|
||||
|
||||
#Access vendor gpu freq properties
|
||||
set_prop(vendor_init, vendor_gpu_prop)
|
||||
|
|
Loading…
Reference in a new issue