Function report |
Source Code:fs\verity\measure.c |
Create Date:2022-07-28 20:24:46 |
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_measure() - get a verity file's measurement* Retrieve the file measurement that the kernel is enforcing for reads from a* verity file
Proto:int fsverity_ioctl_measure(struct file *filp, void __user *_uarg)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | filp | |
void __user * | _uarg |
23 | inode = file_inode(filp) |
29 | vi = fsverity_get_info(inode) |
40 | If Get a simple variable from user space( input/output , & input/output ) Then Return -EFAULT |
42 | If input/output < digest size in bytes, e.g. 32 for SHA-256 Then Return -EOVERFLOW |
49 | If copy_to_user(uarg, & arg, size of arg ) Then Return -EFAULT |
52 | If copy_to_user(digest, measurement, digest size in bytes, e.g. 32 for SHA-256 ) Then Return -EFAULT |
55 | Return 0 |
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 |