]> git.ipfire.org Git - thirdparty/systemd.git/commit
chid_match: match only against the provided device type 35747/head
authorAni Sinha <anisinha@redhat.com>
Tue, 24 Dec 2024 04:16:50 +0000 (09:46 +0530)
committerAni Sinha <anisinha@redhat.com>
Sun, 5 Jan 2025 04:10:55 +0000 (09:40 +0530)
commit5d614bae745a623fc1dcaad3ff5a8abc35c5ccc5
tree257059406c36d18bc6a28eac31927bfd52615fc0
parent5d0ac3528bd1b11194e39b1b1f8ecb243cd08566
chid_match: match only against the provided device type

When devices of different types are present, chid_match() should only try to
match the devices that are of specific type. The caller of chid_match()
provides the type of device to match against and chid_match() should only try
to find a match against this device type.

This change also adds necessary unit test changes for the new uefi firmware
type device entry.
src/boot/chid.c
src/boot/chid.h
src/boot/hwids/device4.json [new file with mode: 0644]
src/boot/meson.build
src/boot/pe.c
src/boot/test-chid-match.c