From: Jon McCune <jonmccune@google.com>
To: grub-devel@gnu.org
Cc: Jon McCune <jonmccune@google.com>
Subject: [PATCH v4 0/4] Add whitelisting support for load_env
Date: Tue, 24 Sep 2013 19:00:28 -0700 [thread overview]
Message-ID: <1380074432-27299-1-git-send-email-jonmccune@google.com> (raw)
These patches add support to load_env and save_env to work nicely
in concert with check_signatures=enforce. This represents an
evolution from the design in my email to grub-devel entitled
"Proposal to enable savedefault, one-shot reboot, etc with
check_signatures=enforce". In particular, no new commands are added.
Instead, the behavior of load_env is modified based on the presence
of a whitelist of environment variables to be updated from an
untrusted grubenv-style file.
Some additional work is done to make this support usable:
A {-k, --pubkey} option is added to:
grub-install, grub-mkrescue, grub-mkstandalone, grub-mknetdir.
See the individual patch descriptions for more specifics.
Jon McCune (4):
style: indent --no-tabs --gnu-style grub-core/commands/loadenv.c
load_env support for whitelisting which variables are read from an env
file, even if check_signatures=enforce
save_env should work, even if check_signatures=enforce
Add (multiple) -k, --pubkey=FILE support to installation commands.
grub-core/commands/loadenv.c | 139 ++++++++++++++++++++++++++++---------------
grub-core/lib/envblk.c | 20 ++++++-
include/grub/lib/envblk.h | 8 +++
util/grub-editenv.c | 2 +-
util/grub-install.in | 8 +--
util/grub-install_header | 17 ++++++
util/grub-mknetdir.in | 2 +-
util/grub-mkrescue.in | 12 ++--
util/grub-mkstandalone.in | 2 +-
9 files changed, 146 insertions(+), 64 deletions(-)
--
1.8.4
next reply other threads:[~2013-09-25 2:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-25 2:00 Jon McCune [this message]
2013-09-25 2:00 ` [PATCH v4 1/4] style: indent --no-tabs --gnu-style grub-core/commands/loadenv.c Jon McCune
2013-09-25 6:11 ` Andrey Borzenkov
2013-09-25 15:02 ` Jonathan McCune
2013-09-25 2:00 ` [PATCH v4 2/4] load_env support for whitelisting which variables are read from an env file, even if check_signatures=enforce Jon McCune
2013-09-25 6:09 ` Andrey Borzenkov
2013-09-25 15:01 ` Jonathan McCune
2013-09-27 2:20 ` Andrey Borzenkov
2013-09-25 2:00 ` [PATCH v4 3/4] save_env should work, " Jon McCune
2013-09-25 2:00 ` [PATCH v4 4/4] Add (multiple) -k, --pubkey=FILE support to installation commands 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=1380074432-27299-1-git-send-email-jonmccune@google.com \
--to=jonmccune@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).