Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:audit_receive - receive messages from a netlink control socket*@skb: the message buffer* Parse the provided skb and deal with any messages that may be present,* malformed skbs are discarded.

Proto:static void audit_receive(struct sk_buff *skb)

Type:void

Parameter:

TypeParameterName
struct sk_buff *skb
1509  nlh = nlmsg_hdr(skb)
1510  len = len
1512  audit_ctl_lock - Take the audit control lock
1513  When lmsg_ok - check if the netlink message fits into the remaining bytes*@nlh: netlink message header*@remaining: number of bytes remaining in message stream cycle
1514  err = audit_receive_msg(skb, nlh)
1516  If err || Additional flags & Reply with ack, with zero or error code Then netlink_ack(skb, nlh, err, NULL)
1519  nlh = lmsg_next - next netlink message in message stream*@nlh: netlink message header*@remaining: number of bytes remaining in message stream* Returns the next netlink message in the message stream and* decrements remaining by the size of the current message.
1521  audit_ctl_unlock - Drop the audit control lock