Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit.c Create Date:2022-07-28 11:23:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:audit_log_task_context

Proto:int audit_log_task_context(struct audit_buffer *ab)

Type:int

Parameter:

TypeParameterName
struct audit_buffer *ab
2061  char * ctx = NULL
2066  security_task_getsecid(current process, & sid)
2067  If Not sid Then Return 0
2070  error = security_secid_to_secctx(sid, & ctx, & len)
2071  If error Then
2072  If error != -EINVAL Then Go to error_path
2074  Return 0
2077  audit_log_format - format a message into the audit buffer.*@ab: audit_buffer*@fmt: format string*@...: optional parameters matching @fmt string* All the work is done in audit_log_vformat.
2078  security_release_secctx(ctx, len)
2079  Return 0
2081  error_path :
2082  audit_panic("error in audit_log_task_context")
2083  Return error
Caller
NameDescribe
audit_log_config_change
audit_log_common_recv_msg
audit_log_task_info
audit_log_set_loginuid
audit_log_rule_changeLog rule additions and removals
audit_log_task