Function report |
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 activity | Download SCCT | Chinese |
Name:selinux_sb_show_options
Proto:static int selinux_sb_show_options(struct seq_file *m, struct super_block *sb)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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 |
| 1111 | seq_puts(m, FSCONTEXT_STR) |
| 1112 | rc = show_sid(m, SID of file system superblock ) |
| 1118 | seq_puts(m, CONTEXT_STR) |
| 1123 | If which mount options were specified & DEFCONTEXT_MNT Then |
| 1125 | seq_puts(m, DEFCONTEXT_STR) |
| 1126 | rc = show_sid(m, default SID for labeling ) |
| 1130 | If which mount options were specified & ROOTCONTEXT_MNT Then |
| 1134 | seq_puts(m, ROOTCONTEXT_STR) |
| 1135 | rc = show_sid(m, SID of this object ) |
| 1139 | If which mount options were specified & SBLABEL_MNT Then |
| 1141 | seq_puts(m, SECLABEL_STR) |
| 1143 | Return 0 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |