函数逻辑报告 |
Source Code:fs\verity\enable.c |
Create Date:2022-07-29 10:58:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:sverity_ioctl_enable() - enable verity on a file* Enable fs-verity on a file. See the "FS_IOC_ENABLE_VERITY" section of* Documentation/filesystems/fsverity.rst for the documentation.* Return: 0 on success, -errno on failure
函数原型:int fsverity_ioctl_enable(struct file *filp, const void __user *uarg)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct file * | filp | |
| const void __user * | uarg |
| 301 | inode等于file_inode(filp) |
| 305 | 如果copy_from_user( & arg, uarg, arg的长度)则返回:负EFAULT |
| 315 | 如果block_size不等于PAGE_SIZE则返回:负EINVAL |
| 318 | 如果salt_size大于sizeof_field(TYPE, MEMBER)*@TYPE: The structure containing the field of interest*@MEMBER: The field to return the size of(structfsverity_descriptor, salt)则返回:负EMSGSIZE |
| 321 | 如果sig_size大于FS_VERITY_MAX_SIGNATURE_SIZE则返回:负EMSGSIZE |
| 348 | err等于deny_write_access(filp) |
| 349 | 如果err则转到:out_drop_write |
| 352 | err等于enable_verity(filp, & arg) |
| 353 | 如果err则转到:out_allow_write_access |
| 371 | out_allow_write_access : |
| 372 | allow_write_access(filp) |
| 373 | out_drop_write : |
| 374 | mnt_drop_write_file(filp) |
| 375 | 返回:err |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |