函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_cmp_sb_context

函数原型:static int selinux_cmp_sb_context(const struct super_block *oldsb, const struct super_block *newsb)

返回类型:int

参数:

类型参数名称
const struct super_block *oldsb
const struct super_block *newsb
887  old等于s_security
888  new等于s_security
889  oldflags等于 which mount options were specified 按位与Mask for just the mount related flags
890  newflags等于 which mount options were specified 按位与Mask for just the mount related flags
892  如果oldflags不等于newflags则转到:mismatch
894  如果oldflags按位与FSCONTEXT_MNT SID of file system superblock 不等于 SID of file system superblock 则转到:mismatch
896  如果oldflags按位与BE CAREFUL, these need to be the low order bits for selinux_get_mnt_opts SECURITY_FS_USE_MNTPOINT context for files 不等于 SECURITY_FS_USE_MNTPOINT context for files 则转到:mismatch
898  如果oldflags按位与DEFCONTEXT_MNT default SID for labeling 不等于 default SID for labeling 则转到:mismatch
900  如果oldflags按位与ROOTCONTEXT_MNT
901  oldroot等于Get the security label of a dentry's backing inode.
902  newroot等于Get the security label of a dentry's backing inode.
903  如果 SID of this object 不等于 SID of this object 则转到:mismatch
906  返回:0
907  mismatch :
908  打印警告信息("SELinux: mount invalid. Same superblock, different security settings for (dev %s, type %s)\n", Informational name , name)
911  返回:负EBUSY
调用者
名称描述
selinux_sb_clone_mnt_opts