fix bionic C uid

Signed-off-by: baiwei <hanzhen10@huawei.com>
This commit is contained in:
baiwei 2022-04-24 11:09:01 +08:00
parent acf2c9eb12
commit 05ba149adc
2 changed files with 25 additions and 1 deletions

View File

@ -19,7 +19,11 @@ ohos_sa_profile("coauth_sa_profile") {
part_name = "${coauth_native_part_name}"
}
ohos_prebuilt_etc("useriam.init") {
source = "useriam.cfg"
if (use_musl) {
source = "useriam.cfg"
} else {
source = "useriam_bionic.cfg"
}
relative_install_dir = "init"
part_name = "user_auth"
subsystem_name = "useriam"

View File

@ -0,0 +1,20 @@
{
"jobs" : [{
"name" : "service:useriam",
"cmds" : [
"mkdir /data/useriam/ 0700 ohos_useriam ohos_useriam"
]
}
],
"services" : [{
"name" : "useriam",
"path" : ["/system/bin/sa_main", "/system/profile/useriam.xml"],
"uid" : "ohos_useriam",
"gid" : ["ohos_useriam", "shell"],
"secon" : "u:r:useriam:s0",
"jobs" : {
"on-start" : "service:useriam"
}
}
]
}