Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\auditsc.c Create Date:2022-07-28 11:27:55
Last Modify:2020-03-17 16:31:21 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:handle_path

Proto:static void handle_path(const struct dentry *dentry)

Type:void

Parameter:

TypeParameterName
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  cycle
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  If chunk Then
1793  parent = parent directory
1794  If parent == d Then Break
1796  d = parent
1798  If Value for the false possibility is greater at compile time(read_seqretry( & rename_lock, seq) || drop) Then
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  If Not drop Then
1803  Go to retry
1805  audit_put_chunk(drop)
1806  If grow_tree_refs(context) Then
1809  Go to retry
1812  pr_warn("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  Return
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()
Caller
NameDescribe
__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