From cbcd7d582926698c9c7019183867f7cd3d099a47 Mon Sep 17 00:00:00 2001 From: Shane Francis Date: Sun, 18 Jan 2015 19:20:32 +0000 Subject: init: Add mlog_qmi service All Z3 series need this service to keep modem alive Change-Id: Iba8ac16083d878a9a9864472d350ee4868f20c6a --- sepolicy/file_contexts | 3 +++ sepolicy/mlog_qmi.te | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 sepolicy/mlog_qmi.te (limited to 'sepolicy') diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 01b7557..d66e61a 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -7,3 +7,6 @@ # Hardware tunables /sys/devices/mdss_dsi_panel/cabc -- u:object_r:sysfs_display:s0 /sys/devices/virtual/timed_output/vibrator/vtg_level -- u:object_r:sysfs_vibrator:s0 + +# Modem +/system/bin/mlog_qmi_service u:object_r:mlog_qmi_exec:s0 diff --git a/sepolicy/mlog_qmi.te b/sepolicy/mlog_qmi.te new file mode 100644 index 0000000..4509083 --- /dev/null +++ b/sepolicy/mlog_qmi.te @@ -0,0 +1,10 @@ +type mlog_qmi, domain; +type mlog_qmi_exec, exec_type, file_type; + +# Started by init +init_daemon_domain(mlog_qmi) + +allow mlog_qmi self:socket create_socket_perms; + +# Access to /dev/smem_log +allow mlog_qmi smem_log_device:chr_file rw_file_perms; -- cgit v1.2.3