Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:56:38 |
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_remount
Proto:static int selinux_sb_remount(struct super_block *sb, void *mnt_opts)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct super_block * | sb | |
void * | mnt_opts |
2681 | sbsec = s_security |
2685 | If Not ( which mount options were specified & Non-mount related flags ) Then Return 0 |
2688 | If Not opts Then Return 0 |
2691 | If fscontext Then |
2695 | If bad_option(sbsec, FSCONTEXT_MNT, SID of file system superblock , sid) Then Go to out_bad_option |
2698 | If context Then |
2705 | If rootcontext Then |
2708 | rc = parse_sid(sb, rootcontext, & sid) |
2711 | If bad_option(sbsec, ROOTCONTEXT_MNT, SID of this object , sid) Then Go to out_bad_option |
2714 | If defcontext Then |
2715 | rc = parse_sid(sb, defcontext, & sid) |
2718 | If bad_option(sbsec, DEFCONTEXT_MNT, default SID for labeling , sid) Then Go to out_bad_option |
2721 | Return 0 |
2723 | out_bad_option : |
2724 | pr_warn("SELinux: unable to change security options during remount (dev %s, type=%s)\n", Informational name , name) |
2727 | Return -EINVAL |
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 |