Function report |
Source Code:security\tomoyo\domain.c |
Create Date:2022-07-28 19:39:26 |
| Last Modify:2022-05-23 20:14:46 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_update_policy - Update an entry for exception policy.*@new_entry: Pointer to "struct tomoyo_acl_info".*@size: Size of @new_entry in bytes.*@param: Pointer to "struct tomoyo_acl_param".*@check_duplicate: Callback function to find duplicated entry.
Proto:int tomoyo_update_policy(struct tomoyo_acl_head *new_entry, const int size, struct tomoyo_acl_param *param, bool (*check_duplicate)(const struct tomoyo_acl_head *, const struct tomoyo_acl_head *))
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct tomoyo_acl_head * | new_entry | |
| const int | size | |
| struct tomoyo_acl_param * | param | |
| bool (* | check_duplicate |
| 42 | If mutex_lock_interruptible( & tomoyo_policy_lock) Then Return -ENOMEM |
| 46 | If rue or false or TOMOYO_GC_IN_PROGRESS == Garbage collector is trying to kfree() this element. Then Continue |
| 48 | If Not check_duplicate(entry, new_entry) Then Continue |
| 51 | error = 0 |
| 52 | Break |
| 55 | entry = tomoyo_commit_ok(new_entry, size) |
| 56 | If entry Then |
| 62 | Return error |
| Name | Describe |
|---|---|
| tomoyo_write_transition_control | moyo_write_transition_control - Write "struct tomoyo_transition_control" list.*@param: Pointer to "struct tomoyo_acl_param".*@type: Type of this entry.* Returns 0 on success, negative value otherwise. |
| tomoyo_write_aggregator | moyo_write_aggregator - Write "struct tomoyo_aggregator" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
| tomoyo_write_group | 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. |
| 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 |