Thread (28 messages) 28 messages, 12 authors, 2007-02-16

Re: [PATCH 0/6] MODSIGN: Kernel module signing

From: Indan Zupancic <hidden>
Date: 2007-02-15 21:32:05
Also in: lkml

Hello,

On Wed, February 14, 2007 20:40, David Howells wrote:
Linus Torvalds [off-list ref] wrote:
quoted
quoted
 (1) A cut-down MPI library derived from GPG with error handling added.
Do we really need to add this?
I presume you mean the MPI library specifically?  If so, then yes.  It's
necessary to do DSA signature verification (or RSA for that matter).
quoted
Wouldn't it be much nicer to just teach people to use one of the existing
signature things that we need for _other_ cases anyway, and already have
merged?
Existing signature things?  I know not of such beasts, nor can I see them
offhand.
The question is if using DSA/RSA is the right choice for something like this.
I think that the symmetrically encrypted hash output as signature would provide
the same amount of security. The only additional requirement is that the key
can't be read by userspace. But if they can reach the kernel binary, they can
modify it too. Same for the bootloader, where you'd want the key and initial
checking anyway. Else this whole thing could be done in user space as Roman
Zippel said...

The ELF section stuff seems like unnecessary bloat too. Can't you use/extend
modinfo, or kernel symbols?

With the above changes the code should shrink to only a few hundred new lines
of code, instead of thousands, and signature checking will be much faster too.

Greetings,

Indan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help