函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Duplicate LSM field information. The lsm_rule is opaque, so must be* re-initialized.

函数原型:static inline int audit_dupe_lsm_field(struct audit_field *df, struct audit_field *sf)

返回类型:int

参数:

类型参数名称
struct audit_field *df
struct audit_field *sf
782  ret等于0
786  lsm_str等于kstrdup(lsm_str, GFP_KERNEL)
787  如果此条件成立可能性小(为编译器优化)(!lsm_str)则返回:负ENOMEM
789  lsm_str等于lsm_str
792  ret等于security_audit_rule_init(type, op, lsm_str, (void * * ) & lsm_rule)
796  如果ret恒等于负EINVAL
797  打印警告信息("audit rule for LSM \'%s\' is invalid\n", lsm_str)
799  ret等于0
802  返回:ret
调用者
名称描述
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