函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Initialize an audit filterlist entry.

函数原型:static inline struct audit_entry *audit_init_entry(unsigned int field_count)

返回类型:struct audit_entry

参数:

类型参数名称
unsigned intfield_count
109  entry等于分配内存并置零
110  如果此条件成立可能性小(为编译器优化)(!entry)则返回:NULL
113  fields等于分配数组内存并置零
114  如果此条件成立可能性小(为编译器优化)(!fields)则
115  kfree(entry)
116  返回:NULL
118  fields等于fields
120  返回:entry
调用者
名称描述
audit_to_entry_commonCommon user-space to kernel rule translation.
audit_dupe_ruleDuplicate an audit rule. This will be a deep copy with the exception* of the watch - that pointer is carried over. The LSM specific fields* will be updated in the copy. The point is to be able to replace the old