Function report |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-28 19:35:07 |
Last Modify:2020-03-18 09:15:18 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_write_domain2 - Write domain policy.*@ns: Pointer to "struct tomoyo_policy_namespace".*@list: Pointer to "struct list_head".*@data: Policy to be interpreted.*@is_delete: True if it is a delete request.* Returns 0 on success, negative value otherwise.
Proto:static int tomoyo_write_domain2(struct tomoyo_policy_namespace *ns, struct list_head *list, char *data, const bool is_delete)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct tomoyo_policy_namespace * | ns | |
struct list_head * | list | |
char * | data | |
const bool | is_delete |
1136 | static const struct{const char * keyword;int( * write)(struct tomoyo_acl_param * param)}tomoyo_callback[5] = {{"file ", tomoyo_write_file}, {"network inet ", 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().}, {"network unix ", tomoyo_write_unix_network}, {"misc ", tomoyo_write_misc}, {"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().}, } |
1149 | If Not tomoyo_str_starts( & data, keyword) Then Continue |
1154 | Return -EINVAL |
Name | Describe |
---|---|
tomoyo_write_domain | moyo_write_domain - Write domain policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
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(). |
tomoyo_add_entry | moyo_add_entry - Add an ACL to current thread's domain. Used by learning mode.*@domain: Pointer to "struct tomoyo_domain_info".*@header: Lines containing ACL.* Returns nothing. |
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 |