summaryrefslogtreecommitdiff
authorXindong Xu <xindong.xu@amlogic.com>2018-10-24 04:01:14 (GMT)
committer Lu Wang <lu.wang@amlogic.com>2018-11-08 06:15:17 (GMT)
commit98707427827077bf4f8a7116e7a531d59aae8440 (patch)
treee8e2dc5ae9f5f5d0187a105fb7d09c342aaa8817
parent64bc3b285adffe51e42a93c3f3055c888c8a6350 (diff)
downloadcommon-98707427827077bf4f8a7116e7a531d59aae8440.zip
common-98707427827077bf4f8a7116e7a531d59aae8440.tar.gz
common-98707427827077bf4f8a7116e7a531d59aae8440.tar.bz2
sepolicy: add sepolicy for quiescent reboot [4/4]
bug: 117679594 Problem: Android TV need reboot_reason quiescent Solution: add sepolicy for quiescent reboot Verify: Beast,ampere Change-Id: I8be794f752af0fbb4e2c7aeb8f14d1674ae24259
Diffstat
-rw-r--r--sepolicy/file_contexts1
-rw-r--r--sepolicy/recovery.te2
-rw-r--r--sepolicy/system_control.te2
3 files changed, 5 insertions, 0 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index b64d41e..cce6cb9 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -174,6 +174,7 @@
/vendor/etc/mesondisplay.cfg u:object_r:vendor_app_file:s0
/sys/class/display2/mode u:object_r:sysfs_display:s0
+/sys/class/display/mode u:object_r:sysfs_display:s0
/sys/class/video/video_layer1_state u:object_r:sysfs_display:s0
/sys/class/graphics(/.*)? u:object_r:sysfs_display:s0
diff --git a/sepolicy/recovery.te b/sepolicy/recovery.te
index 1d118f9..e2f49eb 100644
--- a/sepolicy/recovery.te
+++ b/sepolicy/recovery.te
@@ -129,5 +129,7 @@ allow recovery sysfs_display:lnk_file { open read write getattr };
allow init reco_file:file { open read create write };
+get_prop(recovery, aml_display_prop)
+
allow shell tmpfs:file {open read getattr};
allow shell rootfs:file {execute_no_trans};
diff --git a/sepolicy/system_control.te b/sepolicy/system_control.te
index d7b8644..d7d3df3 100644
--- a/sepolicy/system_control.te
+++ b/sepolicy/system_control.te
@@ -67,6 +67,8 @@ set_prop(system_control, bluetooth_prop)
set_prop(system_control, persistent_properties_ready_prop)
+get_prop(system_control, system_boot_reason_prop)
+
# ctl interface
set_prop(system_control, ctl_default_prop)
set_prop(system_control, ctl_dhcp_pan_prop)