函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\path.c Create Date:2022-07-27 21:29:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:modified from dcache.c

函数原型:static int prepend(char **buffer, int buflen, const char *str, int namelen)

返回类型:int

参数:

类型参数名称
char **buffer
intbuflen
const char *str
intnamelen
27  buflen减等于namelen
28  如果buflen小于0则返回:负ENAMETOOLONG
30  buffer减等于namelen
31  memcpy( * buffer, str, namelen)
32  返回:0
调用者
名称描述
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