函数逻辑报告 |
Source Code:security\apparmor\apparmorfs.c |
Create Date:2022-07-27 21:22:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:query_data - queries a policy and writes its data to buf*@buf: the resulting data is stored here (NOT NULL)*@buf_len: size of buf*@query: query string used to retrieve data*@query_len: size of query including second NUL byte
函数原型:static ssize_t query_data(char *buf, size_t buf_len, char *query, size_t query_len)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
char * | buf | |
size_t | buf_len | |
char * | query | |
size_t | query_len |
714 | label等于aa_label_parse(curr, query, GFP_KERNEL, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., false) |
730 | blocks等于0 |
732 | 如果非data则继续下一循环 |
738 | 如果data则 |
739 | 如果out加outle32的长度加 size of data in bytes大于buf加buf_len则 |
741 | aa_put_label(label) |
742 | 返回:负EINVAL |
748 | out加等于 size of data in bytes |
749 | blocks自加 |
752 | aa_put_label(label) |
754 | outle32等于__cpu_to_le32(out - buf - bytes的长度) |
756 | outle32等于__cpu_to_le32(blocks) |
名称 | 描述 |
---|---|
aa_write_access | aa_write_access - generic permissions and data query*@file: pointer to open apparmorfs/access file*@ubuf: user buffer containing the complete query string (NOT NULL)*@count: size of ubuf*@ppos: position in the file (MUST BE ZERO)* Allows for one |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |