Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Initialize audit support at boot time.

Proto:static int __init audit_init(void)

Type:int

Parameter:Nothing

1579  If audit_initialized == Do not create per-task audit_context.* No syscall-specific audit records can* be generated. Then Return 0
1582  audit_buffer_cache = kmem_cache_create("audit_buffer", sizeof(structaudit_buffer), 0, Panic if kmem_cache_create() fails , NULL)
1586  This function creates a split out lock class for each invocation;* this is needed for now since a whole lot of users of the skb-queue* infrastructure in drivers have different locking usage (in hardirq)* than the networking core (in softirq only)
1587  This function creates a split out lock class for each invocation;* this is needed for now since a whole lot of users of the skb-queue* infrastructure in drivers have different locking usage (in hardirq)* than the networking core (in softirq only)
1588  This function creates a split out lock class for each invocation;* this is needed for now since a whole lot of users of the skb-queue* infrastructure in drivers have different locking usage (in hardirq)* than the networking core (in softirq only)
1590  When i < AUDIT_INODE_BUCKETS cycle Initialization list head
1593  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & lock)
1594  owner = NULL
1596  pr_info("initializing netlink subsys (%s)\n", Default state when kernel boots without any parameters. ? "enabled" : "disabled")
1598  Use these carefully
1600  audit_initialized = AUDIT_INITIALIZED
1602  queue servicing thread = kthread_run - create and wake a thread.*@threadfn: the function to run until signal_pending(current).*@data: data ptr for @threadfn.*@namefmt: printf-style name for the thread.* Description: Convenient wrapper for kthread_create() followed by(kauditd_thread - Worker thread to send audit records to userspace*@dummy: unused, NULL, "kauditd")
1603  If IS_ERR(queue servicing thread ) Then
1604  err = PTR_ERR(queue servicing thread )
1605  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
1608  audit_log - Log an audit record*@ctx: audit context*@gfp_mask: type of allocation*@type: audit message type*@fmt: format string to use*@...: variable parameters matching the format string* This is a convenience function that calls audit_log_start,
1612  Return 0