Function report |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-28 19:35:13 |
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_domain - Write domain policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
Proto:static int tomoyo_write_domain(struct tomoyo_io_buffer *head)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct tomoyo_io_buffer * | head |
1174 | data = Buffer for writing. |
1178 | is_select = Not is_delete && tomoyo_str_starts( & data, "select ") |
1181 | If data == '<' Then |
1182 | ret = 0 |
1184 | domain = NULL |
1185 | If is_delete Then ret = moyo_delete_domain - Delete a domain.*@domainname: The name of domain.* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
1192 | Return ret |
1199 | If Not External variable definitions. ********* || Profile table. Memory is allocated as needed. [idx] Then If Not is_delete Then |
1201 | Profile number to use. = idx |
1202 | Return 0 |
1206 | If Not is_delete Then Atomically set a bit in memory |
1210 | Return 0 |
1212 | When idx < TOMOYO_MAX_DOMAIN_INFO_FLAGS cycle |
1213 | cp = String table for domain flags. [idx] |
1215 | If strncmp(data, cp, strlen - Find the length of a string*@s: The string to be sized - 1) Then Continue |
1218 | Return 0 |
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 |