Re: Should we automatically generate a module signing key at all?

From: Pavel Machek
Date: Tue Jun 23 2015 - 16:38:07 EST


On Tue 2015-05-19 10:44:47, Linus Torvalds wrote:
> On Mon, May 18, 2015 at 5:51 PM, Andy Lutomirski <luto@xxxxxxxxxx> wrote:
> >
> > I think we should get rid of the idea of automatically generated signing
> > keys entirely. Instead I think we should generate, at build time, a list of
> > all the module hashes and link that into vmlinux.
>
> Ugh. I think that would be a mistake. It doesn't add any new security
> (it's 100% equivalent to just using a throw-away key), and it adds new
> complexity and a new ordering dependency.
>
> Yes, yes, "throwing away the key" is a somewhat gray area, and just
> unlinking the key-file without any secure erase in theory makes it
> recoverable. In practice, though, it is fine. If you have an attacker
> that has raw access to your disk and almost infinite resources, they
> have easier ways to make your life miserable.

We should really implement secure erase, and it probably needs to be
at kernel level.

> Even a non-secure unlinking of the temporary key file is going to make
> things like rootkit authors give up on trying to recover it. Really.

Placing the key in some kind of ram filesystem where erase is easy to
do might be easy solution to this...
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/