summaryrefslogtreecommitdiff
authorivan.nie <ivan.nie@amlogic.com>2018-11-02 07:33:34 (GMT)
committer xiaoliang wang <xiaoliang.wang@amlogic.com>2018-11-06 05:27:51 (GMT)
commit4ba2f44aa748c4c2b2ce0d0cc3a98801821e0f32 (patch)
tree4c9f607395a10e79d2cfd4e86b9fa7a3a1ecfd43
parent64bc3b285adffe51e42a93c3f3055c888c8a6350 (diff)
downloadcommon-4ba2f44aa748c4c2b2ce0d0cc3a98801821e0f32.zip
common-4ba2f44aa748c4c2b2ce0d0cc3a98801821e0f32.tar.gz
common-4ba2f44aa748c4c2b2ce0d0cc3a98801821e0f32.tar.bz2
selinux: Modify Hdmi output mode set flow! [2/2]
BUG=118852228 PD#OTT-138 Problem: While hdmi tx is supported, the output mode would only set to 50hz or 60hz. Solution: Add hdmi TX supported check action.While TX is supported, the output frame rate would according to output device. Change-Id: Ib98a86acb64ed4549bba0bfaf3ca06043e332e5e Verify:
Diffstat
-rw-r--r--sepolicy/file_contexts1
-rw-r--r--sepolicy/tvserver.te3
2 files changed, 4 insertions, 0 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index b64d41e..9e8c58b 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -159,6 +159,7 @@
/sys/class/amhdmitx/amhdmitx0/sink_type u:object_r:sysfs_amhdmitx:s0
/sys/class/amhdmitx/amhdmitx0/edid_parsing u:object_r:sysfs_amhdmitx:s0
/sys/class/amhdmitx/amhdmitx0/hdcp_mode u:object_r:sysfs_amhdmitx:s0
+/sys/class/amhdmitx/amhdmitx0/disp_cap u:object_r:sysfs_amhdmitx:s0
/sys/module/amvdec_h265/parameters/double_write_mode u:object_r:sysfs_amvdec:s0
/sys/devices/virtual/remote/amremote(/.*)? u:object_r:sysfs_remote:s0
diff --git a/sepolicy/tvserver.te b/sepolicy/tvserver.te
index 42b1c2d..c10e154 100644
--- a/sepolicy/tvserver.te
+++ b/sepolicy/tvserver.te
@@ -59,3 +59,6 @@ allow tvserver mnt_vendor_file:file { create open write setattr getattr lock rea
allow tvserver platform_app:binder { call };
allow tvserver sysfs:file { read write open };
+
+allow tvserver sysfs_amhdmitx:dir search;
+allow tvserver sysfs_amhdmitx:file { write open read getattr };