函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Duplicate the given audit watch. The new watch's rules list is initialized* to an empty list and wlist is undefined.

函数原型:static struct audit_watch *audit_dupe_watch(struct audit_watch *old)

返回类型:struct audit_watch

参数:

类型参数名称
struct audit_watch *old
207  path等于kstrdup(sertion path , GFP_KERNEL)
208  如果此条件成立可能性小(为编译器优化)(!path)则返回:错误号
211  new等于Initialize a watch entry.
212  如果是错误
213  kfree(path)
214  转到:out
217  associated superblock device 等于associated superblock device
218  associated inode number 等于associated inode number
219  audit_get_parent(associated parent )
220  associated parent 等于associated parent
222  out :
223  返回:new
调用者
名称描述
audit_update_watchUpdate inode info in audit rules based on filesystem event.