xref: /base/account/os_account/hisysevent.yaml (revision c2b37d2c)
1c2b37d2cSopenharmony_ci# Copyright (c) 2021-2023 Huawei Device Co., Ltd.
2c2b37d2cSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3c2b37d2cSopenharmony_ci# you may not use this file except in compliance with the License.
4c2b37d2cSopenharmony_ci# You may obtain a copy of the License at
5c2b37d2cSopenharmony_ci#
6c2b37d2cSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7c2b37d2cSopenharmony_ci#
8c2b37d2cSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9c2b37d2cSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10c2b37d2cSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11c2b37d2cSopenharmony_ci# See the License for the specific language governing permissions and
12c2b37d2cSopenharmony_ci# limitations under the License.
13c2b37d2cSopenharmony_ci
14c2b37d2cSopenharmony_cidomain: ACCOUNT
15c2b37d2cSopenharmony_ci
16c2b37d2cSopenharmony_ciPERMISSION_EXCEPTION:
17c2b37d2cSopenharmony_ci  __BASE: {type: SECURITY, level: CRITICAL, desc: permission verification errors}
18c2b37d2cSopenharmony_ci  CALLER_UID: {type: INT32, desc: caller uid}
19c2b37d2cSopenharmony_ci  CALLER_PID: {type: INT32, desc: caller pid}
20c2b37d2cSopenharmony_ci  PERMISSION_NAME: {type: STRING, desc: permission name}
21c2b37d2cSopenharmony_ci
22c2b37d2cSopenharmony_ciSERVICE_START_FAILED:
23c2b37d2cSopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: service start errors}
24c2b37d2cSopenharmony_ci  ERROR_TYPE: {type: INT32, desc: error code}
25c2b37d2cSopenharmony_ci  ERROR_MSG: {type: STRING, desc: error message}
26c2b37d2cSopenharmony_ci
27c2b37d2cSopenharmony_ciOS_ACCOUNT_FAILED:
28c2b37d2cSopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: os account operation errors}
29c2b37d2cSopenharmony_ci  ID: {type: INT32, desc: the id of an os account}
30c2b37d2cSopenharmony_ci  OPERATE_TYPE: {type: STRING, desc: operation type on an os account}
31c2b37d2cSopenharmony_ci  ERROR_TYPE: {type: INT32, desc: error code}
32c2b37d2cSopenharmony_ci  ERROR_MSG: {type: STRING, desc: error message}
33c2b37d2cSopenharmony_ci
34c2b37d2cSopenharmony_ciDISTRIBUTED_ACCOUNT_FAILED:
35c2b37d2cSopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: distributed account operation errors}
36c2b37d2cSopenharmony_ci  USER_ID: {type: INT32, desc: the user id bound to a distributed account}
37c2b37d2cSopenharmony_ci  OPERATE_TYPE: {type: STRING, desc: operation type on a distributed account}
38c2b37d2cSopenharmony_ci  ERROR_TYPE: {type: INT32, desc: error code}
39c2b37d2cSopenharmony_ci  ERROR_MSG: {type: STRING, desc: error message}
40c2b37d2cSopenharmony_ci
41c2b37d2cSopenharmony_ciAPP_ACCOUNT_FAILED:
42c2b37d2cSopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: app operation errors}
43c2b37d2cSopenharmony_ci  NAME: {type: STRING, desc: the name of an app account}
44c2b37d2cSopenharmony_ci  OWNER: {type: STRING, desc: the owner of an app account}
45c2b37d2cSopenharmony_ci  OPERATE_TYPE: {type: STRING, desc: operation type on an app account}
46c2b37d2cSopenharmony_ci  ERROR_TYPE: {type: INT32, desc: error code}
47c2b37d2cSopenharmony_ci  ERROR_MSG: {type: STRING, desc: error message}
48c2b37d2cSopenharmony_ci
49c2b37d2cSopenharmony_ciOS_ACCOUNT_LIFE_CYCLE:
50c2b37d2cSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: osaccount create or delete event}
51c2b37d2cSopenharmony_ci  ID: {type: INT32, desc: the id of os account which is created or deleted}
52c2b37d2cSopenharmony_ci  OPERATE_TYPE: {type: STRING, desc: operation type on an os account create or delete}
53c2b37d2cSopenharmony_ci
54c2b37d2cSopenharmony_ciOS_ACCOUNT_SWITCH:
55c2b37d2cSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: osaccount switch event}
56c2b37d2cSopenharmony_ci  CURRENT_ID: {type: INT32, desc: the id of os account after switch}
57c2b37d2cSopenharmony_ci  OLD_ID: {type: INT32, desc: the id of os account before switch}
58c2b37d2cSopenharmony_ci
59c2b37d2cSopenharmony_ciDISTRIBUTED_ACCOUNT_CHANGE:
60c2b37d2cSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: ohosaccount state change events}
61c2b37d2cSopenharmony_ci  USER_ID: {type: INT32, desc: local account id}
62c2b37d2cSopenharmony_ci  OPERATION_TYPE: {type: INT32, desc: operation type}
63c2b37d2cSopenharmony_ci  OLD_STATE: {type: INT32, desc: ohos account old state}
64c2b37d2cSopenharmony_ci  NEW_STATE: {type: INT32, desc: ohos account new state}
65c2b37d2cSopenharmony_ci
66c2b37d2cSopenharmony_ciDATA_TAMPERED:
67c2b37d2cSopenharmony_ci  __BASE: {type: SECURITY, level: CRITICAL, desc: account data is tampered}
68c2b37d2cSopenharmony_ci  ID: {type: INT32, desc: the id of os account which is tampered}
69c2b37d2cSopenharmony_ci  DATA_PATH: {type: STRING, desc: the file path which is tampered}
70c2b37d2cSopenharmony_ci  DATA_LABEL: {type: STRING, desc: the data label which is tampered}