device/generic/common
Revisión | 10cbe2b3b01eb86b197520f75cb231afb00269c7 (tree) |
---|---|
Tiempo | 2018-03-06 18:43:17 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
init.x86.rc: set SELinux domain to exec and services
To avoid the service does not have a SELinux domain defined warning.
@@ -15,7 +15,7 @@ on fs | ||
15 | 15 | mount_all /fstab.${ro.hardware} |
16 | 16 | |
17 | 17 | on post-fs |
18 | - exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh | |
18 | + exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh | |
19 | 19 | |
20 | 20 | on post-fs-data |
21 | 21 | mkdir /data/misc/wifi 0770 wifi wifi |
@@ -61,6 +61,7 @@ service nativebridge /system/bin/enable_nativebridge | ||
61 | 61 | class main |
62 | 62 | disabled |
63 | 63 | oneshot |
64 | + seclabel u:r:zygote:s0 | |
64 | 65 | |
65 | 66 | service logcat /system/bin/logcat -b all -v threadtime -f /data/log.txt |
66 | 67 | class debug |
@@ -69,24 +70,29 @@ service btattach /system/bin/btattach | ||
69 | 70 | class main |
70 | 71 | disabled |
71 | 72 | oneshot |
73 | + seclabel u:r:bluetooth:s0 | |
72 | 74 | |
73 | 75 | service rtk_hciattach /vendor/bin/rtk_hciattach -n -s 115200 /dev/rtk_h5 rtk_h5 |
74 | 76 | class main |
75 | 77 | disabled |
76 | 78 | oneshot |
79 | + seclabel u:r:bluetooth:s0 | |
77 | 80 | |
78 | 81 | service wacom-input /system/bin/wacom-input |
79 | 82 | disabled |
80 | 83 | oneshot |
84 | + seclabel u:r:inputflinger:s0 | |
81 | 85 | |
82 | 86 | service tablet-mode /system/bin/tablet-mode |
83 | 87 | disabled |
84 | 88 | oneshot |
89 | + seclabel u:r:inputflinger:s0 | |
85 | 90 | |
86 | 91 | service ctrl-alt-del /system/bin/input keyevent --longpress POWER |
87 | 92 | disabled |
88 | 93 | oneshot |
89 | 94 | keycodes 97 100 111 |
95 | + seclabel u:r:init:s0 | |
90 | 96 | |
91 | 97 | on property:system_init.startsurfaceflinger=0 |
92 | 98 | # disable cursor blinking |
@@ -96,10 +102,10 @@ on property:system_init.startsurfaceflinger=0 | ||
96 | 102 | |
97 | 103 | on property:sys.boot_completed=1 |
98 | 104 | write /proc/sys/kernel/ctrl-alt-del 0 |
99 | - exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete | |
105 | + exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete | |
100 | 106 | |
101 | 107 | on property:net.dns1=* |
102 | - exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole | |
108 | + exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole | |
103 | 109 | |
104 | 110 | on property:debug.logcat=1 |
105 | 111 | class_start debug |