public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Carlos Silva <r3pek@r3pek.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [RFC] patch linux-mod.eclass to add support for module signing
Date: Wed, 6 Mar 2013 21:19:19 -0100	[thread overview]
Message-ID: <CA+ZvHYHuaOC4ZJXvG0dCMB6YtE_ewskpWhkToZT-vgwTX=RYcg@mail.gmail.com> (raw)
In-Reply-To: <20130306221410.7910.qmail@stuge.se>

[-- Attachment #1: Type: text/plain, Size: 1310 bytes --]

On Wed, Mar 6, 2013 at 9:14 PM, Peter Stuge <peter@stuge.se> wrote:

> Carlos Silva wrote:
> > > > If one wants to create a key himself, it's also possible to use this
> > > > key, he just has to name it signing_key.priv and siging_key.x509 and
> > > > put it under /usr/src/linux.
> > >
> > > Do you know if this is a sane default?
> > >
> > > Where do most users of signed modules store keys so far?
> >
> > It's where the kernel build system picks them.
>
> Are you sure? I find that hard to believe? Even if I tell an external
> module to build against a source tree in ~/linux/ the Makefiles will
> go to look for the keys in /usr/src/linux/ ?
>

OK, my bad here. The kernel build system looks for them on the root of the
kernel source.
To build modules, they can be anywhere as long as you have the correct path
set on make.conf:
KERNEL_MODSECKEY="/path/to/privkey"
KERNEL_MODPUBKEY="/path/to/pubkey"

This only works for modules.


> They only have to be there to build the kernel, nothing else.
>
> I'm not talking about end users, by users I mean those who use the
> key files to build kernels and modules.
>

See above. I even read online that a best practice would be to generate a
new set of keys on every kernel build actually deleting the keys after the
kernel and external modules are compiled.

[-- Attachment #2: Type: text/html, Size: 2222 bytes --]

  reply	other threads:[~2013-03-06 22:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-06 19:25 [gentoo-dev] [RFC] patch linux-mod.eclass to add support for module signing Carlos Silva
2013-03-06 19:32 ` Steev Klimaszewski
2013-03-06 19:54   ` Carlos Silva
2013-03-06 21:39 ` Peter Stuge
2013-03-06 22:07   ` Carlos Silva
2013-03-06 22:14     ` Peter Stuge
2013-03-06 22:19       ` Carlos Silva [this message]
2013-03-08 17:44 ` [gentoo-dev] " Steven J. Long

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='CA+ZvHYHuaOC4ZJXvG0dCMB6YtE_ewskpWhkToZT-vgwTX=RYcg@mail.gmail.com' \
    --to=r3pek@r3pek.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /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