Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:53:47 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:selinux_cmp_sb_context
Proto:static int selinux_cmp_sb_context(const struct super_block *oldsb, const struct super_block *newsb)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct super_block * | oldsb | |
| const struct super_block * | newsb |
| 887 | old = s_security |
| 888 | new = s_security |
| 894 | If oldflags & FSCONTEXT_MNT && SID of file system superblock != SID of file system superblock Then Go to mismatch |
| 898 | If oldflags & DEFCONTEXT_MNT && default SID for labeling != default SID for labeling Then Go to mismatch |
| 900 | If oldflags & ROOTCONTEXT_MNT Then |
| 903 | If SID of this object != SID of this object Then Go to mismatch |
| 906 | Return 0 |
| 907 | mismatch : |
| 908 | pr_warn("SELinux: mount invalid. Same superblock, different security settings for (dev %s, type %s)\n", Informational name , name) |
| 911 | Return -EBUSY |
| Name | Describe |
|---|---|
| selinux_sb_clone_mnt_opts |
| 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 |