Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli/ota: Limit critical partition check to bootloader-verified partitions #226

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

chenxiaolong
Copy link
Owner

@chenxiaolong chenxiaolong commented Dec 13, 2023

dm-verity partitions don't necessarily have AVB descriptors inside the root vbmeta images. The fstab might verify them against a public key on disk using the avb_keys fs_mgr option. We have no way to statically check for this scenario and it's becoming increasingly common on newer OnePlus devices. Instead, we'll just limit the checks to partitions that are verified by the bootloader.

Fixes: #223

@chenxiaolong chenxiaolong self-assigned this Dec 13, 2023
@chenxiaolong chenxiaolong marked this pull request as ready for review December 13, 2023 00:56
@chenxiaolong

This comment was marked as outdated.

…ions

dm-verity partitions don't necessarily have AVB descriptors inside the
root vbmeta images. The fstab might verify them against a public key on
disk using the `avb_keys` fs_mgr option. We have no way to statically
check for this scenario and it's becoming increasingly common on newer
OnePlus devices. Instead, we'll just limit the checks to partitions that
are verified by the bootloader.

Fixes: #223

Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong changed the title cli/ota: Remove critical partition check cli/ota: Limit critical partition check to bootloader-verified partitions Dec 13, 2023
@chenxiaolong chenxiaolong merged commit 1e43930 into master Dec 13, 2023
22 checks passed
@chenxiaolong chenxiaolong deleted the critical branch December 13, 2023 02:39
@chenxiaolong chenxiaolong mentioned this pull request Dec 13, 2023
chenxiaolong added a commit that referenced this pull request Dec 13, 2023
Signed-off-by: Andrew Gunnerson <[email protected]>
chenxiaolong added a commit that referenced this pull request Dec 30, 2023
It was obsoleted by #226.

Signed-off-by: Andrew Gunnerson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Critical Partitions
1 participant