Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aa_move_mount

Proto:int aa_move_mount(struct aa_label *label, const struct path *path, const char *orig_name)

Type:int

Parameter:

TypeParameterName
struct aa_label *label
const struct path *path
const char *orig_name
488  char * buffer = NULL, * old_buffer = NULL
492  AA_BUG(!label)
493  AA_BUG(!path)
495  If Not orig_name || Not orig_name Then Return -EINVAL
498  error = kern_path(orig_name, llow links at the end , & old_path)
499  If error Then Return error
502  buffer = aa_get_buffer(false)
503  old_buffer = aa_get_buffer(false)
504  error = -ENOMEM
505  If Not buffer || Not old_buffer Then Go to out
507  error = fn_for_each_confined(label, profile, 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 )
510  out :
511  aa_put_buffer(buffer)
512  aa_put_buffer(old_buffer)
513  path_put( & old_path)
515  Return error