From 97382f336c90e78c6c05ce46189bad4099f0584f Mon Sep 17 00:00:00 2001 From: Amit Pundir Date: Thu, 16 Mar 2023 01:00:18 +0530 Subject: sepolicy: Add ae00000.display-subsystem sysfs path for v6.3-rc1+ kernel versions v6.3 merge window commit ecf0f5ff152b ("arm64: dts: qcom: rename mdss nodes to display-subsystem") renamed mdss nodes to display-subsystem thereby breaking the display on db845c and rb5 running AOSP with v6.3-rc1+ kernel versions with selinux in enforcing mode. This sepolicy patch provide relevant display services and applications access to ae00000.display-subsystem sysfs path to support booting with newer kernel versions. Change-Id: I82f9d2b6b2d1c9fcda9bc5f6ef8b4c674ba5c456 Signed-off-by: Amit Pundir --- sepolicy/file_contexts | 1 + sepolicy/genfs_contexts | 1 + 2 files changed, 2 insertions(+) diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index d7419dc..c7eb6db 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -20,6 +20,7 @@ /sys/devices/platform/soc@0/8300000.remoteproc u:object_r:sysfs_remoteproc:s0 /sys/devices/platform/soc@0/17300000.remoteproc u:object_r:sysfs_remoteproc:s0 /sys/devices/platform/soc@0/ae00000.mdss u:object_r:sysfs_gpu:s0 +/sys/devices/platform/soc@0/ae00000.display-subsystem u:object_r:sysfs_gpu:s0 #wakeups on db845c /sys/devices/platform/soc@0/1c00000.pci/pci0000:00/0000:00:00.0/0000:01:00.0/wakeup/wakeup1 u:object_r:sysfs_wakeup:s0 diff --git a/sepolicy/genfs_contexts b/sepolicy/genfs_contexts index 2a50d9c..4d7f4ea 100644 --- a/sepolicy/genfs_contexts +++ b/sepolicy/genfs_contexts @@ -6,6 +6,7 @@ genfscon sysfs /devices/platform/soc@0/4080000.remoteproc u:object_r:sysfs genfscon sysfs /devices/platform/soc@0/8300000.remoteproc u:object_r:sysfs_remoteproc:s0 genfscon sysfs /devices/platform/soc@0/17300000.remoteproc u:object_r:sysfs_remoteproc:s0 genfscon sysfs /devices/platform/soc@0/ae00000.mdss u:object_r:sysfs_gpu:s0 +genfscon sysfs /devices/platform/soc@0/ae00000.display-subsystem u:object_r:sysfs_gpu:s0 genfscon sysfs /class/udc u:object_r:sysfs_udc:s0 genfscon sysfs /firmware/devicetree/base/compatible u:object_r:sysfs_dt_compatible:s0 -- cgit v1.2.3