Function report |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-28 19:37:17 |
| Last Modify:2020-03-18 09:15:18 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_parse_policy - Parse a policy line.*@head: Poiter to "struct tomoyo_io_buffer".*@line: Line to parse.* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
Proto:static int tomoyo_parse_policy(struct tomoyo_io_buffer *head, char *line)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct tomoyo_io_buffer * | head | |
| char * | line |
| 2622 | If is_delete Then memmove(line, line + 7, strlen - Find the length of a string*@s: The string to be sized + 1) |
| 2625 | If Type of this interface. == TOMOYO_EXCEPTIONPOLICY || Type of this interface. == TOMOYO_PROFILE Then |
| 2627 | If line == '<' Then |
| 2628 | cp = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for |
| 2630 | If cp Then |
| 2631 | cp++ = '\0' |
| 2634 | Else ns = NULL |
| 2636 | Else ns = tomoyo_kernel_namespace |
| Name | Describe |
|---|---|
| tomoyo_write_control | moyo_write_control - write() for /sys/kernel/security/tomoyo/ interface.*@head: Pointer to "struct tomoyo_io_buffer".*@buffer: Pointer to buffer to read from.*@buffer_len: Size of @buffer.* Returns @buffer_len on success, negative value otherwise. |
| tomoyo_load_builtin_policy | moyo_load_builtin_policy - Load built-in policy.* 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 |