From: Philipp Hahn <pmhahn@pmhahn.de>
To: Matthew Garrett <mjg59@google.com>, Jessica Yu <jeyu@kernel.org>
Cc: Ben Hutchings <ben@decadent.org.uk>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Make kernel taint on invalid module signatures configurable
Date: Fri, 16 Feb 2018 09:24:58 +0100 [thread overview]
Message-ID: <ff79053c-4a4c-714e-4098-bf973eaefd63@pmhahn.de> (raw)
In-Reply-To: <CACdnJutL7rJE=1bsh45RmvunU-GZJCYaejyznENrAgFB6nbCLA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1794 bytes --]
Hello,
Am 15.02.2018 um 20:36 schrieb Matthew Garrett:
> On Thu, Feb 15, 2018 at 7:25 AM Jessica Yu <jeyu@kernel.org> wrote:
>> From what I understand from Ben's post from last year
>> (http://lkml.kernel.org/r/1504044122.4448.24.camel@decadent.org.uk),
>> it sounds like the main issue is that Debian doesn't support their own
>> centralised module signing yet, causing all of their modules to be
>> automatically tainted if they enable CONFIG_MODULE_SIG, and that a new
>> option like this would likely be used as a temporary "fix". Am I
>> understanding correctly?
>
> Not entirely. There's two cases where the current situation causes problems:
>
> 1) Distributions that build out of tree kernel modules and don't have
> infrastructure to sign them will end up with kernel taint. That's something
> that can be resolved by implementing that infrastructure.
> 2) End-users who build out of tree kernel modules will end up with kernel
> taint and will file bugs. This cannot be fixed but will increase
> distribution load anyway.
Just yesterday I sent the attached email to the crypto/-maintainers as I
have read some Fedora documentation about adding the UEFI SecureBoot
keys to the kernel secondary trusted keyring:
<https://docs-old.fedoraproject.org/en-US/Fedora/23/html/System_Administrators_Guide/sect-kernel-module-authentication.html>
Sadly didn't work for me :-(
If my understanding is correct and iff that would work, Debian (and
others) could load their public key into Shim and then use the
associated private key for singing their modules.
Debian currently plans to have a Sprint for their SecureBoot process in
April, which I will attend. Hopefully we will find a solution their:
<https://wiki.debian.org/Sprints/2018/SecureBootSprint>
Philipp (also a Debian developer)
[-- Attachment #2: Nachricht als Anhang --]
[-- Type: message/rfc822, Size: 2691 bytes --]
From: Philipp Hahn <hahn@univention.de>
To: David Howells <dhowells@redhat.com>, David Woodhouse <dwmw2@infradead.org>
Cc: keyrings@vger.kernel.org
Subject: [linux] .system_keyring ?
Date: Thu, 15 Feb 2018 12:51:50 +0100
Message-ID: <49ef1eb6-802b-ae86-a5e4-eb29a8ef4c4c@univention.de>
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
<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.
--
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
next prev parent reply other threads:[~2018-02-16 8:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-07 19:50 Matthew Garrett
2018-02-14 18:21 ` Matthew Garrett
2018-02-15 15:25 ` Jessica Yu
2018-02-15 19:36 ` Matthew Garrett
2018-02-16 8:24 ` Philipp Hahn [this message]
2018-02-17 0:08 ` Matthew Garrett
2018-02-20 19:21 ` Jessica Yu
2018-02-20 20:37 ` Matthew Garrett
2018-02-20 21:23 ` Jessica Yu
2018-02-21 14:59 ` Ben Hutchings
2018-02-20 21:44 ` Jessica Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ff79053c-4a4c-714e-4098-bf973eaefd63@pmhahn.de \
--to=pmhahn@pmhahn.de \
--cc=ben@decadent.org.uk \
--cc=jeyu@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg59@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®