diff options
author | Nikolai Artemiev <nartemiev@google.com> | 2022-12-09 15:17:05 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2022-12-18 00:28:33 +0000 |
commit | 23018faa986c6a65ad491a771bb2716e0e87ae74 (patch) | |
tree | 42999bb39d511162a0b4faa842c3ce02dc2ce345 /util | |
parent | a018234400faf1b50b0628a7fa7ea3da26beacbb (diff) | |
download | flashrom-23018faa986c6a65ad491a771bb2716e0e87ae74.tar.gz flashrom-23018faa986c6a65ad491a771bb2716e0e87ae74.tar.bz2 flashrom-23018faa986c6a65ad491a771bb2716e0e87ae74.zip |
flashrom: Check for flash access restricitons in read_flash()
Skip read-protected regions if FLASHROM_FLAG_SKIP_UNREADABLE_REGIONS is
true. If the flag is false, read operations that include an
read-protected region will return an error.
BUG=b:260440773
BRANCH=none
TEST=flashrom -r on dedede (JSL)
Change-Id: I22c795d7d08ef8bf773733d9952967b2fa2ef299
CoAuthored-by: Edward O'Callaghan <quasisec@google.com>
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Signed-off-by: Nikolai Artemiev <nartemiev@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/70514
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions