Function report | 
Source Code:fs\verity\open.c | 
Create Date:2022-07-28 20:24:50 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Ensure the inode has an ->i_verity_info
Proto:static int ensure_verity_info(struct inode *inode)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct inode * | inode | 
| 241 | vi = fsverity_get_info(inode) | 
| 245 | If vi Then Return 0 | 
| 248 | res = get_verity_descriptor(inode, NULL, 0) | 
| 249 | If res < 0 Then | 
| 250 | fsverity_err(inode, "Error %d getting verity descriptor size", res) | 
| 252 | Return res | 
| 255 | fsverity_err(inode, "Verity descriptor is too large (%d bytes)", res) | 
| 257 | Return -EMSGSIZE | 
| 259 | desc = Allocation memory | 
| 262 | res = get_verity_descriptor(inode, desc, res) | 
| 263 | If res < 0 Then | 
| 264 | fsverity_err(inode, "Error %d reading verity descriptor", res) | 
| 265 | Go to out_free_desc | 
| 268 | vi = Validate the given fsverity_descriptor and create a new fsverity_info from* it. The signature (if present) is also checked. | 
| 271 | Go to out_free_desc | 
| 274 | fsverity_set_info(inode, vi) | 
| 275 | res = 0 | 
| 276 | out_free_desc : | 
| 278 | Return res | 
| Name | Describe | 
|---|---|
| fsverity_file_open | sverity_file_open() - prepare to open a verity file*@inode: the inode being opened*@filp: the struct file being set up* When opening a verity file, deny the open if it is for writing. Otherwise,* set up the inode's ->i_verity_info if not already done. | 
| 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  |