函数逻辑报告 |
Source Code:security\tomoyo\mount.c |
Create Date:2022-07-27 21:13:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_mount_permission - Check permission for mount() operation.*@dev_name: Name of device file. Maybe NULL.*@path: Pointer to "struct path".*@type: Name of filesystem type. Maybe NULL.*@flags: Mount options.*@data_page: Optional data. Maybe NULL.
函数原型:int tomoyo_mount_permission(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data_page)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const char * | dev_name | |
const struct path * | path | |
const char * | type | |
unsigned long | flags | |
void * | data_page |
199 | 如果tomoyo_init_request_info( & r, NULL, TOMOYO_MAC_FILE_MOUNT)恒等于TOMOYO_CONFIG_DISABLED则返回:0 |
202 | 如果flags按位与MS_MGC_MSK的值恒等于Old magic mount flag and mask则flags与等于MS_MGC_MSK的反 |
204 | 如果flags按位与Alter flags of a mounted FS 则 |
206 | flags与等于Alter flags of a mounted FS 的反 |
210 | 否则如果flags按位与change to shared 则 |
211 | 如果flags按位与change to private 按位或change to slave 按位或change to unbindable 的值则返回:负EINVAL |
214 | flags与等于change to shared 的反 |
215 | 否则如果flags按位与change to private 则 |
216 | 如果flags按位与change to shared 按位或change to slave 按位或change to unbindable 的值则返回:负EINVAL |
219 | flags与等于change to private 的反 |
220 | 否则如果flags按位与change to slave 则 |
221 | 如果flags按位与change to shared 按位或change to private 按位或change to unbindable 的值则返回:负EINVAL |
224 | flags与等于change to slave 的反 |
225 | 否则如果flags按位与change to unbindable 则 |
226 | 如果flags按位与change to shared 按位或change to private 按位或change to slave 的值则返回:负EINVAL |
229 | flags与等于change to unbindable 的反 |
236 | idx等于moyo_read_lock - Take lock for protecting policy.* Returns index number for tomoyo_read_unlock(). |
239 | 返回:error |
名称 | 描述 |
---|---|
tomoyo_sb_mount | moyo_sb_mount - Target for security_sb_mount().*@dev_name: Name of device file. Maybe NULL.*@path: Pointer to "struct path".*@type: Name of filesystem type. Maybe NULL.*@flags: Mount options.*@data: Optional data. Maybe NULL. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |