函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\digsig.c Create Date:2022-07-27 21:53:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:integrity_load_x509

函数原型:int __init integrity_load_x509(const unsigned int id, const char *path)

返回类型:int

参数:

类型参数名称
const unsigned intid
const char *path
179  rc等于kernel_read_file_from_path(path, & data, & size, 0, READING_X509_CERTIFICATE)
181  如果rc小于0则
182  打印错误信息("Unable to open file: %s (%d)", path, rc)
183  返回:rc
186  perm等于KEY_POS_ALL按位与possessor can set key attributes 的反按位或user permissions... 按位或KEY_USR_READ
188  打印信息("Loading X.509 certificate: %s\n", path)
189  rc等于integrity_add_key(id, (constvoid * )data, size, perm)
191  vfree - release memory allocated by vmalloc()*@addr: memory base address* Free the virtually continuous memory area starting at @addr, as* obtained from vmalloc(), vmalloc_32() or __vmalloc()
192  返回:rc