Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\path.c Create Date:2022-07-28 19:51:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:modified from dcache.c

Proto:static int prepend(char **buffer, int buflen, const char *str, int namelen)

Type:int

Parameter:

TypeParameterName
char **buffer
intbuflen
const char *str
intnamelen
27  buflen -= namelen
28  If buflen < 0 Then Return -ENAMETOOLONG
30  buffer -= namelen
31  memcpy( * buffer, str, namelen)
32  Return 0
Caller
NameDescribe
disconnectIf the path is not connected to the expected root,* check if it is a sysctl and handle specially else remove any* leading / that __d_path may have returned
d_namespace_pathd_namespace_path - lookup a name associated with a given path*@path: path to lookup (NOT NULL)*@buf: buffer to store path to (NOT NULL)*@name: Returns - pointer for start of path name with in @buf (NOT NULL)*@flags: flags controlling path