函数逻辑报告 |
Source Code:security\apparmor\capability.c |
Create Date:2022-07-27 21:26:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:profile_capable - test if profile allows use of capability @cap*@profile: profile being enforced (NOT NULL, NOT unconfined)*@cap: capability to test if allowed*@opts: CAP_OPT_NOAUDIT bit determines whether audit record is generated*@sa: audit data (MAY BE
函数原型:static int profile_capable(struct aa_profile *profile, int cap, unsigned int opts, struct common_audit_data *sa)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct aa_profile * | profile | |
| int | cap | |
| unsigned int | opts | |
| struct common_audit_data * | sa |
| 119 | 如果cap_raised(allow, cap)且非cap_raised(denied, cap)则error等于0 |
| 126 | 如果非COMPLAIN_MODE(profile)则返回:error |
| 131 | info等于"optional: no audit" |
| 名称 | 描述 |
|---|---|
| aa_capable | aa_capable - test permission to use capability*@label: label being tested for capability (NOT NULL)*@cap: capability to be tested*@opts: CAP_OPT_NOAUDIT bit determines whether audit record is generated* Look up capability in profile capability set. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |