函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:update_lsm_rule

函数原型:static int update_lsm_rule(struct audit_krule *r)

返回类型:int

参数:

类型参数名称
struct audit_krule *r
1395  entry等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(r, structaudit_entry, rule)
1397  err等于0
1399  如果非security_audit_rule_known(r)则返回:0
1402  nentry等于Duplicate 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
1403  如果exe
1405  如果是错误
1408  err等于错误
1409  audit_panic("error updating LSM filters")
1410  如果 associated watch 删除链表项
1412  删除不需要重新初始化的列表项
1413  删除链表项
1414  否则
1415  如果 associated watch associated watched tree list_replace_init( & entry in audit_{watch,tree}.rules list , & entry in audit_{watch,tree}.rules list )
1417  更新RCU锁项
1418  更新链表项
1420  all_rcu() - Queue an RCU callback for invocation after a grace period
1422  返回:err
调用者
名称描述
audit_update_lsm_rulesThis function will re-initialize the lsm_rule field of all applicable rules