diff options
author | Luca Boccassi <luca.boccassi@microsoft.com> | 2019-05-14 19:35:02 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-05-18 12:32:02 -0400 |
commit | 7d57485a8a3c45c254919f01337c14cc2856accd (patch) | |
tree | d153de42617f0bcfc783da793caa39487e26b39e /tools/fit_info.c | |
parent | 26992928e80a7f8d86267985b211a858094dc389 (diff) |
tools: use read-only mmap in fit_check_sign
Add an option to open files in read-only mode in mmap_fdt so
that fit_check_sign can be used to inspect files on read-only
filesystems.
For example, this is useful when a key is shipped in a read-only
rootfs or squashfs.
Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Diffstat (limited to 'tools/fit_info.c')
-rw-r--r-- | tools/fit_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/fit_info.c b/tools/fit_info.c index 45e0b310f7..b2642ec5b7 100644 --- a/tools/fit_info.c +++ b/tools/fit_info.c @@ -80,7 +80,7 @@ int main(int argc, char **argv) fprintf(stderr, "%s: Missing property name\n", *argv); usage(*argv); } - ffd = mmap_fdt(cmdname, fdtfile, 0, &fit_blob, &fsbuf, false); + ffd = mmap_fdt(cmdname, fdtfile, 0, &fit_blob, &fsbuf, false, false); if (ffd < 0) { printf("Could not open %s\n", fdtfile); |