Function report |
Source Code:security\tomoyo\group.c |
Create Date:2022-07-28 19:43:31 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_write_group - Write "struct tomoyo_path_group"/"struct tomoyo_number_group"/"struct tomoyo_address_group" list.*@param: Pointer to "struct tomoyo_acl_param".*@type: Type of this group.* Returns 0 on success, negative value otherwise.
Proto:int tomoyo_write_group(struct tomoyo_acl_param *param, const u8 type)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct tomoyo_acl_param * | param | |
| const u8 | type |
| 81 | list = member_list |
| 82 | If type == TOMOYO_PATH_GROUP Then |
| 83 | struct tomoyo_path_group e = {} |
| 86 | If Not member_name Then |
| 93 | Else if type == TOMOYO_NUMBER_GROUP Then |
| 94 | struct tomoyo_number_group e = {} |
| 96 | If data[0] == '@' || Not tomoyo_parse_number_union(param, & number) Then Go to out |
| 105 | Else |
| 106 | struct tomoyo_address_group e = {} |
| 108 | If data[0] == '@' || Not tomoyo_parse_ipaddr_union(param, & Structure for holding an IP address. ) Then Go to out |
| 114 | out : |
| 116 | Return error |
| Name | Describe |
|---|---|
| tomoyo_write_exception | moyo_write_exception - Write exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
| 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 |