函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\auditfilter.c Create Date:2022-07-27 12:28:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:List rules using struct audit_rule_data.

函数原型:static void audit_list_rules(int seq, struct sk_buff_head *q)

返回类型:void

参数:

类型参数名称
intseq
struct sk_buff_head *q
1077 i小于AUDIT_NR_FILTERS循环
1081  data等于Translate kernel rule representation to struct audit_rule_data.
1082  如果此条件成立可能性小(为编译器优化)(!data)则退出
1084  skb等于audit_make_reply(seq, List syscall filtering rules , 0, 1, data, data的长度 + al length of string fields )
1087  如果skb列表末尾的缓冲区
1089  kfree(data)
1092  skb等于audit_make_reply(seq, List syscall filtering rules , 1, 1, NULL, 0)
1093  如果skb列表末尾的缓冲区
调用者
名称描述
audit_list_rules_sendaudit_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