函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_mount_change_type

函数原型:int aa_mount_change_type(struct aa_label *label, const struct path *path, unsigned long flags)

返回类型:int

参数:

类型参数名称
struct aa_label *label
const struct path *path
unsigned longflags
463  char * buffer = NULL
466  AA_BUG(!label)
467  AA_BUG(!path)
470  flags与等于MS_REC按位或MS_SILENT按位或change to shared 按位或change to private 按位或change to slave 按位或change to unbindable
473  buffer等于aa_get_buffer(false)
474  如果非buffer则返回:负ENOMEM
476  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 )
479  aa_put_buffer(buffer)
481  返回:error