函数逻辑报告 |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-27 21:06:27 |
Last Modify:2020-03-18 09:15:18 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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().
函数原型:static int tomoyo_parse_policy(struct tomoyo_io_buffer *head, char *line)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct tomoyo_io_buffer * | head | |
char * | line |
2622 | 如果is_delete则memmove(line, line + 7, strlen - Find the length of a string*@s: The string to be sized + 1) |
2627 | 如果line恒等于'<'则 |
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 | 如果cp则 |
2631 | cp自加等于'\0' |
2634 | 否则ns = NULL |
2636 | 否则ns等于tomoyo_kernel_namespace |
名称 | 描述 |
---|---|
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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |