diff --git a/sa_profile/BUILD.gn b/sa_profile/BUILD.gn index 5a9101bc498f3d6908420b821cff93f451197019..d4aacf2b62030a433b6e3b6ab28f6e5140a19469 100644 --- a/sa_profile/BUILD.gn +++ b/sa_profile/BUILD.gn @@ -19,7 +19,12 @@ 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_sys.cfg" + } + relative_install_dir = "init" part_name = "auth_executor_mgr" subsystem_name = "useriam" diff --git a/sa_profile/useriam_sys.cfg b/sa_profile/useriam_sys.cfg new file mode 100644 index 0000000000000000000000000000000000000000..af3b03adc47ef42e877f4d81157476bc849a6d13 --- /dev/null +++ b/sa_profile/useriam_sys.cfg @@ -0,0 +1,20 @@ +{ + "jobs" : [{ + "name" : "service:useriam", + "cmds" : [ + "mkdir /data/useriam/ 0700 system system" + ] + } + ], + "services" : [{ + "name" : "useriam", + "path" : ["/system/bin/sa_main", "/system/profile/useriam.xml"], + "uid" : "system", + "gid" : ["system", "shell"], + "secon" : "u:r:useriam:s0", + "jobs" : { + "on-start" : "service:useriam" + } + } + ] +}