mirror of
https://gitee.com/openharmony/useriam_user_auth_framework
synced 2024-11-27 01:40:49 +00:00
fix bionic C uid
Signed-off-by: baiwei <hanzhen10@huawei.com>
This commit is contained in:
parent
acf2c9eb12
commit
05ba149adc
@ -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"
|
||||
|
20
sa_profile/co_auth/useriam_bionic.cfg
Normal file
20
sa_profile/co_auth/useriam_bionic.cfg
Normal 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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user