Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\digsig.c Create Date:2022-07-28 19:56:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:integrity_load_x509

Proto:int __init integrity_load_x509(const unsigned int id, const char *path)

Type:int

Parameter:

TypeParameterName
const unsigned intid
const char *path
179  rc = kernel_read_file_from_path(path, & data, & size, 0, READING_X509_CERTIFICATE)
181  If rc < 0 Then
182  pr_err("Unable to open file: %s (%d)", path, rc)
183  Return rc
186  perm = KEY_POS_ALL & ~possessor can set key attributes | user permissions... | KEY_USR_READ
188  pr_info("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  Return rc