angler: thermal: allow thermal-engine daemon shutdown device when SELinux is enforcing
allow thermal-engine to shutdown device, add "shutdown" permission when SELinux is enforcing
BUGļ¼23923539
Signed-off-by: zhen yuan <richard.yuan@huawei.com>
Change-Id: Ief9374420d09fa0cdb3e6a32b9819d64ceb7c754
diff --git a/sepolicy/thermald.te b/sepolicy/thermald.te
index a64d5be..43f5856 100644
--- a/sepolicy/thermald.te
+++ b/sepolicy/thermald.te
@@ -19,3 +19,6 @@
# Grant access to Qualcomm MSM Interface (QMI) radio sockets to system services
# (e.g., LocationManager)
qmux_socket(thermald)
+
+# Reboot the device
+set_prop(thermald, powerctl_prop)