commit | c95e9da39660f278ace4b14d688dc6818d1a38bf | [log] [tgz] |
---|---|---|
author | Sami Tolvanen <samitolvanen@google.com> | Fri Nov 07 10:20:02 2014 -0800 |
committer | Sami Tolvanen <samitolvanen@google.com> | Tue Nov 11 07:27:18 2014 -0800 |
tree | 0260a42e104064ad3b0cb8df3a092478d8b82993 | |
parent | a3465e250cfc3c00931735711e11ad61cf84d8b2 [diff] |
Do not mount devices with invalid verity metadata The return value of read_verity_metadata is propagated to caller even if the verity metadata is invalid, provided that it can be read from the device. This results in devices with invalid verity metadata signatures to be mounted normally, which is not desirable. This change fixes the bug by changing the return value in case of verification failure to FS_MGR_SETUP_VERITY_FAIL. Change-Id: Ic29f37a23cb417c2538d60fb05de9dd310d50f4a