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:
BanYG 2023-05-28 09:41:22 +00:00
parent 5420cf6ae4
commit 1ee3cc8fe2
3 changed files with 1 additions and 41 deletions

View File

@ -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"

View File

@ -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"],

View File

@ -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"
}
}
]
}