函数逻辑报告 |
Source Code:security\apparmor\apparmorfs.c |
Create Date:2022-07-27 21:22:07 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:profile_query_cb
函数原型:static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, const char *match_str, size_t match_len)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct aa_profile * | profile | |
struct aa_perms * | perms | |
const char * | match_str | |
size_t | match_len |
644 | state等于0 |
646 | 如果profile_unconfined(profile)则返回 |
648 | 如果dfa且match_str恒等于AA_CLASS_FILE则 |
652 | 如果state则 |
658 | 如果非PROFILE_MEDIATES(profile, * match_str)则返回 |
661 | state等于aa_dfa_match_len(dfa, set of start states for the different classes of data[0], match_str, match_len) |
663 | 如果state则aa_compute_perms(dfa, state, & tmp) |
667 | aa_perms_accum_raw(perms, & tmp) |
名称 | 描述 |
---|---|
query_label | 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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |