函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_sb_show_options

函数原型:static int selinux_sb_show_options(struct seq_file *m, struct super_block *sb)

返回类型:int

参数:

类型参数名称
struct seq_file *m
struct super_block *sb
1100  sbsec等于s_security
1103  如果非 which mount options were specified 按位与Non-mount related flags 的值则返回:0
1106  如果非initialized则返回:0
1109  如果 which mount options were specified 按位与FSCONTEXT_MNT
1110  seq_putc(m, ',')
1111  seq_puts(m, FSCONTEXT_STR)
1112  rc等于show_sid(m, SID of file system superblock )
1113  如果rc则返回:rc
1116  如果 which mount options were specified 按位与BE CAREFUL, these need to be the low order bits for selinux_get_mnt_opts
1117  seq_putc(m, ',')
1118  seq_puts(m, CONTEXT_STR)
1119  rc等于show_sid(m, SECURITY_FS_USE_MNTPOINT context for files )
1120  如果rc则返回:rc
1123  如果 which mount options were specified 按位与DEFCONTEXT_MNT
1124  seq_putc(m, ',')
1125  seq_puts(m, DEFCONTEXT_STR)
1126  rc等于show_sid(m, default SID for labeling )
1127  如果rc则返回:rc
1130  如果 which mount options were specified 按位与ROOTCONTEXT_MNT
1131  root等于s_root
1132  isec等于Get the security label of a dentry's backing inode.
1133  seq_putc(m, ',')
1134  seq_puts(m, ROOTCONTEXT_STR)
1135  rc等于show_sid(m, SID of this object )
1136  如果rc则返回:rc
1139  如果 which mount options were specified 按位与SBLABEL_MNT
1140  seq_putc(m, ',')
1141  seq_puts(m, SECLABEL_STR)
1143  返回:0