From: Philipp Hahn Date: Thu, 15 Feb 2018 11:51:50 +0000 Subject: [linux] .system_keyring ? Message-Id: <49ef1eb6-802b-ae86-a5e4-eb29a8ef4c4c@univention.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit List-Id: To: keyrings@vger.kernel.org Hello, reading "Documentation/admin-guide/module-signing.rst": > 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": > 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: > $ 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 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. -- 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 hahn@univention.de http://www.univention.de/ Geschäftsführer: Peter H. Ganten HRB 20755 Amtsgericht Bremen Steuer-Nr.: 71-597-02876