Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int match_mnt(struct aa_profile *profile, const struct path *path, char *buffer, struct path *devpath, char *devbuffer, const char *type, unsigned long flags, void *data, bool binary)

Type:int

Parameter:

TypeParameterName
struct aa_profile *profile
const struct path *path
char *buffer
struct path *devpath
char *devbuffer
const char *type
unsigned longflags
void *data
boolbinary
377  const char * devname = NULL, * info = NULL
378  error = -EACCES
380  AA_BUG(!profile)
381  AA_BUG(devpath && !devbuffer)
383  If Not PROFILE_MEDIATES(profile, AA_CLASS_MOUNT) Then Return 0
386  If devpath Then
387  error = 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
390  If error Then devname = ERR_PTR(error)
394  Return match_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
Caller
NameDescribe
aa_remount
aa_bind_mount
aa_mount_change_type
aa_move_mount
aa_new_mount