cli/avb: Warn when verifying image with insecure flags

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
This commit is contained in:
Andrew Gunnerson
2025-08-07 23:10:24 -04:00
parent 779b1116e1
commit 8ea08ef98c
+4
View File
@@ -463,6 +463,10 @@ pub fn verify_headers(
info!("{name} has an unsigned vbmeta header");
}
if header.flags != 0 {
warn!("{name} has insecure flags: {:#x}", header.flags);
}
for descriptor in &header.descriptors {
let Some(target_name) = descriptor.partition_name() else {
continue;