ANDROID: dm: fix signature verification flag
The bug was that the signature verification was only happening when verity was disabled. It should always happen when verity is enabled. Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com> Change-Id: I2d9354e240d36ea06fc68c2d18d8e87b823a4c2f (cherry picked from commit 5364b5ca0b1a12a58283b51408e43fc36d4e4fe7)
This commit is contained in:
parent
967ec731ff
commit
091d8e6c05
1 changed files with 1 additions and 1 deletions
|
@ -667,7 +667,7 @@ static int android_verity_ctr(struct dm_target *ti, unsigned argc, char **argv)
|
|||
goto free_metadata;
|
||||
}
|
||||
|
||||
if (!verity_enabled) {
|
||||
if (verity_enabled) {
|
||||
err = verify_verity_signature(key_id, metadata);
|
||||
|
||||
if (err) {
|
||||
|
|
Loading…
Add table
Reference in a new issue