Function report |
Source Code:security\tomoyo\domain.c |
Create Date:2022-07-28 19:39:33 |
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_domain - Update an entry for domain 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_domain(struct tomoyo_acl_info *new_entry, const int size, struct tomoyo_acl_param *param, bool (*check_duplicate)(const struct tomoyo_acl_info *, const struct tomoyo_acl_info *), bool (*merge_duplicate)(struct tomoyo_acl_info *, struct tomoyo_acl_info *, const bool ))
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct tomoyo_acl_info * | new_entry | |
const int | size | |
struct tomoyo_acl_param * | param | |
bool (* | check_duplicate | |
bool (* | merge_duplicate |
107 | If data[0] Then |
108 | Maybe NULL. = moyo_get_condition - Parse condition part.*@param: Pointer to "struct tomoyo_acl_param".* Returns pointer to "struct tomoyo_condition" on success, NULL otherwise. |
109 | If Not Maybe NULL. Then Return -EINVAL |
115 | if (new_entry-> Maybe NULL. ->Maybe NULL. && !(new_entry-> One of values in "enum tomoyo_acl_entry_type_index". == TOMOYO_TYPE_PATH_ACL && ({ |
118 | })->perm == 1 << TOMOYO_TYPE_EXECUTE)) |
119 | Go to out |
121 | If mutex_lock_interruptible( & tomoyo_policy_lock) Then Go to out |
125 | If true or false or TOMOYO_GC_IN_PROGRESS == Garbage collector is trying to kfree() this element. Then Continue |
130 | If merge_duplicate Then true or false or TOMOYO_GC_IN_PROGRESS = merge_duplicate(entry, new_entry, is_delete) |
133 | Else true or false or TOMOYO_GC_IN_PROGRESS = is_delete |
135 | error = 0 |
136 | Break |
139 | entry = tomoyo_commit_ok(new_entry, size) |
140 | If entry Then |
146 | out : |
148 | Return error |
Name | Describe |
---|---|
tomoyo_write_env | moyo_write_env - Write "struct tomoyo_env_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
tomoyo_update_path_acl | moyo_update_path_acl - Update "struct tomoyo_path_acl" list.*@perm: Permission.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
tomoyo_update_mkdev_acl | moyo_update_mkdev_acl - Update "struct tomoyo_mkdev_acl" list.*@perm: Permission.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
tomoyo_update_path2_acl | moyo_update_path2_acl - Update "struct tomoyo_path2_acl" list.*@perm: Permission.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
tomoyo_update_path_number_acl | moyo_update_path_number_acl - Update ioctl/chmod/chown/chgrp ACL.*@perm: Permission.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise. |
tomoyo_update_mount_acl | moyo_update_mount_acl - Write "struct tomoyo_mount_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
tomoyo_write_inet_network | moyo_write_inet_network - Write "struct tomoyo_inet_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
tomoyo_write_unix_network | moyo_write_unix_network - Write "struct tomoyo_unix_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise. |
tomoyo_write_task | moyo_write_task - Update task related list.*@param: Pointer to "struct tomoyo_acl_param".* 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 |