函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:handle_path

函数原型:static void handle_path(const struct dentry *dentry)

返回类型:void

参数:

类型参数名称
const struct dentry *dentry
1773  context等于audit_context()
1774  p等于trees
1775  count等于tree_count
1776  retry :
1777  drop = NULL
1778  d等于dentry
1779  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1780  seq等于Read side functions for starting and finalizing a read side section.
1781  循环
1782  inode等于d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper
1786  如果chunk
1793  parent等于 parent directory
1794  如果parent恒等于d退出
1796  d等于parent
1798  如果此条件成立可能性小(为编译器优化)(read_seqretry( & rename_lock, seq) || drop)则
1799  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1800  如果非drop
1803  转到:retry
1805  audit_put_chunk(drop)
1806  如果grow_tree_refs(context)则
1809  转到:retry
1812  打印警告信息("out of memory, audit has lost a tree reference\n")
1813  unroll_tree_refs(context, p, count)
1814  We keep a linked list of fixed-sized (31 pointer) arrays of audit_chunk *;* ->first_trees points to its beginning, ->trees - to the current end of data
1815  返回
1817  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
调用者
名称描述
__audit_inode__audit_inode - store the inode and device from a lookup*@name: name being audited*@dentry: dentry being audited*@flags: attributes for this particular entry