Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:audit_list_rules_send - list the audit rules*@request_skb: skb of request we are replying to (used to target the reply)*@seq: netlink audit message sequence (serial) number

Proto:int audit_list_rules_send(struct sk_buff *request_skb, int seq)

Type:int

Parameter:

TypeParameterName
struct sk_buff *request_skb
intseq
1164  portid = portid
1165  net = sock_net(sk)
1168  err = 0
1176  dest = Allocation memory
1177  If Not dest Then Return -ENOMEM
1179  net = get_net(net)
1180  portid = portid
1181  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)
1183  mutex_lock( & audit_filter_mutex)
1184  List rules using struct audit_rule_data.
1185  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1187  tsk = 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(audit_send_list, dest, "audit_send_list")
1188  If IS_ERR(tsk) Then
1189  empty a list
1190  kfree(dest)
1191  err = PTR_ERR(tsk)
1194  Return err
Caller
NameDescribe
audit_receive_msg