diff --git a/duoqin/selinux/file_contexts b/duoqin/selinux/file_contexts index 9c7f153..346cb48 100644 --- a/duoqin/selinux/file_contexts +++ b/duoqin/selinux/file_contexts @@ -1 +1 @@ -/system/bin/wephone-boot.sh u:object_r:wephone_boot_exec:s0 \ No newline at end of file +/system/bin/wephone-boot.sh u:object_r:wephone_exec:s0 \ No newline at end of file diff --git a/duoqin/selinux/wephone.te b/duoqin/selinux/wephone.te index de44f90..c389191 100644 --- a/duoqin/selinux/wephone.te +++ b/duoqin/selinux/wephone.te @@ -1,2 +1,8 @@ -type wephone_boot, domain; -type wephone_boot_exec, system_file_type, exec_type, file_type; \ No newline at end of file +type wephone, domain; +type wephone_exec, exec_type, file_type; + +type wephone, domain; +type wephone_exec, exec_type, file_type; + + +init_daemon_domain(wephone) \ No newline at end of file diff --git a/duoqin/wephone.rc b/duoqin/wephone.rc index 043fc7d..56deabc 100644 --- a/duoqin/wephone.rc +++ b/duoqin/wephone.rc @@ -1,8 +1,6 @@ -service wephone_boot /system/bin/wephone-boot.sh - user root +service wephone /system/bin/wephone-boot.sh oneshot disabled - seclabel u:r:wephone_boot:s0 on property:sys.boot_completed=1 start wephone_boot \ No newline at end of file