函数逻辑报告 |
Source Code:security\apparmor\audit.c |
Create Date:2022-07-27 21:25:45 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:aa_audit - Log a profile based audit event to the audit subsystem*@type: audit type for the message*@profile: profile to check against (NOT NULL)*@sa: audit event (NOT NULL)*@cb: optional callback fn for type specific fields (MAYBE NULL)* Handle default
函数原型:int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa, void (*cb)(struct audit_buffer *, void *))
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | type | |
| struct aa_profile * | profile | |
| struct common_audit_data * | sa | |
| void (* | cb |
| 130 | 如果type恒等于AUDIT_APPARMOR_AUTO则 |
| 131 | 如果此条件成立可能性大(为编译器优化)(!error)则 |
| 132 | 如果AUDIT_MODE(profile)不等于AUDIT_ALL则返回:0 |
| 134 | type等于AUDIT_APPARMOR_AUDIT |
| 135 | 否则如果COMPLAIN_MODE(profile)则type等于AUDIT_APPARMOR_ALLOWED |
| 137 | 否则type等于AUDIT_APPARMOR_DENIED |
| 140 | 如果AUDIT_MODE(profile)恒等于 quiet all messages 或type恒等于AUDIT_APPARMOR_DENIED且AUDIT_MODE(profile)恒等于 quiet all messages 则返回:error |
| 152 | 如果type恒等于AUDIT_APPARMOR_KILL则信号发送入口 |
| 157 | 如果type恒等于AUDIT_APPARMOR_ALLOWED则返回:complain_error(error) |
| 160 | 返回:error |
| 名称 | 描述 |
|---|---|
| audit_caps | audit_caps - audit a capability*@sa: audit data*@profile: profile being tested for confinement (NOT NULL)*@cap: capability tested*@error: error code returned by test* Do auditing of capability and handle, audit/complain/kill modes switching |
| profile_tracer_perm | |
| audit_iface | audit_iface - do audit message for policy unpacking/load/replace/remove*@new: profile if it has been allocated (MAYBE NULL)*@ns_name: name of the ns the profile is to be loaded to (MAY BE NULL)*@name: name of the profile being manipulated (MAYBE |
| audit_resource | audit_resource - audit setting resource limit*@profile: profile being enforced (NOT NULL)*@resource: rlimit being auditing*@value: value being set*@error: error value* Returns: 0 or sa->error else other error code on failure |
| aa_audit_file | aa_audit_file - handle the auditing of file operations*@profile: the profile being enforced (NOT NULL)*@perms: the permissions computed for the request (NOT NULL)*@op: operation being mediated*@request: permissions requested*@name: name of object being |
| audit_mount | audit_mount - handle the auditing of mount operations*@profile: the profile being enforced (NOT NULL)*@op: operation being mediated (NOT NULL)*@name: name of object being mediated (MAYBE NULL)*@src_name: src_name of object being mediated |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |