函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_path_name - get the pathname to a buffer ensure dir / is appended*@path: path the file (NOT NULL)*@flags: flags controlling path name generation*@buffer: buffer to put name in (NOT NULL)*@name: Returns - the generated path name if !error (NOT

函数原型:int aa_path_name(const struct path *path, int flags, char *buffer, const char **name, const char **info, const char *disconnected)

返回类型:int

参数:

类型参数名称
const struct path *path
intflags
char *buffer
const char **name
const char **info
const char *disconnected
200  char * str = NULL
201  error等于d_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
203  如果infoerror
204  如果error恒等于负ENOENTinfo等于"Failed name lookup - deleted entry"
206  否则如果error恒等于负EACCESinfo等于"Failed name lookup - disconnected path"
208  否则如果error恒等于负ENAMETOOLONGinfo等于"Failed name lookup - name too long"
210  否则info等于"Failed name lookup"
214  name等于str
216  返回:error
调用者
名称描述
profile_transition
profile_onexec
path_name
match_mnt_path_strmatch_mnt_path_str - handle path matching for mount*@profile: the confining profile*@mntpath: for the mntpnt (NOT NULL)*@buffer: buffer to be used to lookup mntpath*@devnme: string for the devname/src_name (MAY BE NULL OR ERRPTR)*@type: string for the dev
match_mntmatch_mnt - handle path matching for mount*@profile: the confining profile*@mntpath: for the mntpnt (NOT NULL)*@buffer: buffer to be used to lookup mntpath*@devpath: path devname/src_name (MAYBE NULL)*@devbuffer: buffer to be used to lookup
profile_umount
build_pivotroothelper fn for transition on pivotroot* Returns: label for transition or ERR_PTR. Does not return NULL