From 60c4276c15fe1c085dd2c54a01983dd4c90e5d74 Mon Sep 17 00:00:00 2001 From: Changyeon Jo Date: Tue, 16 Apr 2019 08:35:10 -0700 Subject: [PATCH] Allow adb start/stop mdnsd via ctl.start/stop Bug: 128345139 Test: make selinux_policy Change-Id: I477d6d94c16974f23f703d5f334ef108279ab3bb Signed-off-by: Changyeon Jo (cherry picked from commit cfeaa1c664afbd10c7a52e845ec4c08c9eabb525) --- prebuilts/api/29.0/public/adbd.te | 3 +++ public/adbd.te | 3 +++ 2 files changed, 6 insertions(+) diff --git a/prebuilts/api/29.0/public/adbd.te b/prebuilts/api/29.0/public/adbd.te index 68a176ca6..4a1f63388 100644 --- a/prebuilts/api/29.0/public/adbd.te +++ b/prebuilts/api/29.0/public/adbd.te @@ -6,3 +6,6 @@ type adbd_exec, exec_type, file_type, system_file_type; # Only init is allowed to enter the adbd domain via exec() neverallow { domain -init } adbd:process transition; neverallow * adbd:process dyntransition; + +# Allow adbd start/stop mdnsd via ctl.start +set_prop(adbd, ctl_mdnsd_prop) diff --git a/public/adbd.te b/public/adbd.te index 68a176ca6..4a1f63388 100644 --- a/public/adbd.te +++ b/public/adbd.te @@ -6,3 +6,6 @@ type adbd_exec, exec_type, file_type, system_file_type; # Only init is allowed to enter the adbd domain via exec() neverallow { domain -init } adbd:process transition; neverallow * adbd:process dyntransition; + +# Allow adbd start/stop mdnsd via ctl.start +set_prop(adbd, ctl_mdnsd_prop)