diff --git a/sa_profile/BUILD.gn b/sa_profile/BUILD.gn index 83fd3c162..d0e5c4d91 100644 --- a/sa_profile/BUILD.gn +++ b/sa_profile/BUILD.gn @@ -25,11 +25,7 @@ ohos_sa_profile("userauth_sa_profile") { } ohos_prebuilt_etc("useriam.init") { - if (use_musl) { - source = "useriam.cfg" - } else { - source = "useriam_bionic.cfg" - } + source = "useriam.cfg" relative_install_dir = "init" subsystem_name = "useriam" diff --git a/sa_profile/useriam.cfg b/sa_profile/useriam.cfg index 89984c94f..170a7339d 100644 --- a/sa_profile/useriam.cfg +++ b/sa_profile/useriam.cfg @@ -1,11 +1,4 @@ { - "jobs" : [{ - "name" : "service:useriam", - "cmds" : [ - "mkdir /data/service/el1/public/userauth/ 0700 useriam useriam" - ] - } - ], "services" : [{ "name" : "useriam", "path" : ["/system/bin/sa_main", "/system/profile/useriam.json"], diff --git a/sa_profile/useriam_bionic.cfg b/sa_profile/useriam_bionic.cfg deleted file mode 100644 index 95a986f29..000000000 --- a/sa_profile/useriam_bionic.cfg +++ /dev/null @@ -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" - } - } - ] -}