函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_sb_remount

函数原型:static int selinux_sb_remount(struct super_block *sb, void *mnt_opts)

返回类型:int

参数:

类型参数名称
struct super_block *sb
void *mnt_opts
2680  opts等于mnt_opts
2681  sbsec等于s_security
2685  如果非 which mount options were specified 按位与Non-mount related flags 的值则返回:0
2688  如果非opts则返回:0
2691  如果fscontext
2692  rc等于parse_sid(sb, fscontext, & sid)
2693  如果rc则返回:rc
2695  如果bad_option(sbsec, FSCONTEXT_MNT, SID of file system superblock , sid)则转到:out_bad_option
2698  如果context
2699  rc等于parse_sid(sb, context, & sid)
2700  如果rc则返回:rc
2702  如果bad_option(sbsec, BE CAREFUL, these need to be the low order bits for selinux_get_mnt_opts , SECURITY_FS_USE_MNTPOINT context for files , sid)则转到:out_bad_option
2705  如果rootcontext
2707  root_isec等于Get the security label of a dentry's backing inode.
2708  rc等于parse_sid(sb, rootcontext, & sid)
2709  如果rc则返回:rc
2711  如果bad_option(sbsec, ROOTCONTEXT_MNT, SID of this object , sid)则转到:out_bad_option
2714  如果defcontext
2715  rc等于parse_sid(sb, defcontext, & sid)
2716  如果rc则返回:rc
2718  如果bad_option(sbsec, DEFCONTEXT_MNT, default SID for labeling , sid)则转到:out_bad_option
2721  返回:0
2723  out_bad_option :
2724  打印警告信息("SELinux: unable to change security options during remount (dev %s, type=%s)\n", Informational name , name)
2727  返回:负EINVAL