函数逻辑报告 |
Source Code:security\apparmor\procattr.c |
Create Date:2022-07-27 21:36:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:aa_getprocattr - Return the profile information for @profile*@profile: the profile to print profile info about (NOT NULL)*@string: Returns - string containing the profile info (NOT NULL)* Returns: length of @string on success else error on failure*
函数原型:int aa_getprocattr(struct aa_label *label, char **string)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct aa_label * | label | |
| char ** | string |
| 36 | current_ns等于aa_get_current_ns() |
| 39 | 如果非aa_ns_visible(current_ns, ns, true)则 |
| 41 | 返回:负EACCES |
| 44 | len等于aa_label_snxprint(NULL, 0, current_ns, label, FLAG_SHOW_MODE | FLAG_VIEW_SUBNS | FLAG_HIDDEN_UNCONFINED) |
| 50 | 如果非string则 |
| 52 | 返回:负ENOMEM |
| 55 | len等于aa_label_snxprint( * string, len + 2, current_ns, label, FLAG_SHOW_MODE | FLAG_VIEW_SUBNS | FLAG_HIDDEN_UNCONFINED) |
| 58 | 如果len小于0则 |
| 60 | 返回:len |
| 63 | ) = '\n' |
| 64 | ) = 0 |
| 67 | 返回:len加1 |
| 名称 | 描述 |
|---|---|
| apparmor_getprocattr |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |