From: Daniel Kiper <daniel.kiper@oracle.com>
To: Ross Philipson <ross.philipson@oracle.com>
Cc: grub-devel@gnu.org, dpsmith.dev@gmail.com,
eric.snowberg@oracle.com, javierm@redhat.com,
jonmccune@google.com, kanth.ghatraju@oracle.com,
keng-yu.lin@hpe.com, konrad.wilk@oracle.com,
leif.lindholm@linaro.org, mjg59@srcf.ucam.org,
phcoder@gmail.com, philip.b.tricca@intel.com
Subject: Re: [PATCH v3 1/8] verifiers: File type for fine-grained signature-verification controlling
Date: Tue, 9 Oct 2018 15:43:29 +0200 [thread overview]
Message-ID: <20181009134329.GC4472@olila.i.net-space.pl> (raw)
In-Reply-To: <3f5e8a7f-7574-34f8-08aa-4410603d903f@oracle.com>
On Wed, Oct 03, 2018 at 01:33:26PM -0400, Ross Philipson wrote:
> On 10/03/2018 05:36 AM, Daniel Kiper wrote:
[...]
> > grub_file_t
> > -grub_file_open (const char *name)
> > +grub_file_open (const char *name, enum grub_file_type type)
> > {
> > grub_device_t device = 0;
> > grub_file_t file = 0, last_file = 0;
> > @@ -114,18 +113,20 @@ grub_file_open (const char *name)
> > file->name = grub_strdup (name);
> > grub_errno = GRUB_ERR_NONE;
> >
> > - for (filter = 0; file && filter < ARRAY_SIZE (grub_file_filters_enabled);
> > + for (filter = 0; file && filter < ARRAY_SIZE (grub_file_filters);
> > filter++)
> > - if (grub_file_filters_enabled[filter])
> > + if (grub_file_filters[filter])
> > {
> > last_file = file;
> > - file = grub_file_filters_enabled[filter] (file, name);
> > + file = grub_file_filters[filter] (file, type);
> > + if (file && file != last_file)
> > + {
> > + file->name = grub_strdup (name);
> > + grub_errno = GRUB_ERR_NONE;
> > + }
>
> This doesn't seem like it is related to adding file type information.
> Was the setting of the name just something that was already missing/broken?
Looks strange... I will take closer look at Vladimir patches
and try to remove the clutter...
Daniel
next prev parent reply other threads:[~2018-10-09 13:44 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-03 9:36 [PATCH v3 0/8] verifiers: Framework and EFI shim lock verifier Daniel Kiper
2018-10-03 9:36 ` [PATCH v3 1/8] verifiers: File type for fine-grained signature-verification controlling Daniel Kiper
2018-10-03 17:33 ` Ross Philipson
2018-10-09 13:43 ` Daniel Kiper [this message]
2018-10-03 9:36 ` [PATCH v3 2/8] verifiers: Framework core Daniel Kiper
2018-10-03 17:55 ` Ross Philipson
2018-10-09 13:48 ` Daniel Kiper
2018-10-03 9:36 ` [PATCH v3 3/8] verifiers: Add possibility to verify kernel and modules command lines Daniel Kiper
2018-10-03 9:36 ` [PATCH v3 4/8] verifiers: Add possibility to defer verification to other verifiers Daniel Kiper
2018-10-05 16:09 ` Ross Philipson
2018-10-09 13:57 ` Daniel Kiper
2018-10-03 9:36 ` [PATCH v3 5/8] verifiers: Rename verify module to pgp module Daniel Kiper
2018-10-05 16:24 ` Ross Philipson
2018-10-09 14:11 ` Daniel Kiper
2018-10-09 14:17 ` Michel Hermier
2018-10-09 14:20 ` Michel Hermier
2018-10-09 14:44 ` Ross Philipson
2018-10-09 15:06 ` Konrad Rzeszutek Wilk
2018-10-03 9:36 ` [PATCH v3 6/8] verifiers: Add the documentation Daniel Kiper
2018-10-05 16:43 ` Ross Philipson
2018-10-09 14:26 ` Daniel Kiper
2018-10-09 14:46 ` Ross Philipson
2018-10-09 14:59 ` Ross Philipson
2018-10-03 9:36 ` [PATCH v3 7/8] dl: Add support for persistent modules Daniel Kiper
2018-10-03 9:36 ` [PATCH v3 8/8] efi: Add EFI shim lock verifier Daniel Kiper
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=20181009134329.GC4472@olila.i.net-space.pl \
--to=daniel.kiper@oracle.com \
--cc=dpsmith.dev@gmail.com \
--cc=eric.snowberg@oracle.com \
--cc=grub-devel@gnu.org \
--cc=javierm@redhat.com \
--cc=jonmccune@google.com \
--cc=kanth.ghatraju@oracle.com \
--cc=keng-yu.lin@hpe.com \
--cc=konrad.wilk@oracle.com \
--cc=leif.lindholm@linaro.org \
--cc=mjg59@srcf.ucam.org \
--cc=phcoder@gmail.com \
--cc=philip.b.tricca@intel.com \
--cc=ross.philipson@oracle.com \
/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).