| 函数逻辑报告 | 
| Source Code: security\selinux\hooks.c | Create Date:2022-07-27 20:26:42 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:selinux_sb_clone_mnt_opts
函数原型:static int selinux_sb_clone_mnt_opts(const struct super_block *oldsb, struct super_block *newsb, unsigned long kern_flags, unsigned long *set_kern_flags)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| const struct super_block * | oldsb | |
| struct super_block * | newsb | |
| unsigned long | kern_flags | |
| unsigned long * | set_kern_flags | 
| 919 | rc等于0 | 
| 920 | oldsbsec等于s_security | 
| 921 | newsbsec等于s_security | 
| 924 | set_context等于 which mount options were specified 按位与BE CAREFUL, these need to be the low order bits for selinux_get_mnt_opts | 
| 931 | 如果非initialized则返回:0 | 
| 938 | 如果kern_flags且非set_kern_flags则返回:负EINVAL | 
| 946 | 如果kern_flags按位与LSM Agnostic defines for fs_context::lsm_flags 且非set_context则set_kern_flags或等于LSM Agnostic defines for fs_context::lsm_flags | 
| 948 | 返回:selinux_cmp_sb_context(oldsb, newsb) | 
| 951 | mutex_lock( & lock) | 
| 961 | rc等于security_fs_use( & selinux_state, newsb) | 
| 971 | 如果set_context则 | 
| 974 | 如果非set_fscontext则 SID of file system superblock 等于sid | 
| 976 | 如果非set_rootcontext则 | 
| 982 | 如果set_rootcontext则 | 
| 989 | sb_finish_set_opts(newsb) | 
| 990 | out : | 
| 992 | 返回:rc | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |