函数逻辑报告 |
Source Code:security\apparmor\apparmorfs.c |
Create Date:2022-07-27 21:22:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:query_label - queries a label and writes permissions to buf*@buf: the resulting permissions string is stored here (NOT NULL)*@buf_len: size of buf*@query: binary query string to match against the dfa*@query_len: size of query*@view_only: only compute for
函数原型:static ssize_t query_label(char *buf, size_t buf_len, char *query, size_t query_len, bool view_only)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
char * | buf | |
size_t | buf_len | |
char * | query | |
size_t | query_len | |
bool | view_only |
795 | label_name等于query |
796 | label_name_len等于字符串长度 |
797 | 如果非label_name_len或label_name_len恒等于query_len则返回:负EINVAL |
806 | match_str等于label_name加label_name_len加1 |
807 | match_len等于query_len减label_name_len减1 |
810 | label等于aa_label_parse(curr, label_name, 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) |
816 | 如果view_only则 |
818 | profile_query_cb(profile, & perms, match_str, match_len) |
820 | 否则 |
822 | profile_query_cb(profile, & perms, match_str, match_len) |
825 | aa_put_label(label) |
827 | 返回:格式化输出字符串 |
名称 | 描述 |
---|---|
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 插件可实现:逻辑报告 代码生成和批量转换代码 |