Add framework ready param dac permission

Signed-off-by: wangxu43 <wangxu43@huawei.com>
Change-Id: Ic7744974eb0f6a0f8b88dd5f599b2df43a7b8c9d
This commit is contained in:
wangxu43 2022-10-24 19:41:27 +08:00
parent 1416cf060e
commit 0fe7cf0abc
5 changed files with 69 additions and 1 deletions

View File

@ -51,7 +51,8 @@
"//base/useriam/user_auth_framework/sa_profile:useriam.init",
"//base/useriam/user_auth_framework/services:userauthservice",
"//base/useriam/user_auth_framework/common/executors:userauth_executors",
"//base/useriam/user_auth_framework/sa_profile:userauth_sa_profile"
"//base/useriam/user_auth_framework/sa_profile:userauth_sa_profile",
"//base/useriam/user_auth_framework/param:param_files"
]
},
"inner_kits": [

38
param/BUILD.gn Normal file
View File

@ -0,0 +1,38 @@
# Copyright (c) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/ohos.gni")
## Install useriam.para to /system/etc/param/useriam.para
## Install useriam.para.dac to /system/etc/param/useriam.para.dac
group("param_files") {
deps = [
":useriam.para",
":useriam.para.dac",
]
}
ohos_prebuilt_etc("useriam.para") {
source = "useriam.para"
relative_install_dir = "param"
part_name = "user_auth_framework"
subsystem_name = "useriam"
}
ohos_prebuilt_etc("useriam.para.dac") {
source = "useriam.para.dac"
relative_install_dir = "param"
part_name = "user_auth_framework"
subsystem_name = "useriam"
}

14
param/useriam.para Normal file
View File

@ -0,0 +1,14 @@
# Copyright (c) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
bootevent.useriam.fwkready=false

14
param/useriam.para.dac Normal file
View File

@ -0,0 +1,14 @@
# Copyright (c) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
bootevent.useriam.fwkready="useriam:useriam:755"

View File

@ -119,6 +119,7 @@ void CoAuthService::Init()
UserIam::UserAuth::ReportSystemFault(Common::GetNowTimeString(), "user_auth_hdi host");
}));
IAM_LOGI("set fwk ready parameter");
SetParameter("bootevent.useriam.fwkready", "false");
SetParameter("bootevent.useriam.fwkready", "true");
} else {
RelativeTimer::GetInstance().Register(Init, DEFER_TIME);