Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\auditfilter.c Create Date:2022-07-28 11:25:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:parent_len - find the length of the parent portion of a pathname*@path: pathname of which to determine length

Proto:int parent_len(const char *path)

Type:int

Parameter:

TypeParameterName
const char *path
1274  plen = strlen - Find the length of a string*@s: The string to be sized
1276  If plen == 0 Then Return plen
1280  p = path + plen - 1
1281  When p == '/' && p > path cycle
1282  p--
1285  When p != '/' && p > path cycle
1286  p--
1289  If p == '/' Then p++
1292  Return p - path
Caller
NameDescribe
audit_compare_dname_pathaudit_compare_dname_path - compare given dentry name with last component in* given path. Return of 0 indicates a match.*@dname: dentry name that we're comparing*@path: full pathname that we're comparing*@parentlen: length of the parent if known
__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