// SPDX-License-Identifier: GPL-2.0+ /* * Platform keyring for firmware/platform keys * * Copyright IBM Corporation, 2018 * Author(s): Nayna Jain <[email protected]> */ #include <linux/export.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/cred.h> #include <linux/err.h> #include <linux/slab.h> #include "../integrity.h" /** * add_to_platform_keyring - Add to platform keyring without validation. * @source: Source of key * @data: The blob holding the key * @len: The length of the data blob * * Add a key to the platform keyring without checking its trust chain. This * is available only during kernel initialisation. */ void __init add_to_platform_keyring(const char *source, const void *data, size_t len) { … } /* * Create the trusted keyrings. */ static __init int platform_keyring_init(void) { … } /* * Must be initialised before we try and load the keys into the keyring. */ device_initcall(platform_keyring_init);