• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14domain: ACCESS_TOKEN
15
16ACCESSTOKEN_SERVICE_START:
17  __BASE: {type: STATISTIC, level: CRITICAL, tag: usability, desc: service startup}
18  PID: {type: INT32, desc: access token service pid}
19  HAP_SIZE: {type: UINT32, desc: hap token size}
20  NATIVE_SIZE: {type: UINT32, desc: native token size}
21  PERM_DEFINITION_SIZE: {type: UINT32, desc: permission definition size}
22  DLP_PERMISSION_SIZE: {type: UINT32, desc: dlp permission size}
23  PARSE_CONFIG_FLAG: {type: UINT32, desc: parse config policy file value flag}
24
25ACCESSTOKEN_SERVICE_START_ERROR:
26  __BASE: {type: FAULT, level: CRITICAL, desc: service startup error}
27  SCENE_CODE: {type: INT32, desc: scene code}
28  ERROR_CODE: {type: INT32, desc: error code}
29  ERROR_MSG: {type: STRING, desc: error reason}
30
31PERMISSION_VERIFY_REPORT:
32  __BASE: {type: SECURITY, level: CRITICAL, desc: permission verification error}
33  CODE: {type: INT32, desc: error code}
34  CALLER_TOKENID: {type: UINT32, desc: caller token id}
35  PERMISSION_NAME: {type: STRING, desc: permission name}
36  INTERFACE: {type: STRING, desc: interface information}
37
38PERMISSION_CHECK:
39  __BASE: {type: FAULT, level: CRITICAL, desc: permission check error}
40  CODE: {type: INT32, desc: error code}
41  CALLER_TOKENID: {type: UINT32, desc: caller token id}
42  PERMISSION_NAME: {type: STRING, desc: permission name}
43  ERROR_REASON: {type: STRING, desc: error reason}
44
45PERMISSION_CHECK_EVENT:
46  __BASE: {type: BEHAVIOR, level: MINOR, desc: permission check event}
47  CODE: {type: INT32, desc: event code}
48  CALLER_TOKENID: {type: UINT32, desc: caller token id}
49  PERMISSION_NAME: {type: STRING, desc: permission name}
50  FLAG: {type: INT32, desc: permission flag}
51  PERMISSION_GRANT_TYPE: {type: INT32, desc: grant type}
52  PID_INFO: {type: INT32, desc: access token service pid}
53  REASON: {type: STRING, desc: check report reason}
54
55PERMISSION_SYNC:
56  __BASE: {type: FAULT, level: CRITICAL, tag: usability, desc: permission sync error}
57  CODE: {type: INT32, desc: error code}
58  REMOTE_ID: {type: STRING, desc: remote id}
59  REASON: {type: STRING, desc: error reason}
60
61ADD_HAP:
62  __BASE: {type: STATISTIC, level: MINOR, tag: usability, desc: add a hap to device}
63  SCENE_CODE: {type: INT32, desc: scene code}
64  TOKENID: {type: UINT32, desc: token id}
65  ORI_TOKENID: {type: UINT32, desc: original token id}
66  TOKENIDEX: {type: UINT64, desc: token id ex}
67  USERID: {type: INT32, desc: user id}
68  BUNDLENAME: {type: STRING, desc: bundle name}
69  INSTINDEX: {type: INT32, desc: inst index}
70  DLP_TYPE: {type: UINT32, desc: dlp type}
71  IS_RESTORE: {type: BOOL, desc: is restore scene}
72  PERM_INFO: {type: STRING, desc: request permission list}
73  ACL_INFO: {type: STRING, desc: acl permission list}
74  PREAUTH_INFO: {type: STRING, desc: preauth permission list}
75  EXTEND_INFO: {type: STRING, desc: extend permission map}
76  DURATION: {type: UINT64, desc: time required for installing an application}
77  ERROR_CODE: {type: INT32, desc: error code}
78
79DEL_HAP:
80  __BASE: {type: STATISTIC, level: MINOR, tag: usability, desc: delete a hap from device}
81  TOKENID: {type: UINT32, desc: tokenID}
82  USERID: {type: INT32, desc: user id}
83  BUNDLENAME: {type: STRING, desc: bundle name}
84  INSTINDEX: {type: INT32, desc: inst index}
85  SCENE_CODE: {type: INT32, desc: scene code}
86  ERROR_CODE: {type: INT32, desc: error code}
87  DURATION: {type: INT64, desc: duration}
88
89PERM_DIALOG_STATUS_INFO:
90  __BASE: {type: STATISTIC, level: MINOR, desc: status information of permission dialog}
91  USERID: {type: INT32, desc: user id}
92  PERMISSION_NAME: {type: STRING, desc: permission name}
93  TOGGLE_STATUS: {type: UINT32, desc: toggle status of permission dialog}
94
95GRANT_TEMP_PERMISSION:
96  __BASE: {type: BEHAVIOR, level: MINOR, desc: grant temp permission}
97  TOKENID: {type: UINT32, desc: tokenID}
98  BUNDLENAME: {type: STRING, desc: bundle name}
99  PERMISSION_NAME: {type: STRING, desc: permission name}
100
101REQUEST_PERMISSIONS_FROM_USER:
102  __BASE: {type: BEHAVIOR, level: MINOR, desc: request permissions from user}
103  BUNDLENAME: {type: STRING, desc: bundle name}
104  UIEXTENSION_FLAG: {type: BOOL, desc: uiextension flag}
105
106UPDATE_PERMISSION:
107  __BASE: {type: BEHAVIOR, level: MINOR, desc: grant or revoke permission}
108  TOKENID: {type: UINT32, desc: tokenID}
109  PERMISSION_NAME: {type: STRING, desc: permission name}
110  PERMISSION_FLAG: {type: UINT32, desc: permission flag}
111  GRANTED_FLAG: {type: BOOL, desc: grant or revoke}
112  SCENE_CODE: {type: INT32, desc: scene code}
113  ERROR_CODE: {type: INT32, desc: error code}
114  USERID: {type: INT32, desc: user id}
115  BUNDLENAME: {type: STRING, desc: bundle name}
116  INSTINDEX: {type: INT32, desc: inst index}
117
118UPDATE_HAP:
119  __BASE: {type: STATISTIC, level: MINOR, tag: usability, desc: update hap to device}
120  TOKENID: {type: UINT32, desc: token id}
121  USERID: {type: INT32, desc: user id}
122  BUNDLENAME: {type: STRING, desc: bundle name}
123  INSTINDEX: {type: INT32, desc: inst index}
124  SCENE_CODE: {type: INT32, desc: scene code}
125  ERROR_CODE: {type: INT32, desc: error code}
126  TOKENIDEX: {type: UINT64, desc: tokenIDEx}
127  PERM_INFO: {type: STRING, desc: perm info}
128  ACL_INFO: {type: STRING, desc: acl info}
129  PREAUTH_INFO: {type: STRING, desc: pre-auth info}
130  EXTEND_INFO: {type: STRING, desc: extend info}
131  DURATION: {type: INT64, desc: duration}
132
133CLEAR_USER_PERMISSION_STATE:
134  __BASE: {type: BEHAVIOR, level: MINOR, desc: clear user permission state}
135  TOKENID: {type: UINT32, desc: tokenid to be cleared}
136  TOKENID_LEN: {type: UINT32, desc: amount of realated sandbox app accesstoken}
137
138SET_PERMISSION_DIALOG_CAP:
139  __BASE: {type: BEHAVIOR, level: MINOR, desc: set permission dialog capability}
140  TOKENID: {type: UINT32, desc: token id}
141  USERID: {type: INT32, desc: user id}
142  BUNDLENAME: {type: STRING, desc: bundle name}
143  INSTINDEX: {type: INT32, desc: inst index}
144  ENABLE: {type: BOOL, desc: enable or disable}
145
146REQ_PERM_FROM_USER_ERROR:
147  __BASE: {type: FAULT, level: CRITICAL, desc: failed to request permission from user}
148  ERROR_CODE: {type: INT32, desc: error code}
149  SELF_TOKENID: {type: UINT32, desc: self tokenID}
150  CONTEXT_TOKENID: {type: UINT32, desc: context tokenID}
151
152UPDATE_PERMISSION_STATUS_ERROR:
153  __BASE: {type: FAULT, level: CRITICAL, desc: failed to grant or revoke permission}
154  ERROR_CODE: {type: INT32, desc: error code}
155  TOKENID: {type: UINT32, desc: tokenID}
156  PERM: {type: STRING, desc: permission name}
157  BUNDLE_NAME: {type: STRING, desc: bundle name}
158  INT_VAL1: {type: INT32, desc: hap dlp type/return value}
159  INT_VAL2: {type: INT32, desc: permission dlp mode/update permission flag}
160  NEED_KILL: {type: BOOL, desc: need kill hap}
161
162VERIFY_ACCESS_TOKEN_EVENT:
163  __BASE: {type: STATISTIC, level: CRITICAL, desc: verify access token event}
164  EVENT_CODE: {type: INT32, desc: event code}
165  SELF_TOKENID: {type: UINT32, desc: self tokenID}
166  CONTEXT_TOKENID: {type: UINT32, desc: context tokenID}
167
168ACCESSTOKEN_EXCEPTION:
169  __BASE: {type: FAULT, level: CRITICAL, desc: accesstoken exception}
170  SCENE_CODE: {type: INT32, desc: scene code}
171  ERROR_CODE: {type: INT32, desc: error code}
172  ERROR_MSG: {type: STRING, desc: error reason}
173
174DATABASE_EXCEPTION:
175  __BASE: {type: FAULT, level: CRITICAL, desc: database exception}
176  SCENE_CODE: {type: INT32, desc: scene code}
177  ERROR_CODE: {type: INT32, desc: error code}
178  TABLE_NAME: {type: STRING, desc: table name}
179
180