Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:audit_make_reply

Proto:struct sk_buff *audit_make_reply(int seq, int type, int done, int multi, const void *payload, int size)

Type:struct sk_buff

Parameter:

TypeParameterName
intseq
inttype
intdone
intmulti
const void *payload
intsize
907  flags = If multi Then Multipart message, terminated by NLMSG_DONE Else 0
908  t = If done Then End of a dump Else type
910  skb = lmsg_new - Allocate a new netlink message*@payload: size of the message payload*@flags: the type of memory to allocate.* Use NLMSG_DEFAULT_SIZE if the size of the payload isn't known* and a good default is needed.
911  If Not skb Then Return NULL
914  nlh = lmsg_put - Add a new netlink message to an skb*@skb: socket buffer to store message in*@portid: netlink PORTID of requesting application*@seq: sequence number of message*@type: message type*@payload: length of message payload*@flags: message flags*
915  If Not nlh Then Go to out_kfree_skb
917  data = lmsg_data - head of message payload*@nlh: netlink message header
918  No 3D Now!(data, payload, size)
919  Return skb
921  out_kfree_skb :
922  free an sk_buff
923  Return NULL
Caller
NameDescribe
audit_send_replyaudit_send_reply - send an audit reply message via netlink*@request_skb: skb of request we are replying to (used to target the reply)*@seq: sequence number*@type: audit message type*@done: done (last) flag*@multi: multi-part message flag*@payload: payload
audit_replace
audit_list_rulesList rules using struct audit_rule_data.