]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MODSIGN: Provide module signing public keys to the kernel
authorDavid Howells <dhowells@redhat.com>
Wed, 26 Sep 2012 09:09:51 +0000 (10:09 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 28 Sep 2012 05:15:01 +0000 (14:45 +0930)
commit9481c9a34b5f31e5292fc589663d0ea6a401e81c
treebc6a84b98863e81338b8a4179d6c4c8be19884db
parent857baa3ecb04a0ffadc3e60da6c7f2eb7fad92d9
MODSIGN: Provide module signing public keys to the kernel

Include a PGP keyring containing the public keys required to perform module
verification in the kernel image during build and create a special keyring
during boot which is then populated with keys of crypto type holding the public
keys found in the PGP keyring.

These can be seen by root:

[root@andromeda ~]# cat /proc/keys
07ad4ee0 I-----     1 perm 3f010000     0     0 crypto    modsign.0: RSA 87b9b3bd []
15c7f8c3 I-----     1 perm 1f030000     0     0 keyring   .module_sign: 1/4
...

It is probably worth permitting root to invalidate these keys, resulting in
their removal and preventing further modules from being loaded with that key.

Signed-off-by: David Howells <dhowells@redhat.com>
kernel/Makefile
kernel/modsign_pubkey.c [new file with mode: 0644]
kernel/module-internal.h