summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Shields <keepcalm444@gmail.com>2016-12-18 22:08:21 +1100
committerTrafalgar Square <schneller.demian@gmail.com>2016-12-19 15:33:19 +0100
commit83a3369867d0713bda8cd49a42f6165a787f288f (patch)
tree8a67009470f892e0856ee121db72d1a2fe191f11
parent9c862df842a83776e1fcbd88269f718814598022 (diff)
i9300: move cbd to /system
Change-Id: I7c067bc37c7a7fbe2dfeaa0128363372ff52ce9c
-rw-r--r--rootdir/init.target.rc2
-rw-r--r--selinux/cpboot-daemon.te2
-rw-r--r--selinux/file_contexts1
3 files changed, 4 insertions, 1 deletions
diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc
index 55c7369..f20ed0d 100644
--- a/rootdir/init.target.rc
+++ b/rootdir/init.target.rc
@@ -95,7 +95,7 @@ on fs
on boot
# cbd
-service cpboot-daemon /sbin/cbd -d
+service cpboot-daemon /system/bin/cbd -d
class main
user root
group radio cache inet misc audio sdcard_rw log
diff --git a/selinux/cpboot-daemon.te b/selinux/cpboot-daemon.te
index 9974ff2..12157c4 100644
--- a/selinux/cpboot-daemon.te
+++ b/selinux/cpboot-daemon.te
@@ -1,4 +1,6 @@
type cpboot-daemon, domain;
+type cpboot-daemon_exec, exec_type, file_type;
+init_daemon_domain(cpboot-daemon);
permissive cpboot-daemon;
diff --git a/selinux/file_contexts b/selinux/file_contexts
index 291135c..ed08384 100644
--- a/selinux/file_contexts
+++ b/selinux/file_contexts
@@ -6,6 +6,7 @@
/dev/umts_ramdump0 u:object_r:radio_device:s0
/dev/umts_rfs0 u:object_r:radio_device:s0
/dev/__cbd_msg_ u:object_r:cbd_device:s0
+/system/bin/cbd u:object_r:cpboot-daemon_exec:s0
/efs u:object_r:efs_device_file:s0
/data/misc/radio(/.*)? u:object_r:radio_data:s0