函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\auditsc.c Create Date:2022-07-27 12:30:28
Last Modify:2020-03-17 16:31:21 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:audit_log_pid_context

函数原型:static int audit_log_pid_context(struct audit_context *context, pid_t pid, kuid_t auid, kuid_t uid, unsigned int sessionid, unsigned int sid, char *comm)

返回类型:int

参数:

类型参数名称
struct audit_context *context
pid_tpid
kuid_tauid
kuid_tuid
unsigned intsessionid
unsigned intsid
char *comm
960  char * ctx = NULL
962  rc等于0
964  ab等于申请审计缓冲区
965  如果非ab则返回:rc
968  写入审计信息
971  如果sid
972  如果security_secid_to_secctx(sid, & ctx, & len)则
974  rc等于1
975  否则
980  写入审计信息
981  audit_log_untrustedstring - log a string that may contain random characters*@ab: audit_buffer*@string: string to be logged* Same as audit_log_n_untrustedstring(), except that strlen is used to* determine string length.
982  发送审计信息,并释放缓冲区
984  返回:rc
调用者
名称描述
audit_log_exit