5183d7fb36
Energy aware feature control is previously done through debugfs, which will be deprecated, so move the control to sysctl. Added permisson for it, and removed the one unused. [ 1.460128] audit: type=1400 audit(2753763.033:8): avc: denied { write } for pid=537 comm="init" name="energy_aware" dev="proc" ino=21663 scontext=u:r:vendor_init:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0 10-05 16:49:18.933 820 820 W NodeLooperThrea: type=1400 audit(0.0:1097): avc: denied { write } for name="energy_aware" dev="proc" ino=66567 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0 10-05 17:00:15.726 822 822 W NodeLooperThrea: type=1400 audit(0.0:262): avc: denied { open } for path="/proc/sys/kernel/energy_aware" dev="proc" ino=51228 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0 Bug: 141333728 Test: function works as expected Change-Id: I2b4eda73bfa34824244e21d804b48eee49a71eae Signed-off-by: clarencelol <clarencekuiek@icloud.com> Signed-off-by: pix106 <sbordenave@gmail.com>
31 lines
822 B
Text
31 lines
822 B
Text
type ir_dev_file, file_type;
|
|
type public_adsprpcd_file, file_type;
|
|
type sysfs_fingerprint, fs_type, sysfs_type;
|
|
type sysfs_touchpanel, fs_type, sysfs_type;
|
|
type thermal_data_file, file_type, data_file_type;
|
|
|
|
# DeviceSettings
|
|
type sysfs_fpsinfo, sysfs_type, fs_type;
|
|
type sysfs_headphonegain, sysfs_type, fs_type;
|
|
type sysfs_micgain, sysfs_type, fs_type;
|
|
type sysfs_earpiecegain, sysfs_type, fs_type;
|
|
|
|
# HVDCP
|
|
type vendor_sysfs_hvdcp, fs_type, sysfs_type;
|
|
|
|
# Kcal
|
|
type kcal_dev, sysfs_type, fs_type;
|
|
|
|
# Sockets
|
|
type audio_socket, file_type;
|
|
|
|
# Battery Saver
|
|
type sysfs_battery_saver, fs_type, sysfs_type;
|
|
|
|
# PowerHAL
|
|
type proc_sched_energy_aware, proc_type, fs_type;
|
|
|
|
# Powerstats
|
|
type sysfs_iio_devices, fs_type, sysfs_type;
|
|
type sysfs_power_stats, sysfs_type, fs_type;
|
|
type sysfs_power_stats_ignore, sysfs_type, fs_type;
|