Aaron Durbin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30811 )
Change subject: lib/prog_loaders.c: Add prog_locate_hook()
......................................................................
Patch Set 11:
(1 comment)
https://review.coreboot.org/c/coreboot/+/30811/11/src/include/program_loadin...
File src/include/program_loading.h:
https://review.coreboot.org/c/coreboot/+/30811/11/src/include/program_loadin...
PS11, Line 144: validate
imo line 'Hook .. proceed' already answers your comment.
Proceed from where to what? It's not clear; the statement ambiguous. I don't think it's too much to ask to improve clarity in comments for functions. FWIW, the hook doesn't have to verify anything either. It can do anything it wants from a policy perspective. How about the following?
The prog_locate_hook() is called prior to CBFS traversal. The hook can be used to implement policy that allows or prohibits further progress through prog_locate(). The type and name field within struct prog are the only valid fields. A 0 return value allows further progress while a non-zero return value prohibits further progress.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/30811
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I12207fc8f2e9ca45d048cf8c8d9c057f53e5c2c7
Gerrit-Change-Number: 30811
Gerrit-PatchSet: 11
Gerrit-Owner: Frans Hendriks
fhendriks@eltan.com
Gerrit-Reviewer: Felix Held
felix-coreboot@felixheld.de
Gerrit-Reviewer: Frans Hendriks
fhendriks@eltan.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Philipp Deppenwiese
zaolin.daisuki@gmail.com
Gerrit-Reviewer: Wim Vervoorn
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Aaron Durbin
adurbin@chromium.org
Gerrit-CC: Angel Pons
th3fanbus@gmail.com
Gerrit-CC: Arthur Heymans
arthur@aheymans.xyz
Gerrit-CC: Julius Werner
jwerner@chromium.org
Gerrit-CC: Nico Huber
nico.h@gmx.de
Gerrit-CC: Patrick Rudolph
Gerrit-CC: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-CC: Patrick Rudolph
siro@das-labor.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Thu, 24 Oct 2019 17:35:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Aaron Durbin
adurbin@chromium.org
Comment-In-Reply-To: Wim Vervoorn
Comment-In-Reply-To: Frans Hendriks
fhendriks@eltan.com
Comment-In-Reply-To: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-MessageType: comment