• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

device/generic/common


Commit MetaInfo

Revisión10cbe2b3b01eb86b197520f75cb231afb00269c7 (tree)
Tiempo2018-03-06 18:43:17
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

init.x86.rc: set SELinux domain to exec and services

To avoid the service does not have a SELinux domain defined warning.

Cambiar Resumen

Diferencia incremental

--- a/init.x86.rc
+++ b/init.x86.rc
@@ -15,7 +15,7 @@ on fs
1515 mount_all /fstab.${ro.hardware}
1616
1717 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
1919
2020 on post-fs-data
2121 mkdir /data/misc/wifi 0770 wifi wifi
@@ -61,6 +61,7 @@ service nativebridge /system/bin/enable_nativebridge
6161 class main
6262 disabled
6363 oneshot
64+ seclabel u:r:zygote:s0
6465
6566 service logcat /system/bin/logcat -b all -v threadtime -f /data/log.txt
6667 class debug
@@ -69,24 +70,29 @@ service btattach /system/bin/btattach
6970 class main
7071 disabled
7172 oneshot
73+ seclabel u:r:bluetooth:s0
7274
7375 service rtk_hciattach /vendor/bin/rtk_hciattach -n -s 115200 /dev/rtk_h5 rtk_h5
7476 class main
7577 disabled
7678 oneshot
79+ seclabel u:r:bluetooth:s0
7780
7881 service wacom-input /system/bin/wacom-input
7982 disabled
8083 oneshot
84+ seclabel u:r:inputflinger:s0
8185
8286 service tablet-mode /system/bin/tablet-mode
8387 disabled
8488 oneshot
89+ seclabel u:r:inputflinger:s0
8590
8691 service ctrl-alt-del /system/bin/input keyevent --longpress POWER
8792 disabled
8893 oneshot
8994 keycodes 97 100 111
95+ seclabel u:r:init:s0
9096
9197 on property:system_init.startsurfaceflinger=0
9298 # disable cursor blinking
@@ -96,10 +102,10 @@ on property:system_init.startsurfaceflinger=0
96102
97103 on property:sys.boot_completed=1
98104 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
100106
101107 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
103109
104110 on property:debug.logcat=1
105111 class_start debug