函数逻辑报告 |
Source Code:security\apparmor\domain.c |
Create Date:2022-07-27 21:30:25 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static int label_components_match(struct aa_profile *profile, struct aa_label *label, bool stack, unsigned int start, bool subns, unsigned int request, struct aa_perms *perms)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct aa_profile * | profile | |
| struct aa_label * | label | |
| bool | stack | |
| unsigned int | start | |
| bool | subns | |
| unsigned int | request | |
| struct aa_perms * | perms |
| 201 | state等于0 |
| 205 | 如果非aa_ns_visible(ns, ns, subns)则继续下一循环 |
| 210 | 转到:next |
| 214 | 返回:0 |
| 216 | next : |
| 217 | tmp等于aa_compute_fperms(dfa, state, & cond) |
| 221 | 如果非aa_ns_visible(ns, ns, subns)则继续下一循环 |
| 226 | tmp等于aa_compute_fperms(dfa, state, & cond) |
| 234 | 返回:0 |
| 236 | fail : |
| 238 | 返回:负EACCES |
| 名称 | 描述 |
|---|---|
| label_match | label_match - do a multi-component label match*@profile: profile to match against (NOT NULL)*@label: label to match (NOT NULL)*@stack: whether this is a stacking request*@state: state to start in*@subns: whether to match subns components*@request: |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |