Skip to contentSkip to conversation

.system_keyring ?

linux Philipp Hahn 2 participants 2 messages Feb 15, 2018 – Feb 21, 2018 Keys/keyrings

lore
Share & tools
lore
#0 lore raw

Hello,

reading "Documentation/admin-guide/module-signing.rst":

Quoted 6 lines

The kernel contains a ring of public keys that can be viewed by root. They're in a keyring called ".system_keyring" that can be seen by::

        [root@deneb ~]# cat /proc/keys
        ...
        223c7853 I------     1 perm 1f030000     0     0 keyring   .system_keyring: 1

I don't have that ".system_keyring":

Quoted 7 lines

cat /proc/keys

00a8459a I------     1 perm 1f0f0000     0     0 keyring   .secondary_trusted_keys: 1
02b66804 I--Q---     8 perm 3f030000     0     0 keyring   _ses: 1
0639503a I--Q---     3 perm 1f3f0000     0 65534 keyring   _uid.0: empty
1afb3552 I------     2 perm 1f0b0000     0     0 keyring   .builtin_trusted_keys: 1
3167cca3 I--Q---     1 perm 1f3f0000     0 65534 keyring   _uid_ses.0: 1
37b744d9 I------     1 perm 1f030000     0     0 asymmetri Build time autogenerated kernel key: 8943e26cd249e2fcdafea805149fcf9ed5912e10: X509.rsa d5912e10 []

Grepping the Linux kernel source tree git also find no '.system_keyring' in any source file - only the name of the header file and in Documentation/. Am I missing something? If that documentation out-dated?

My .config is this:

Quoted 6 lines
$ sed -ne 's/^config /CONFIG_/p' certs/Kconfig | ssh uefi 'grep -F -f - /boot/config-`uname -r`'
CONFIG_MODULE_SIG_KEY="certs/signing_key.pem"
CONFIG_SYSTEM_TRUSTED_KEYRING=y
CONFIG_SYSTEM_TRUSTED_KEYS=""
# CONFIG_SYSTEM_EXTRA_CERTIFICATE is not set
CONFIG_SECONDARY_TRUSTED_KEYRING=y

I was looking at
<https://docs-old.fedoraproject.org/en-US/Fedora/23/html/System_Administrators_Guide/sect-kernel-module-authentication.html>
and I'm trying to get my UEFI keys added to the Linux keyring. I want to sign my modules with that "external" key instead of embedding the key into the Linux kernel itself.

Thanks in advance.

Philipp

PS: I'm not subscribed to 'keyring, but LKML.

Signature · 15 lines
Philipp Hahn
Open Source Software Engineer

Univention GmbH
be open.
Mary-Somerville-Str. 1
D-28359 Bremen
Tel.: +49 421 22232-0
Fax : +49 421 22232-99
[email protected]

http://www.univention.de/
Geschäftsführer: Peter H. Ganten
HRB 20755 Amtsgericht Bremen
Steuer-Nr.: 71-597-02876
maintainer
#1 lore raw
Quoted 3 lines · Philipp Hahn

Grepping the Linux kernel source tree git also find no '.system_keyring' in any source file - only the name of the header file and in Documentation/. Am I missing something? If that documentation out-dated?

Yeah, the docs are out of date, though I'm not entirely convinced by what we have now - the IMA people seem to want to split the keyring set yet further, which suggests this is the wrong way of going about things.

David