函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:audit_dupe_exe

函数原型:int audit_dupe_exe(struct audit_krule *new, struct audit_krule *old)

返回类型:int

参数:

类型参数名称
struct audit_krule *new
struct audit_krule *old
527  pathname等于kstrdup(audit_mark_path(exe), GFP_KERNEL)
528  如果非pathname则返回:负ENOMEM
531  audit_mark等于audit_alloc_mark(new, pathname, strlen - Find the length of a string*@s: The string to be sized)
532  如果是错误
533  kfree(pathname)
534  返回:错误
536  exe等于audit_mark
538  返回:0
调用者
名称描述
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