Function report |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-28 19:35:46 |
| 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_entry - Print an ACL entry.*@head: Pointer to "struct tomoyo_io_buffer".*@acl: Pointer to an ACL entry.* Returns true on success, false otherwise.
Proto:static bool tomoyo_print_entry(struct tomoyo_io_buffer *head, struct tomoyo_acl_info *acl)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct tomoyo_io_buffer * | head | |
| struct tomoyo_acl_info * | acl |
| 1396 | bool first = true |
| 1399 | If print_cond_part Then Go to print_cond_part |
| 1401 | If true or false or TOMOYO_GC_IN_PROGRESS Then Return true |
| 1403 | 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 |
| 1405 | Else if acl_type == TOMOYO_TYPE_PATH_ACL Then |
| 1410 | When bit < TOMOYO_MAX_PATH_OPERATION cycle |
| 1413 | If print_transition_related_only && bit != TOMOYO_TYPE_EXECUTE Then Continue |
| 1416 | If first Then |
| 1418 | first = false |
| 1419 | Else |
| 1424 | If first Then Return true |
| 1427 | Else if acl_type == TOMOYO_TYPE_MANUAL_TASK_ACL Then |
| 1434 | Else if print_transition_related_only Then |
| 1435 | Return true |
| 1436 | Else if acl_type == TOMOYO_TYPE_PATH2_ACL Then |
| 1441 | When bit < TOMOYO_MAX_PATH2_OPERATION cycle |
| 1453 | If first Then Return true |
| 1457 | Else if acl_type == TOMOYO_TYPE_PATH_NUMBER_ACL Then |
| 1462 | When bit < TOMOYO_MAX_PATH_NUMBER_OPERATION cycle |
| 1474 | If first Then Return true |
| 1478 | Else if acl_type == TOMOYO_TYPE_MKDEV_ACL Then |
| 1483 | When bit < TOMOYO_MAX_MKDEV_OPERATION cycle |
| 1495 | If first Then Return true |
| 1501 | Else if acl_type == TOMOYO_TYPE_INET_ACL Then |
| 1506 | When bit < TOMOYO_MAX_NETWORK_OPERATION cycle |
| 1520 | If first Then Return true |
| 1523 | If Pointer to address group. Then |
| 1527 | Else |
| 1530 | tomoyo_print_ip(buf, size of buf , & address) |
| 1534 | Else if acl_type == TOMOYO_TYPE_UNIX_ACL Then |
| 1539 | When bit < TOMOYO_MAX_NETWORK_OPERATION cycle |
| 1553 | If first Then Return true |
| 1556 | Else if acl_type == TOMOYO_TYPE_MOUNT_ACL Then |
| 1565 | Else if acl_type == TOMOYO_TYPE_ENV_ACL Then |
| 1572 | If Maybe NULL. Then |
| 1573 | print_cond_part = true |
| 1574 | cond_step = 0 |
| 1575 | 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 |
| 1577 | print_cond_part : |
| 1580 | print_cond_part = false |
| 1581 | Else |
| 1584 | Return true |
| Name | Describe |
|---|---|
| tomoyo_read_domain2 | moyo_read_domain2 - Read domain policy.*@head: Pointer to "struct tomoyo_io_buffer".*@list: Pointer to "struct list_head".* Caller holds tomoyo_read_lock().* 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 |