Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit_watch.c Create Date:2022-07-28 11:29:13
Last Modify:2020-03-17 17:15:07 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Get path information necessary for adding watches.

Proto:static int audit_get_nd(struct audit_watch *watch, struct path *parent)

Type:int

Parameter:

TypeParameterName
struct audit_watch *watch
struct path *parent
351  d = kern_path_locked(sertion path , parent)
352  If IS_ERR(d) Then Return PTR_ERR(d)
354  If d_is_positive(d) Then
356  associated superblock device = s_dev
357  associated inode number = i_ino
359  inode_unlock(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)
360  dput(d)
361  Return 0
Caller
NameDescribe
audit_add_watchFind a matching watch entry, or add this one.* Caller must hold audit_filter_mutex.