12 #include <linux/kernel.h>
13 #include <linux/sched.h>
23 asm(
".section .init.data,\"aw\"\n"
25 ".incbin \"signing_key.x509\"\n"
26 ".incbin \"extra_certificates\"\n"
34 static __initdata const char annoy_ccache[] = __TIME__
"foo";
39 static __init int module_verify_init(
void)
41 pr_notice(
"Initialise module verification\n");
46 (KEY_POS_ALL & ~KEY_POS_SETATTR) |
47 KEY_USR_VIEW | KEY_USR_READ,
48 KEY_ALLOC_NOT_IN_QUOTA);
50 panic(
"Can't allocate module signing keyring\n");
53 panic(
"Can't instantiate module signing keyring\n");
66 static __init int load_module_signing_keys(
void)
72 pr_notice(
"Loading module verification certificates\n");
85 plen = (p[2] << 8) | p[3];
95 (KEY_POS_ALL & ~KEY_POS_SETATTR) |
97 KEY_ALLOC_NOT_IN_QUOTA);
99 pr_err(
"MODSIGN: Problem loading in-kernel X.509 certificate (%ld)\n",
110 pr_err(
"MODSIGN: Problem parsing in-kernel X.509 certificate list\n");