startup_init/services/etc/console.user.cfg
cheng_jinsong 0689dad6f2 OpenHarmony console降权(非root)修改passwd shadow文件适配
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2023-05-16 14:15:19 +08:00

19 lines
473 B
INI

{
"services" : [{
"name" : "console",
"path" : ["/system/bin/sh"],
"disabled" : 1,
"console" : 1,
"sandbox" : 0,
"uid" : "shell",
"gid" : ["shell", "log", "readproc"],
"ondemand" : true,
"jobs" : {
"on-start" : "services:console"
},
"caps" : ["SETGID", "SETUID"],
"secon" : "u:r:console:s0"
}
]
}