Function report | 
Source Code:fs\verity\enable.c | 
Create Date:2022-07-28 20:24:32 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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
Proto:int fsverity_ioctl_enable(struct file *filp, const void __user *uarg)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | filp | |
| const void __user * | uarg | 
| 301 | inode = file_inode(filp) | 
| 305 | If copy_from_user( & arg, uarg, size of arg ) Then Return -EFAULT | 
| 315 | If block_size != PAGE_SIZE Then Return -EINVAL | 
| 318 | If 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) Then Return -EMSGSIZE | 
| 321 | If sig_size > FS_VERITY_MAX_SIGNATURE_SIZE Then Return -EMSGSIZE | 
| 348 | err = deny_write_access(filp) | 
| 349 | If err Then Go to out_drop_write | 
| 352 | err = enable_verity(filp, & arg) | 
| 353 | If err Then Go to 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 | Return err | 
| 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  |