函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\avc.c Create Date:2022-07-27 20:17:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:avc_audit_post_callback - SELinux specific information* will be called by generic audit code*@ab: the audit buffer*@a: audit_data

函数原型:static void avc_audit_post_callback(struct audit_buffer *ab, void *a)

返回类型:void

参数:

类型参数名称
struct audit_buffer *ab
void *a
703  ad等于a
704  sad等于selinux_audit_data
709  rc等于security_sid_to_context(state, ssid, & scontext, & scontext_len)
711  如果rc写入审计信息
713  否则
714  写入审计信息
715  释放内存
718  rc等于security_sid_to_context(state, tsid, & scontext, & scontext_len)
720  如果rc写入审计信息
722  否则
723  写入审计信息
724  释放内存
727  写入审计信息
729  如果denied写入审计信息
733  rc等于security_sid_to_context_inval(state, ssid, & scontext, & scontext_len)
735  如果非rcscontext
736  如果scontext_lenscontext[scontext_len - 1]恒等于'\0'则scontext_len自减
738  写入审计信息
739  audit_log_n_untrustedstring - log a string that may contain random characters*@ab: audit_buffer*@len: length of string (not including trailing null)*@string: string to be logged* This code will escape a string that is passed to it if the string* contains
740  释放内存
743  rc等于security_sid_to_context_inval(state, tsid, & scontext, & scontext_len)
745  如果非rcscontext
746  如果scontext_lenscontext[scontext_len - 1]恒等于'\0'则scontext_len自减
748  写入审计信息
749  audit_log_n_untrustedstring - log a string that may contain random characters*@ab: audit_buffer*@len: length of string (not including trailing null)*@string: string to be logged* This code will escape a string that is passed to it if the string* contains
750  释放内存