函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_move_mount

函数原型:int aa_move_mount(struct aa_label *label, const struct path *path, const char *orig_name)

返回类型:int

参数:

类型参数名称
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  如果非orig_name或非orig_name则返回:负EINVAL
498  error等于kern_path(orig_name, llow links at the end , & old_path)
499  如果error则返回:error
502  buffer等于aa_get_buffer(false)
503  old_buffer等于aa_get_buffer(false)
504  error等于负ENOMEM
505  如果非buffer或非old_buffer则转到: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  返回:error