]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect: fix image policy check for bare dm-verity filesystem
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 16 Oct 2025 13:59:50 +0000 (14:59 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 16 Oct 2025 14:50:45 +0000 (15:50 +0100)
commit5e97d50e171fcaf5f50fd349a2be189b61593f31
treec0e8bdda27adb4f121e6974d7c49ad3fc9e3d3bb
parent39175477bd6e094542671599e0e258daa6351115
dissect: fix image policy check for bare dm-verity filesystem

The root_hash_sig pointer might be set, but to an empty iovec. Check
that the length is > 0 instead.

Follow-up for cd22d8562dd085f5c234cf26b4dd773029418833
src/shared/dissect-image.c