mirror of
https://gitee.com/openharmony/useriam_user_auth_framework
synced 2024-12-12 10:18:00 +00:00
Change the uid/gid of the southbound process from useriam to their respective definitions
Signed-off-by: BanYG <matengfei19@huawei.com>
This commit is contained in:
parent
5420cf6ae4
commit
1ee3cc8fe2
@ -25,11 +25,7 @@ ohos_sa_profile("userauth_sa_profile") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ohos_prebuilt_etc("useriam.init") {
|
ohos_prebuilt_etc("useriam.init") {
|
||||||
if (use_musl) {
|
|
||||||
source = "useriam.cfg"
|
source = "useriam.cfg"
|
||||||
} else {
|
|
||||||
source = "useriam_bionic.cfg"
|
|
||||||
}
|
|
||||||
relative_install_dir = "init"
|
relative_install_dir = "init"
|
||||||
|
|
||||||
subsystem_name = "useriam"
|
subsystem_name = "useriam"
|
||||||
|
@ -1,11 +1,4 @@
|
|||||||
{
|
{
|
||||||
"jobs" : [{
|
|
||||||
"name" : "service:useriam",
|
|
||||||
"cmds" : [
|
|
||||||
"mkdir /data/service/el1/public/userauth/ 0700 useriam useriam"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"services" : [{
|
"services" : [{
|
||||||
"name" : "useriam",
|
"name" : "useriam",
|
||||||
"path" : ["/system/bin/sa_main", "/system/profile/useriam.json"],
|
"path" : ["/system/bin/sa_main", "/system/profile/useriam.json"],
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
{
|
|
||||||
"jobs" : [{
|
|
||||||
"name" : "service:useriam",
|
|
||||||
"cmds" : [
|
|
||||||
"mkdir /data/service/el1/public/userauth/ 0700 ohos_useriam ohos_useriam"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"services" : [{
|
|
||||||
"name" : "useriam",
|
|
||||||
"path" : ["/system/bin/sa_main", "/system/profile/useriam.json"],
|
|
||||||
"uid" : "ohos_useriam",
|
|
||||||
"gid" : ["ohos_useriam", "shell"],
|
|
||||||
"apl" : "system_basic",
|
|
||||||
"permission" : [
|
|
||||||
"ohos.permission.ACCESS_AUTH_RESPOOL",
|
|
||||||
"ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS_EXTENSION"
|
|
||||||
],
|
|
||||||
"permission_acls" : [
|
|
||||||
"ohos.permission.ACCESS_AUTH_RESPOOL",
|
|
||||||
"ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS_EXTENSION"
|
|
||||||
],
|
|
||||||
"secon" : "u:r:useriam:s0",
|
|
||||||
"jobs" : {
|
|
||||||
"on-start" : "service:useriam"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user