函数逻辑报告 |
Source Code:fs\verity\open.c |
Create Date:2022-07-29 10:58:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Validate the given fsverity_descriptor and create a new fsverity_info from* it. The signature (if present) is also checked.
函数原型:struct fsverity_info *fsverity_create_info(const struct inode *inode, void *_desc, size_t desc_size)
返回类型:struct fsverity_info
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct inode * | inode | |
void * | _desc | |
size_t | desc_size |
155 | fsverity_err(inode, "Unrecognized descriptor size: %zu bytes", desc_size) |
157 | 返回:错误号 |
160 | 如果must be 1 不等于1则 |
161 | fsverity_err(inode, "Unrecognized descriptor version: %u", must be 1 ) |
163 | 返回:错误号 |
167 | fsverity_err(inode, "Reserved bits set in descriptor") |
168 | 返回:错误号 |
172 | fsverity_err(inode, "Invalid salt_size: %u", size of salt in bytes; 0 if none ) |
173 | 返回:错误号 |
177 | fsverity_err(inode, "Wrong data_size: %llu (desc) != %lld (inode)", le64_to_cpu(size of file the Merkle tree is built over ), i_size) |
180 | 返回:错误号 |
192 | 如果err则 |
193 | fsverity_err(inode, "Error %d initializing Merkle tree parameters", err) |
196 | 转到:out |
201 | err等于Compute the file measurement by hashing the fsverity_descriptor excluding the* signature and with the sig_size field set to 0. |
203 | 如果err则 |
204 | fsverity_err(inode, "Error %d computing file measurement", err) |
205 | 转到:out |
207 | pr_debug("Computed file measurement: %s:%*phN\n", crypto API name, e.g. sha256 , same as hash_alg->digest_size , measurement) |
211 | err等于signature.c |
212 | out : |
213 | 如果err则 |
214 | fsverity_free_info(vi) |
217 | 返回:vi |
名称 | 描述 |
---|---|
ensure_verity_info | Ensure the inode has an ->i_verity_info |
enable_verity |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |