Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 18:54:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:selinux_sb_show_options

Proto:static int selinux_sb_show_options(struct seq_file *m, struct super_block *sb)

Type:int

Parameter:

TypeParameterName
struct seq_file *m
struct super_block *sb
1100  sbsec = s_security
1103  If Not ( which mount options were specified & Non-mount related flags ) Then Return 0
1106  If Not initialized Then Return 0
1109  If which mount options were specified & FSCONTEXT_MNT Then
1110  seq_putc(m, ',')
1111  seq_puts(m, FSCONTEXT_STR)
1112  rc = show_sid(m, SID of file system superblock )
1113  If rc Then Return rc
1116  If which mount options were specified & BE CAREFUL, these need to be the low order bits for selinux_get_mnt_opts Then
1117  seq_putc(m, ',')
1118  seq_puts(m, CONTEXT_STR)
1119  rc = show_sid(m, SECURITY_FS_USE_MNTPOINT context for files )
1120  If rc Then Return rc
1123  If which mount options were specified & DEFCONTEXT_MNT Then
1124  seq_putc(m, ',')
1125  seq_puts(m, DEFCONTEXT_STR)
1126  rc = show_sid(m, default SID for labeling )
1127  If rc Then Return rc
1130  If which mount options were specified & ROOTCONTEXT_MNT Then
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  If rc Then Return rc
1139  If which mount options were specified & SBLABEL_MNT Then
1140  seq_putc(m, ',')
1141  seq_puts(m, SECLABEL_STR)
1143  Return 0