Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void avc_audit_post_callback(struct audit_buffer *ab, void *a)

Type:void

Parameter:

TypeParameterName
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  If rc Then 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.
713  Else
714  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.
715  kfree(scontext)
718  rc = security_sid_to_context(state, tsid, & scontext, & scontext_len)
720  If rc Then 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.
722  Else
723  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.
724  kfree(scontext)
727  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.
729  If denied Then 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.
733  rc = security_sid_to_context_inval(state, ssid, & scontext, & scontext_len)
735  If Not rc && scontext Then
736  If scontext_len && scontext[scontext_len - 1] == '\0' Then scontext_len--
738  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.
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  kfree(scontext)
743  rc = security_sid_to_context_inval(state, tsid, & scontext, & scontext_len)
745  If Not rc && scontext Then
746  If scontext_len && scontext[scontext_len - 1] == '\0' Then scontext_len--
748  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.
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  kfree(scontext)