Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:int aa_path_name(const struct path *path, int flags, char *buffer, const char **name, const char **info, const char *disconnected)

Type:int

Parameter:

TypeParameterName
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  If info && error Then
204  If error == -ENOENT Then info = "Failed name lookup - deleted entry"
206  Else if error == -EACCES Then info = "Failed name lookup - disconnected path"
208  Else if error == -ENAMETOOLONG Then info = "Failed name lookup - name too long"
210  Else info = "Failed name lookup"
214  name = str
216  Return error
Caller
NameDescribe
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