From: Andrey Borzenkov <arvidjaar@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH v2 4/5] Add -k, --pubkey=FILE support to grub-install command
Date: Fri, 6 Sep 2013 23:40:10 +0400 [thread overview]
Message-ID: <20130906234010.72e07031@opensuse.site> (raw)
In-Reply-To: <1378484333-13577-5-git-send-email-jonmccune@google.com>
В Fri, 6 Sep 2013 09:18:52 -0700
Jon McCune <jonmccune@google.com> пишет:
> This simply passes along the public key to the grub-mkimage invocation
>
> Signed-off-by: Jon McCune <jonmccune@google.com>
> ---
> util/grub-install.in | 13 +++++++++----
> util/grub-install_header | 6 ++++++
> 2 files changed, 15 insertions(+), 4 deletions(-)
>
> diff --git a/util/grub-install.in b/util/grub-install.in
> index 1816bb1..3df0087 100644
> --- a/util/grub-install.in
> +++ b/util/grub-install.in
> @@ -650,10 +650,15 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
> *) imgext=img ;;
> esac
>
> +pubkey_file_arg=""
> +if [ -e "$pubkey_file" ]; then
> + pubkey_file_arg="--pubkey=$pubkey_file"
> +fi
> +
You should return an error if file does not exist, not silently ignore
it.
> + --pubkey | -k)
> + pubkey_file=`argument $option "$@"`; grub_process_install_options_consumed=2 ;;
> + --pubkey=*)
> + pubkey_file=`echo "$option" | sed 's/--pubkey=//'` grub_process_install_options_consumed=1;;
grub-mkimage supports multiple keys. This will work only for exactly
one.
> --modules)
> modules=`argument $option "$@"`; grub_process_install_options_consumed=2;;
> --modules=*)
next prev parent reply other threads:[~2013-09-06 19:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-06 16:18 [PATCH v2 0/5] Enable savedefault, etc with check_signatures=enforce Jon McCune
2013-09-06 16:18 ` [PATCH v2 1/5] style: indent --no-tabs --gnu-style grub-core/commands/loadenv.c Jon McCune
2013-09-06 16:18 ` [PATCH v2 2/5] load_env support for whitelisting which variables are read from an env file, even if check_signatures=enforce Jon McCune
2013-09-06 19:48 ` Andrey Borzenkov
2013-09-06 21:10 ` Jonathan McCune
2013-09-07 9:33 ` Andrey Borzenkov
2013-09-09 15:34 ` Jonathan McCune
2013-09-19 10:12 ` Andrey Borzenkov
2013-09-19 18:18 ` Jonathan McCune
2013-09-19 7:18 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-09-19 10:06 ` Andrey Borzenkov
2013-09-06 16:18 ` [PATCH v2 3/5] save_env should work, " Jon McCune
2013-09-06 16:18 ` [PATCH v2 4/5] Add -k, --pubkey=FILE support to grub-install command Jon McCune
2013-09-06 19:40 ` Andrey Borzenkov [this message]
2013-09-06 21:10 ` Jonathan McCune
2013-09-06 16:18 ` [PATCH v2 5/5] Additional security-relevant documentation Jon McCune
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=20130906234010.72e07031@opensuse.site \
--to=arvidjaar@gmail.com \
--cc=grub-devel@gnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.