summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordcashman <dcashman@google.com>2015-08-07 10:34:19 -0700
committerdcashman <dcashman@google.com>2015-08-07 10:34:19 -0700
commita715e77c6726d748b17e68a56d442a46e1b07317 (patch)
treef2f850ab402e690e9c0cba382cb31f520417d58f
parent84c413e347a6184953ee445f64528d423dc76a26 (diff)
downloadangler-a715e77c6726d748b17e68a56d442a46e1b07317.tar.gz
Allow system_app to start ppd service.
Address the following denials: [ 64.937254] init: avc: denied { set } for property=ctl.ppd scontext=u:r:system_app:s0 tcontext=u:object_r:ctl_default_prop:s0 tclass=property_service Bug: 21435401 Change-Id: Idb30c64e0398d52b0459abb77033b40fdff00f92
-rw-r--r--sepolicy/property.te1
-rw-r--r--sepolicy/property_contexts3
-rw-r--r--sepolicy/system_app.te2
3 files changed, 5 insertions, 1 deletions
diff --git a/sepolicy/property.te b/sepolicy/property.te
index 05221e1..e21d75a 100644
--- a/sepolicy/property.te
+++ b/sepolicy/property.te
@@ -1 +1,2 @@
type qcom_ims_prop, property_type;
+type ctl_ppd_prop, property_type;
diff --git a/sepolicy/property_contexts b/sepolicy/property_contexts
index 479b18a..f380ee6 100644
--- a/sepolicy/property_contexts
+++ b/sepolicy/property_contexts
@@ -1 +1,2 @@
-sys.ims. u:object_r:qcom_ims_prop:s0 \ No newline at end of file
+sys.ims. u:object_r:qcom_ims_prop:s0
+ctl.ppd u:object_r:ctl_ppd_prop:s0
diff --git a/sepolicy/system_app.te b/sepolicy/system_app.te
index cbd527c..5043d50 100644
--- a/sepolicy/system_app.te
+++ b/sepolicy/system_app.te
@@ -1 +1,3 @@
unix_socket_connect(system_app, cnd, cnd)
+
+set_prop(system_app, ctl_ppd_prop)