Function report |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-28 19:35:24 |
Last Modify:2020-03-18 09:15:18 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_print_condition - Print condition part.*@head: Pointer to "struct tomoyo_io_buffer".*@cond: Pointer to "struct tomoyo_condition".* Returns true on success, false otherwise.
Proto:static bool tomoyo_print_condition(struct tomoyo_io_buffer *head, const struct tomoyo_condition *cond)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct tomoyo_io_buffer * | head | |
const struct tomoyo_condition * | cond |
1236 | Case cond_step == 0 |
1244 | Case cond_step == 1 |
1256 | envp = argv + Number of "struct tomoyo_argv". |
1260 | When skip < cond_index cycle |
1261 | left = Left hand operand. A "struct tomoyo_argv" for TOMOYO_ARGV_ENTRY, a* "struct tomoyo_envp" for TOMOYO_ENVP_ENTRY is attached to the tail* of the array of this struct. |
1262 | right = Right hand operand. A "struct tomoyo_number_union" for* TOMOYO_NUMBER_UNION, a "struct tomoyo_name_union" for* TOMOYO_NAME_UNION is attached to the tail of the array of this* struct. |
1264 | condp++ |
1266 | Case left == TOMOYO_ARGV_ENTRY |
1267 | argv++ |
1268 | Continue |
1269 | Case left == TOMOYO_ENVP_ENTRY |
1270 | envp++ |
1271 | Continue |
1272 | Case left == TOMOYO_NUMBER_UNION |
1273 | numbers_p++ |
1274 | Break |
1277 | Case right == TOMOYO_NAME_UNION |
1278 | names_p++ |
1279 | Break |
1280 | Case right == TOMOYO_NUMBER_UNION |
1281 | numbers_p++ |
1282 | Break |
1285 | When cond_index < condc cycle |
1287 | left = Left hand operand. A "struct tomoyo_argv" for TOMOYO_ARGV_ENTRY, a* "struct tomoyo_envp" for TOMOYO_ENVP_ENTRY is attached to the tail* of the array of this struct. |
1288 | right = Right hand operand. A "struct tomoyo_number_union" for* TOMOYO_NUMBER_UNION, a "struct tomoyo_name_union" for* TOMOYO_NAME_UNION is attached to the tail of the array of this* struct. |
1290 | If Not moyo_flush - Flush queued string to userspace's buffer.*@head: Pointer to "struct tomoyo_io_buffer".* Returns true if all data was flushed, false otherwise. Then Return false |
1292 | condp++ |
1293 | cond_index++ |
1296 | Case left == TOMOYO_ARGV_ENTRY |
1303 | argv++ |
1304 | Continue |
1305 | Case left == TOMOYO_ENVP_ENTRY |
1321 | Case left == TOMOYO_NUMBER_UNION |
1325 | Default |
1332 | Case right == TOMOYO_NAME_UNION |
1336 | Case right == TOMOYO_NUMBER_UNION |
1340 | Default |
1347 | cond_step++ |
1349 | Case cond_step == 2 |
1350 | If Not moyo_flush - Flush queued string to userspace's buffer.*@head: Pointer to "struct tomoyo_io_buffer".* Returns true if all data was flushed, false otherwise. Then Break |
1352 | cond_step++ |
1354 | Case cond_step == 3 |
1360 | Return true |
1362 | Return false |
Name | Describe |
---|---|
tomoyo_print_entry | moyo_print_entry - Print an ACL entry.*@head: Pointer to "struct tomoyo_io_buffer".*@acl: Pointer to an ACL entry.* Returns true on success, false otherwise. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |