sepolicy: Add sysfs path for v5.4-rc1+ kernels
Upstream kernel commit a1875bf98290 ("arm64: dts:
qcom: sdm845: Add unit name to soc node") broke sysfs
path for sdm845 devices running kernel v5.4-rc1 and above.
This broke display on db845c when selinux is enforced.
Change-Id: Ic447b3747c3f6ac40141ba8e74f0101c42a4f214
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
diff --git a/sepolicy/genfs_contexts b/sepolicy/genfs_contexts
index 52338f0..0816df9 100644
--- a/sepolicy/genfs_contexts
+++ b/sepolicy/genfs_contexts
@@ -1,3 +1,6 @@
genfscon sysfs /devices/platform/soc/ae00000.mdss u:object_r:sysfs_gpu:s0
-
genfscon sysfs /devices/platform/soc/c440000.spmi/spmi-0/0-00/c440000.spmi:pmic@0:rtc@6000 u:object_r:sysfs_rtc:s0
+
+# sysfs path changed in v5.4+ kernel for sdm845 devices
+genfscon sysfs /devices/platform/soc@0/ae00000.mdss u:object_r:sysfs_gpu:s0
+genfscon sysfs /devices/platform/soc@0/c440000.spmi/spmi-0/0-00/c440000.spmi:pmic@0:rtc@6000 u:object_r:sysfs_rtc:s0