1# Copyright (c) 2023-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: SEC_COMPONENT
15
16CALLBACK_FAILED:
17  __BASE: {type: SECURITY, level: CRITICAL, desc: Failed to execute the callback}
18  CALLER_PID: {type: INT32, desc: caller pid}
19  CALLER_UID: {type: INT32, desc: caller uid}
20  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
21  CALL_SCENE: {type: STRING, desc: call scene}
22  REASON: {type: STRING, desc: callback execution failure cause}
23  SC_ID: {type: INT32, desc: security component id}
24  SC_TYPE: {type: STRING, desc: security component type}
25
26CALLER_CHECK_FAILED:
27  __BASE: {type: SECURITY, level: CRITICAL, desc: Illegal invocation}
28  CALLER_PID: {type: INT32, desc: caller pid}
29  CALLER_UID: {type: INT32, desc: caller uid}
30  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
31  CALL_SCENE: {type: STRING, desc: call scene}
32
33CHALLENGE_CHECK_FAILED:
34  __BASE: {type: SECURITY, level: CRITICAL, desc: Challenge value verification failed}
35  CALLER_PID: {type: INT32, desc: caller pid}
36  CALLER_UID: {type: INT32, desc: caller uid}
37  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
38  CALL_SCENE: {type: STRING, desc: call scene}
39  SC_ID: {type: INT32, desc: security component id}
40  SC_TYPE: {type: STRING, desc: security component type}
41
42CLICK_INFO_CHECK_FAILED:
43  __BASE: {type: SECURITY, level: CRITICAL, desc: Failed to verify the click event}
44  CALLER_PID: {type: INT32, desc: caller pid}
45  CALLER_UID: {type: INT32, desc: caller uid}
46  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
47  SC_ID: {type: INT32, desc: security component id}
48  SC_TYPE: {type: STRING, desc: security component type}
49
50COMPONENT_INFO_CHECK_FAILED:
51  __BASE: {type: SECURITY, level: CRITICAL, desc: Failed to verify the component information}
52  CALLER_PID: {type: INT32, desc: caller pid}
53  CALLER_UID: {type: INT32, desc: caller uid}
54  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
55  CALL_SCENE: {type: STRING, desc: call scene}
56  SC_ID: {type: INT32, desc: security component id}
57  SC_TYPE: {type: STRING, desc: security component type}
58
59INIT_FAILED:
60  __BASE: {type: FAULT, level: CRITICAL, desc: Failed to initialize the security component environment}
61  CALLER_PID: {type: INT32, desc: caller pid}
62  CALLER_UID: {type: INT32, desc: caller uid}
63  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
64  REASON: {type: STRING, desc: callback execution failure cause}
65
66REGISTER_SUCCESS:
67  __BASE: {type: BEHAVIOR, level: MINOR, desc: The security component is registered successfully}
68  CALLER_PID: {type: INT32, desc: caller pid}
69  CALLER_UID: {type: INT32, desc: caller uid}
70  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
71  CALLER_BUNDLE_VERSION: {type: STRING, desc: caller bundle version}
72  SC_ID: {type: INT32, desc: security component id}
73  SC_TYPE: {type: STRING, desc: security component type}
74
75REPEAT_CALLBACK_REGISTER:
76  __BASE: {type: SECURITY, level: CRITICAL, desc: Repeated registration callback}
77  CALLER_PID: {type: INT32, desc: caller pid}
78  CALLER_UID: {type: INT32, desc: caller uid}
79
80SERVICE_INIT_SUCCESS:
81  __BASE: {type: BEHAVIOR, level: MINOR, desc: Security component service starts successfully}
82  PID: {type: INT32, desc: pid of the service process}
83
84TEMP_GRANT_FAILED:
85  __BASE: {type: FAULT, level: CRITICAL, desc: Security component authorization failed}
86  CALLER_PID: {type: INT32, desc: caller pid}
87  CALLER_UID: {type: INT32, desc: caller uid}
88  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
89  SC_ID: {type: INT32, desc: security component id}
90  SC_TYPE: {type: STRING, desc: security component type}
91
92TEMP_GRANT_SUCCESS:
93  __BASE: {type: BEHAVIOR, level: MINOR, desc: Security component authorization successfully}
94  CALLER_PID: {type: INT32, desc: caller pid}
95  CALLER_UID: {type: INT32, desc: caller uid}
96  SC_ID: {type: INT32, desc: security component id}
97  SC_TYPE: {type: STRING, desc: security component type}
98
99UNREGISTER_SUCCESS:
100  __BASE: {type: BEHAVIOR, level: MINOR, desc: Security component unregister}
101  CALLER_PID: {type: INT32, desc: caller pid}
102  CALLER_UID: {type: INT32, desc: caller uid}
103  SC_ID: {type: INT32, desc: security component id}
104
105SESSION_INFO_CHECK_FAILED:
106  __BASE: {type: BEHAVIOR, level: MINOR, desc: Failed to verify session information}
107  CALLER_PID: {type: INT32, desc: caller pid}
108  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
109  CLIENT_SESSION_ID: {type: INT32, desc: session id stored in client}
110  CLIENT_SEQ_NUM: {type: INT32, desc: sequence number stored in client}
111  SERVICE_SESSION_ID: {type: INT32, desc: session id stored in server}
112  SERVICE_SEQ_NUM: {type: INT32, desc: sequence number stored in server}
113
114CALLBACK_INFO_CHECK_FAILED:
115  __BASE: {type: BEHAVIOR, level: MINOR, desc: Failed to verify session information}
116  CALLER_PID: {type: INT32, desc: caller pid}
117  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
118  CLIENT_SESSION_ID: {type: INT32, desc: session id stored in client}
119  CLIENT_SEQ_NUM: {type: INT32, desc: sequence number stored in client}
120  SERVICE_SESSION_ID: {type: INT32, desc: session id stored in server}
121  SERVICE_SEQ_NUM: {type: INT32, desc: sequence number stored in server}
122
123PREPROCESS_MESSAGE_FAILED:
124  __BASE: {type: BEHAVIOR, level: MINOR, desc: Failed to verify session information}
125  PREPROCESS_TYPE: {type: INT32, desc: preprocess type}
126  CALLER_PID: {type: INT32, desc: caller pid}
127  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
128  CLIENT_SESSION_ID: {type: INT32, desc: session id stored in client}
129  CLIENT_SEQ_NUM: {type: INT32, desc: sequence number stored in client}
130
131CLIP_CHECK_FAILED:
132  __BASE: {type: SECURITY, level: CRITICAL, desc: The security component is clipped by parent component}
133  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
134  COMPONENT_INFO: {type: STRING, desc: component information}