]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect-image: tighten checks on root + /usr/ combinations
authorLennart Poettering <lennart@poettering.net>
Thu, 9 Sep 2021 09:33:03 +0000 (11:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 10 Sep 2021 12:15:50 +0000 (14:15 +0200)
commit7b32164f3c666ff00027f7061e677482bf270a9e
tree04a13699871000cadf0b2f00037a1312291b9dff
parentab5b2787fbd9100cac1b50a8e52707ba824d9756
dissect-image: tighten checks on root + /usr/ combinations

Our code logic doesn't support images with two verity partitions at the
moment, hence refuse this early (with ENOTUNIQ)

Also, go even further and refuse any combinations of verity enabled root
with verity-less /usr, simplify because that is unsafe and defeats the
point of verity. (i.e. we want to give the guarantee that for
auto-discovered verity magic we guarantee that the data afterwards
available in /usr is safe).
src/shared/dissect-image.c