函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称: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

参数:

类型参数名称
inttype
struct aa_profile *profile
struct common_audit_data *sa
void (*cb
128  AA_BUG(!profile)
130  如果type恒等于AUDIT_APPARMOR_AUTO
132  如果AUDIT_MODE(profile)不等于AUDIT_ALL则返回:0
135  否则如果COMPLAIN_MODE(profile)则type等于AUDIT_APPARMOR_ALLOWED
137  否则type等于AUDIT_APPARMOR_DENIED
140  如果AUDIT_MODE(profile)恒等于 quiet all messages type恒等于AUDIT_APPARMOR_DENIEDAUDIT_MODE(profile)恒等于 quiet all messages 则返回:error
145  如果KILL_MODE(profile)且type恒等于AUDIT_APPARMOR_DENIEDtype等于AUDIT_APPARMOR_KILL
148  label等于label
150  aa_audit_msg - Log a message to the audit subsystem*@sa: audit event structure (NOT NULL)*@cb: optional callback fn for type specific fields (MAYBE NULL)
152  如果type恒等于AUDIT_APPARMOR_KILL信号发送入口
157  如果type恒等于AUDIT_APPARMOR_ALLOWED则返回:complain_error(error)
160  返回:error
调用者
名称描述
audit_capsaudit_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_ifaceaudit_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_resourceaudit_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_fileaa_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_mountaudit_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