sepolicy_vndr: Add generic lablel for gpu_available_frequencies
Add gpu_available_frequeencies generic label to
resolve avc denical read, write, get_attr methods.
[38.063178]type=1400 audit(4779.247:56): avc: denied { read } for comm="thermal-engine-"
name="gpu_available_frequencies" dev="sysfs" ino=76022 scontext=u:r:
vendor_thermal-engine:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[38.063456] type=1400 audit(4779.247:57): avc: denied { open } for comm="thermal-engine-"
path="/sys/devices/platform/soc/5900000.qcom,kgsl-3d0/kgsl/kgsl-3d0/gpu_available_frequencies"
dev="sysfs" ino=76022 scontext=u:r:vendor_thermal-engine:s0 tcontext=u:object
r:sysfs:s0 tclass=file permissive=1 ./sys/devices/platform/soc/5900000.qcom,kgsl-3d0/kgsl/
kgsl-3d0/gpu_available_frequencies
[38.063659] type=1400 audit(4779.247:58): avc: denied { getattr } for comm="thermal-engine-"
path="/sys/devices/platform/soc/5900000.qcom,kgsl-3d0/kgsl/kgsl-3d0/gpu_available_frequencies"
dev="sysfs" ino=76022 scontext=u:r:vendor_thermal-engine:s0 tcontext=u:object
r:sysfs:s0 tclass=file permissive=1
Change-Id: I394b8b390252f31b908bd2ec543e4916362f6f77
Signed-off-by: Nitesh Kumar <quic_nitekuma@quicinc.com>
diff --git a/qva/vendor/trinket/genfs_contexts b/qva/vendor/trinket/genfs_contexts
index 27d3990..a68dedd 100644
--- a/qva/vendor/trinket/genfs_contexts
+++ b/qva/vendor/trinket/genfs_contexts
@@ -121,6 +121,7 @@
genfscon sysfs /devices/platform/soc/soc:qcom,cpu-cpu-ddr-bw/devfreq u:object_r:vendor_sysfs_devfreq:s0
genfscon sysfs /devices/platform/soc/5900000.qcom,kgsl-3d0/kgsl/kgsl-3d0/devfreq u:object_r:vendor_sysfs_devfreq:s0
genfscon sysfs /devices/platform/soc/5900000.qcom,kgsl-3d0/devfreq u:object_r:vendor_sysfs_devfreq:s0
+genfscon sysfs /devices/platform/soc/5900000.qcom,kgsl-3d0/kgsl/kgsl-3d0/gpu_available_frequencies u:object_r:vendor_sysfs_devfreq:s0
genfscon sysfs /devices/platform/soc/soc:qcom,gpubw/devfreq u:object_r:vendor_sysfs_devfreq:s0
genfscon sysfs /devices/platform/soc/soc:qcom,kgsl-busmon/devfreq u:object_r:vendor_sysfs_devfreq:s0
genfscon sysfs /devices/platform/soc/soc:qcom,cpu4-cpu-ddr-lat/devfreq u:object_r:vendor_sysfs_devfreq:s0