diff options
| author | Tom Rini <[email protected]> | 2020-12-02 11:35:02 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2020-12-02 11:35:02 -0500 |
| commit | a2c832471115d382d6dd60697be5bc74d2636eea (patch) | |
| tree | e423f7bee7cdc889184efbe2bbed407559182f8f /common/spl | |
| parent | 0719bf42931033c3109ecc6357e8adb567cb637b (diff) | |
| parent | 7292a18256252e41970eceacd5ccd3ed79ea64f0 (diff) | |
Merge branch '2020-12-01-next-imports' into next
- More IPQ40xx improvements
- Add string support to setexpr (and tests)
- ProxyDHCP support
- Assorted cleanups
Diffstat (limited to 'common/spl')
| -rw-r--r-- | common/spl/spl_fit.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index 6418062b93a..2fbee4f19f3 100644 --- a/common/spl/spl_fit.c +++ b/common/spl/spl_fit.c @@ -558,6 +558,16 @@ int spl_load_simple_fit(struct spl_image_info *spl_image, if (spl_load_simple_fit_skip_processing()) return 0; + if (IS_ENABLED(CONFIG_SPL_FIT_SIGNATURE)) { + int conf_offset = fit_find_config_node(fit); + + printf("## Checking hash(es) for config %s ... ", + fit_get_name(fit, conf_offset, NULL)); + if (fit_config_verify(fit, conf_offset)) + return -EPERM; + puts("OK\n"); + } + /* find the node holding the images information */ images = fdt_path_offset(fit, FIT_IMAGES_PATH); if (images < 0) { |
