2021-07-15 03:09:18 +00:00
|
|
|
{
|
2023-07-07 12:19:02 +00:00
|
|
|
"jobs" : [{
|
|
|
|
"name" : "service:nwebspawn",
|
|
|
|
"cmds" : [
|
|
|
|
"mkdir /mnt/sandbox",
|
2024-04-13 10:58:15 +00:00
|
|
|
"mkdir /mnt/sandbox/com.ohos.render/ 0711 nwebspawn nwebspawn",
|
|
|
|
"mkdir /mnt/startup",
|
|
|
|
"mkdir /mnt/startup/appspawn 0700 root root",
|
|
|
|
"mkdir /mnt/startup/nwebspawn/ 0700 nwebspawn nwebspawn"
|
2023-07-07 12:19:02 +00:00
|
|
|
]
|
2024-02-05 06:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name" : "init",
|
|
|
|
"cmds" : [
|
|
|
|
"mkdir /dev/pids",
|
|
|
|
"mount cgroup none /dev/pids pids",
|
|
|
|
"chown root appspawn /dev/pids",
|
|
|
|
"chown root appspawn /dev/pids/tasks",
|
|
|
|
"chown root appspawn /dev/pids/cgroup.procs",
|
2024-07-12 07:03:04 +00:00
|
|
|
"chmod 0750 /dev/pids",
|
|
|
|
"chmod 0750 /dev/pids/tasks",
|
|
|
|
"chmod 0750 /dev/pids/cgroup.procs"
|
2024-02-05 06:04:50 +00:00
|
|
|
]
|
2023-07-07 12:19:02 +00:00
|
|
|
}
|
|
|
|
],
|
2021-07-15 03:09:18 +00:00
|
|
|
"services" : [{
|
|
|
|
"name" : "appspawn",
|
2022-08-26 02:28:51 +00:00
|
|
|
"path" : ["/system/bin/appspawn",
|
2024-04-13 10:58:15 +00:00
|
|
|
"-mode appspawn",
|
2022-10-11 05:51:50 +00:00
|
|
|
"--process-name com.ohos.appspawn.startup --start-flags daemon --type standard ",
|
|
|
|
"--sandbox-switch on --bundle-name com.ohos.appspawn.startup --app-operate-type operate ",
|
|
|
|
"--render-command command --app-launch-type singleton --app-visible true"],
|
2021-07-15 03:09:18 +00:00
|
|
|
"importance" : -20,
|
2024-03-25 08:35:43 +00:00
|
|
|
"critical" : [1, 4, 240],
|
2021-07-15 03:09:18 +00:00
|
|
|
"uid" : "root",
|
2022-02-09 07:45:11 +00:00
|
|
|
"gid" : ["root"],
|
2023-09-02 10:14:59 +00:00
|
|
|
"socket" : [{
|
|
|
|
"name" : "AppSpawn",
|
|
|
|
"family" : "AF_LOCAL",
|
|
|
|
"type" : "SOCK_STREAM",
|
|
|
|
"protocol" : "default",
|
|
|
|
"permissions" : "0660",
|
|
|
|
"uid" : "root",
|
|
|
|
"gid" : "appspawn",
|
|
|
|
"option" : [
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name" : "NWebSpawn",
|
|
|
|
"family" : "AF_LOCAL",
|
|
|
|
"type" : "SOCK_STREAM",
|
|
|
|
"protocol" : "default",
|
|
|
|
"permissions" : "0666",
|
|
|
|
"uid" : "nwebspawn",
|
|
|
|
"gid" : "nwebspawn",
|
|
|
|
"option" : [
|
|
|
|
]
|
|
|
|
}],
|
2022-09-13 03:08:59 +00:00
|
|
|
"sandbox" : 0,
|
2022-05-06 04:29:24 +00:00
|
|
|
"start-mode" : "boot",
|
2022-09-13 08:31:04 +00:00
|
|
|
"secon" : "u:r:appspawn:s0",
|
2023-07-07 12:19:02 +00:00
|
|
|
"jobs" : {
|
|
|
|
"on-start" : "service:nwebspawn"
|
|
|
|
},
|
2022-09-13 08:31:04 +00:00
|
|
|
"bootevents" : "bootevent.appspawn.started"
|
2021-07-15 03:09:18 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|