函数逻辑报告 |
Source Code:security\apparmor\file.c |
Create Date:2022-07-27 21:42:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:aa_compute_fperms - convert dfa compressed perms to internal perms*@dfa: dfa to compute perms for (NOT NULL)*@state: state in dfa*@cond: conditions to consider (NOT NULL)* TODO: convert from dfa + state to permission entry, do computation conversion
函数原型:struct aa_perms aa_compute_fperms(struct aa_dfa *dfa, unsigned int state, struct path_cond *cond)
返回类型:struct aa_perms
参数:
类型 | 参数 | 名称 |
---|---|---|
struct aa_dfa * | dfa | |
unsigned int | state | |
struct path_cond * | cond |
234 | 如果uid_eq(current_fsuid(), uid)则 |
235 | allow等于map_old_perms - map old file perms layout to the new layout*@old: permission set in old mapping* Returns: new permission mapping |
236 | set only when allow is set 等于map_old_perms - map old file perms layout to the new layout*@old: permission set in old mapping* Returns: new permission mapping |
239 | 否则 |
240 | allow等于map_old_perms - map old file perms layout to the new layout*@old: permission set in old mapping* Returns: new permission mapping |
241 | set only when allow is set 等于map_old_perms - map old file perms layout to the new layout*@old: permission set in old mapping* Returns: new permission mapping |
248 | 如果ACCEPT_TABLE(dfa)[state]按位与0x80000000则allow或等于AA_MAY_CHANGE_PROFILE |
250 | 如果ACCEPT_TABLE(dfa)[state]按位与0x40000000则allow或等于her stack or change_profile |
253 | 返回:perms |
名称 | 描述 |
---|---|
label_compound_match | label_compound_match - find perms for full compound label*@profile: profile to find perms for*@label: label to check access permissions for*@stack: whether this is a stacking request*@start: state to start match in*@subns: whether to do permission checks |
label_components_match | label_components_match - find perms for all subcomponents of a label*@profile: profile to find perms for*@label: label to check access permissions for*@stack: whether this is a stacking request*@start: state to start match in*@subns: whether to do |
aa_str_perms | aa_str_perms - find permission that match @name*@dfa: to match against (MAYBE NULL)*@state: state to start matching in*@name: string to match against dfa (NOT NULL)*@cond: conditions to consider for permission set computation (NOT NULL)*@perms: Returns - |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |