Merge "Grant GPU and Fabric node access" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
71e96842ca
6
whitechapel/vendor/google/file.te
vendored
6
whitechapel/vendor/google/file.te
vendored
@@ -173,6 +173,12 @@ type persist_battery_file, file_type, vendor_persist_type;
|
||||
# CPU
|
||||
type sysfs_cpu, sysfs_type, fs_type;
|
||||
|
||||
# GPU
|
||||
type sysfs_gpu, sysfs_type, fs_type;
|
||||
|
||||
# Fabric
|
||||
type sysfs_fabric, sysfs_type, fs_type;
|
||||
|
||||
# Memory
|
||||
type sysfs_memory, sysfs_type, fs_type;
|
||||
|
||||
|
||||
6
whitechapel/vendor/google/genfs_contexts
vendored
6
whitechapel/vendor/google/genfs_contexts
vendored
@@ -208,6 +208,12 @@ genfscon sysfs /devices/platform/17000080.devfreq_bo/devfreq/17000080.devfreq_bo
|
||||
genfscon sysfs /devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/time_in_state u:object_r:sysfs_cpu:s0
|
||||
genfscon sysfs /devices/platform/17000070.devfreq_mfc/devfreq/17000070.devfreq_mfc/time_in_state u:object_r:sysfs_cpu:s0
|
||||
|
||||
# Fabric
|
||||
genfscon sysfs /devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/interactive/target_load u:object_r:sysfs_fabric:s0
|
||||
|
||||
# GPU
|
||||
genfscon sysfs /devices/platform/1c500000.mali/scaling_min_freq u:object_r:sysfs_gpu:s0
|
||||
|
||||
# nvmem (Non Volatile Memory layer)
|
||||
genfscon sysfs /devices/platform/10970000.hsi2c/i2c-4/4-0050/4-00500/nvmem u:object_r:sysfs_memory:s0
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@ allow hal_power_default sysfs_fs_f2fs:dir r_dir_perms;
|
||||
allow hal_power_default sysfs_fs_f2fs:file rw_file_perms;
|
||||
allow hal_power_default sysfs_vendor_sched:file rw_file_perms;
|
||||
allow hal_power_default cpuctl_device:file rw_file_perms;
|
||||
allow hal_power_default sysfs_gpu:file rw_file_perms;
|
||||
allow hal_power_default sysfs_fabric:file rw_file_perms;
|
||||
set_prop(hal_power_default, vendor_camera_prop)
|
||||
set_prop(hal_power_default, vendor_camera_debug_prop)
|
||||
set_prop(hal_power_default, vendor_camera_fatp_prop)
|
||||
|
||||
Reference in New Issue
Block a user