security/integrity/platform_certs/load_ipl_s390.c
Source file repositories/reference/linux-study-clean/security/integrity/platform_certs/load_ipl_s390.c
File Facts
- System
- Linux kernel
- Corpus path
security/integrity/platform_certs/load_ipl_s390.c- Extension
.c- Size
- 860 bytes
- Lines
- 37
- Domain
- Core OS
- Bucket
- Security And Isolation
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
Dependency Surface
linux/kernel.hlinux/sched.hlinux/cred.hlinux/err.hlinux/efi.hlinux/slab.hkeys/asymmetric-type.hkeys/system_keyring.hasm/boot_data.h../integrity.h
Detected Declarations
function load_ipl_certs
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/cred.h>
#include <linux/err.h>
#include <linux/efi.h>
#include <linux/slab.h>
#include <keys/asymmetric-type.h>
#include <keys/system_keyring.h>
#include <asm/boot_data.h>
#include "../integrity.h"
/*
* Load the certs contained in the IPL report created by the machine loader
* into the platform trusted keyring.
*/
static int __init load_ipl_certs(void)
{
void *ptr, *end;
unsigned int len;
if (!ipl_cert_list_addr)
return 0;
/* Copy the certificates to the platform keyring */
ptr = __va(ipl_cert_list_addr);
end = ptr + ipl_cert_list_size;
while ((void *) ptr < end) {
len = *(unsigned int *) ptr;
ptr += sizeof(unsigned int);
add_to_platform_keyring("IPL:db", ptr, len);
ptr += len;
}
return 0;
}
late_initcall(load_ipl_certs);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/sched.h`, `linux/cred.h`, `linux/err.h`, `linux/efi.h`, `linux/slab.h`, `keys/asymmetric-type.h`, `keys/system_keyring.h`.
- Detected declarations: `function load_ipl_certs`.
- Atlas domain: Core OS / Security And Isolation.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.