sepolicy: Add a vendor rule to access gpuclk sysfs
Graphics driver requires access to gpuclk to support
GL_EXT_disjoint_timer_query extension. So add a policy
rule to give access.
Addressing the following denail:
avc: denied { open } for path="/sys/devices/platform/
soc/3d00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/gpuclk" dev="sysfs"
ino=69171 scontext=u:r:untrusted_app_25:s0:c512,c768
tcontext=u:object_r:sysfs_kgsl:s0 tclass=file permissive=1
app=net.kishonti.gfxbench.vulkan.v50000.corporate
Change-Id: I0b5b3371c8081e8886e6691c004058583370c5d0
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
3 files changed