函数逻辑报告 |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-27 21:04:14 |
Last Modify:2020-03-18 09:15:18 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_select_domain - Parse select command.*@head: Pointer to "struct tomoyo_io_buffer".*@data: String to parse.* Returns true on success, false otherwise.* Caller holds tomoyo_read_lock().
函数原型:static bool tomoyo_select_domain(struct tomoyo_io_buffer *head, const char *data)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct tomoyo_io_buffer * | head | |
const char * | data |
994 | struct tomoyo_domain_info * domain = NULL |
995 | bool global_pid = false |
997 | 如果字符串指定长度比较则返回:false |
999 | data加等于7 |
1007 | 否则p等于find_task_by_vpid(pid) |
1009 | 如果p则domain等于domain_info |
1012 | 否则如果非字符串指定长度比较则 |
1016 | domain等于tomoyo_find_domain_by_qid(pid) |
1017 | 否则返回:false |
1021 | 如果非Buffer for reading. 则返回:true |
1024 | print_this_domain_only = true |
1027 | 否则eof等于1 |
1030 | 如果domain且 Delete flag. 则moyo_io_printf - printf() to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".*@fmt: The printf()'s format string, followed by parameters. |
1032 | 返回:true |
名称 | 描述 |
---|---|
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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |