Merge "sepolicy: Add property context for vendor GPU frequencies"

This commit is contained in:
Linux Build Service Account 2018-07-31 12:51:24 -07:00 committed by Gerrit - the friendly Code Review server
commit 77d4317950
4 changed files with 10 additions and 2 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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

View file

@ -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)