diff --git a/device_info/etc/deviceinfoservice.cfg b/device_info/etc/deviceinfoservice.cfg index 29a985c0562eecb3d8d31e8d8b5a242ce56aca67..50560956e6828b9980381a2bd0fe86691d1c3ba9 100755 --- a/device_info/etc/deviceinfoservice.cfg +++ b/device_info/etc/deviceinfoservice.cfg @@ -13,8 +13,8 @@ "services" : [{ "name" : "deviceinfoservice", "path" : ["/system/bin/sa_main", "/system/profile/deviceinfoservice.xml"], - "uid" : "system", - "gid" : ["system", "shell"], + "uid" : "deviceinfo", + "gid" : ["deviceinfo", "shell"], "jobs" : { "on-start" : "services:deviceinfoservice" }, diff --git a/services/etc/group b/services/etc/group index fc4bcb11204f55e45e265e48dfa5f3eef3f8da25..a8ba1a538812f5f11c96c591e17a1080af62e04d 100644 --- a/services/etc/group +++ b/services/etc/group @@ -96,4 +96,8 @@ pasteboard:x:3816: wallpaper:x:3817: screenlock:x:3818: time:x:3819: -inputmethod:x:3820: \ No newline at end of file +inputmethod:x:3820: +watchdog:x:1100: +paramwatcher:x:1101: +deviceinfo:x:1102: +accessibility:x:1103: diff --git a/services/etc/init.without_two_stages.cfg b/services/etc/init.without_two_stages.cfg index ce0afb5dc750d704c4b43a1ceb1741ef1129986f..e0445450d7ab5581cad1919a8f3dc304054cb31c 100755 --- a/services/etc/init.without_two_stages.cfg +++ b/services/etc/init.without_two_stages.cfg @@ -282,8 +282,8 @@ "name" : "watchdog_service", "path" : ["/system/bin/watchdog_service", "10", "2"], "disabled" : 1, - "uid" : "root", - "gid" : ["shell", "log", "readproc"], + "uid" : "watchdog", + "gid" : ["watchdog", "log", "readproc"], "start-mode" : "condition" }, { "name" : "misc", diff --git a/services/etc/passwd b/services/etc/passwd index 686efb90b8070393bdb953e517c8c8c72694e281..7a66e5a93d21675fecfb4d9aeb6ce7ffc4db7667 100644 --- a/services/etc/passwd +++ b/services/etc/passwd @@ -96,4 +96,8 @@ pasteboard:x:3816:3816:::/bin/false wallpaper:x:3817:3817:::/bin/false screenlock:x:3818:3818:::/bin/false time:x:3819:3819:::/bin/false -inputmethod:x:3820:3820:::/bin/false \ No newline at end of file +inputmethod:x:3820:3820:::/bin/false +watchdog:x:1100:1100:::/bin/false +paramwatcher:x:1101:1101:::/bin/false +deviceinfo:x:1102:1102:::/bin/false +accessibility:x:1103:1103:::/bin/false diff --git a/services/etc/watchdog.cfg b/services/etc/watchdog.cfg index 8b975e002879309e030b51e1d4833979e825f97e..9117ed5a5e3778834aad34a5cbe776dee6659664 100644 --- a/services/etc/watchdog.cfg +++ b/services/etc/watchdog.cfg @@ -5,8 +5,8 @@ "path" : ["/system/bin/watchdog_service", "10", "2"], "disabled" : 1, "sandbox" : 0, - "uid" : "root", - "gid" : ["shell", "log", "readproc"], + "uid" : "watchdog", + "gid" : ["watchdog", "log", "readproc"], "secon" : "u:r:watchdog_service:s0" } ] diff --git a/services/param/watcher/etc/param_watcher.cfg b/services/param/watcher/etc/param_watcher.cfg index 93a6858341a8c03393b9c9a214d6e301dc03a012..d588f10e8537312655654daf8428529ab692abba 100755 --- a/services/param/watcher/etc/param_watcher.cfg +++ b/services/param/watcher/etc/param_watcher.cfg @@ -2,9 +2,9 @@ "services" : [{ "name" : "param_watcher", "path" : ["/system/bin/sa_main", "/system/profile/param_watcher.xml"], - "uid" : "system", + "uid" : "paramwatcher", "start-mode" : "boot", - "gid" : ["system", "shell"], + "gid" : ["paramwatcher", "shell"], "secon" : "u:r:param_watcher:s0" } ] diff --git a/ueventd/etc/ueventd.config b/ueventd/etc/ueventd.config index e520cdc1cc1b394ed9b8f5a97aec4634aed21eca..d5347a4f9c2c5f4f72baa4635f24875dd8c0d247 100755 --- a/ueventd/etc/ueventd.config +++ b/ueventd/etc/ueventd.config @@ -71,3 +71,4 @@ /dev/uinput 0660 3011 3011 /dev/access_token_id 0666 3020 3020 /dev/block/sdd19 0660 6666 6666 +/dev/watchdog 0660 watchdog watchdog