函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:apparmor_sb_mount

函数原型:static int apparmor_sb_mount(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)

返回类型:int

参数:

类型参数名称
const char *dev_name
const struct path *path
const char *type
unsigned longflags
void *data
533  error等于0
536  如果flags按位与MS_MGC_MSK的值恒等于Old magic mount flag and maskflags与等于MS_MGC_MSK的反
539  flags与等于AA_MS_IGNORE_MASK的反
541  label等于__begin_current_label_crit_section - current's confining label* Returns: up to date confining label or the ns unconfined label (NOT NULL)* safe to call inside locks* The returned reference must be put with __end_current_label_crit_section()* This must NOT
542  如果非unconfined(label)则
543  如果flags按位与Alter flags of a mounted FS error等于aa_remount(label, path, flags, data)
545  否则如果flags按位与MS_BINDerror等于aa_bind_mount(label, path, dev_name, flags)
547  否则如果flags按位与change to shared 按位或change to private 按位或change to slave 按位或change to unbindable 的值则error等于aa_mount_change_type(label, path, flags)
550  否则如果flags按位与MS_MOVEerror等于aa_move_mount(label, path, dev_name)
552  否则error等于aa_new_mount(label, dev_name, path, type, flags, data)
556  __end_current_label_crit_section(label)
558  返回:error