Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\auditsc.c Create Date:2022-07-28 11:27:08
Last Modify:2020-03-17 16:31:21 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:audit_alloc_context

Proto:static inline struct audit_context *audit_alloc_context(enum audit_state state)

Type:struct audit_context

Parameter:

TypeParameterName
enum audit_statestate
896  context = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
897  If Not context Then Return NULL
899  state = state
900  prio = If state == AUDIT_RECORD_CONTEXT Then ~0ULL Else 0
901  Initialization list head
902  Initialization list head
903  Return context
Caller
NameDescribe
audit_allocaudit_alloc - allocate an audit context block for a task*@tsk: task* Filter on the task information and allocate a per-task audit context* if necessary. Doing so turns on system call auditing for the* specified task