函数源码 |
Source File:security\integrity\platform_certs\load_powerpc.c |
Create Date:2022-07-27 21:56:09 |
首页 | Copyright©Brick |
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | #endif #endif #include "keyring_handler.h" /* * Get a certificate list blob from the named secure variable. */ static __init void *get_cert_list(u8 *key, unsigned long keylen, uint64_t *size) { int rc; void *db; rc = secvar_ops->get(key, keylen, NULL, size); if (rc) { pr_err( "Couldn't get size: %d\n" , rc); return NULL; } db = kmalloc(*size, GFP_KERNEL); if (!db) return NULL; rc = secvar_ops->get(key, keylen, db, size); if (rc) { kfree(db); pr_err( "Error reading %s var: %d\n" , key, rc); return NULL; } return db; } |