diff options
author | Zun Qiao <quic_zqiao@quicinc.com> | 2023-04-06 11:57:33 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2023-04-11 21:22:11 -0700 |
commit | ab368ccb193269fb391ab330d0416dc3a66effd8 (patch) | |
tree | e01f52ab3ea179a8dda0fe0a836623d3993aa7b4 | |
parent | f1dfbfd16a816832f0bb50c075458fe72f130274 (diff) |
sepolicy_vndr: Add access rules for HDMI bridge
Add access rules for HDMI bridge for kona target.
Change-Id: Id6e0c6d56c8134af4d974c504dcba39210d9845a
-rw-r--r-- | qva/vendor/kona/device.te | 3 | ||||
-rw-r--r-- | qva/vendor/kona/file_contexts | 3 | ||||
-rw-r--r-- | qva/vendor/kona/hal_camera.te | 5 |
3 files changed, 11 insertions, 0 deletions
diff --git a/qva/vendor/kona/device.te b/qva/vendor/kona/device.te index e2cca8ac..09722371 100644 --- a/qva/vendor/kona/device.te +++ b/qva/vendor/kona/device.te @@ -3,3 +3,6 @@ #define cec device type vendor_cec_device, dev_type; + +#define HDMI-IN device +type vendor_hdmi_bdg_irq_device, dev_type; diff --git a/qva/vendor/kona/file_contexts b/qva/vendor/kona/file_contexts index f65da4f6..615c19f1 100644 --- a/qva/vendor/kona/file_contexts +++ b/qva/vendor/kona/file_contexts @@ -92,6 +92,9 @@ /dev/block/platform/soc/1d84000.ufshc/by-name/limits u:object_r:vendor_limits_block_device:s0 /dev/block/platform/soc/1d84000.ufshc/by-name/limits-cdsp u:object_r:vendor_limits_block_device:s0 +# dev nodes +/dev/hdmi_bdg_irq_handler u:object_r:vendor_hdmi_bdg_irq_device:s0 + #Display nodes /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DP-1/enabled u:object_r:vendor_sysfs_graphics:s0 /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-2/enabled u:object_r:vendor_sysfs_graphics:s0 diff --git a/qva/vendor/kona/hal_camera.te b/qva/vendor/kona/hal_camera.te new file mode 100644 index 00000000..1c9ab9ce --- /dev/null +++ b/qva/vendor/kona/hal_camera.te @@ -0,0 +1,5 @@ +# Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear + +#Allow camera to access hdmi bridge device +allow hal_camera_default vendor_hdmi_bdg_irq_device:chr_file rw_file_perms; |