]> git.proxmox.com Git - fwupd.git/log
fwupd.git
2 years agotrivial: Fix memory leak when incorporating FuMeiDevice
Richard Hughes [Sat, 19 Nov 2022 11:06:23 +0000 (11:06 +0000)]
trivial: Fix memory leak when incorporating FuMeiDevice

2 years agotrivial: Fix a tiny leak when translating the security attr
Richard Hughes [Sat, 19 Nov 2022 11:05:18 +0000 (11:05 +0000)]
trivial: Fix a tiny leak when translating the security attr

2 years agoAdd BIOS rollback protection support for Dell systems
Mario Limonciello [Wed, 16 Nov 2022 22:24:13 +0000 (16:24 -0600)]
Add BIOS rollback protection support for Dell systems

2 years agoAdd BIOS rollback protection support for Lenovo systems
Mario Limonciello [Wed, 16 Nov 2022 22:24:02 +0000 (16:24 -0600)]
Add BIOS rollback protection support for Lenovo systems

2 years agoAdd security attribute for OEM specific implementations of BIOS rollback protection
Mario Limonciello [Wed, 16 Nov 2022 22:23:26 +0000 (16:23 -0600)]
Add security attribute for OEM specific implementations of BIOS rollback protection

2 years agoMove AMD platform rollback protection into level 4
Mario Limonciello [Wed, 16 Nov 2022 17:07:46 +0000 (11:07 -0600)]
Move AMD platform rollback protection into level 4

This was expected to be used more prevalently than it is being used
in practice.

Link: https://github.com/fwupd/fwupd/issues/5261
2 years agosynaptics-rmi: show correct bootloader version on V5 and V6 device
Vincent Huang [Fri, 18 Nov 2022 07:38:21 +0000 (15:38 +0800)]
synaptics-rmi: show correct bootloader version on V5 and V6 device

2 years agosynaptics-rmi: Fix the issue when updating non-secure devices
Vincent Huang [Fri, 18 Nov 2022 03:40:05 +0000 (11:40 +0800)]
synaptics-rmi: Fix the issue when updating non-secure devices

2 years agoNew plugin for Logitech Whiteboard camera
Sanjay Sheth [Thu, 3 Nov 2022 21:58:46 +0000 (14:58 -0700)]
New plugin for Logitech Whiteboard camera

2 years agobuild: Do not check markdown version for gi-docgen 2022
Jan Tojnar [Wed, 16 Nov 2022 15:23:06 +0000 (16:23 +0100)]
build: Do not check markdown version for gi-docgen 2022

There is no guarantee that Python environment used for the build contains
the same `markdown` version as the one used for running `gi-docgen`.
For example, Nixpkgs uses a self-contained Python environment for the latter,
so `markdown` package is not even available in fwupd build environment.
Fortunately, gi-docgen 2022.2 already checks for `markdown` version
so we can omit our own check for newer gi-docgen versions.

2 years agoqsi-dock: Create a new plugin to update docks from QSI
Kevin Chen [Wed, 26 Oct 2022 05:55:02 +0000 (13:55 +0800)]
qsi-dock: Create a new plugin to update docks from QSI

2 years agotrivial: Fix the tests on s390x
Richard Hughes [Wed, 9 Nov 2022 15:28:06 +0000 (15:28 +0000)]
trivial: Fix the tests on s390x

2 years agodfu-csr: Fix a critical warning when deploying firmware
Richard Hughes [Thu, 10 Nov 2022 10:15:06 +0000 (10:15 +0000)]
dfu-csr: Fix a critical warning when deploying firmware

The last chunk of data has zero size, and so never copy from a NULL source.

Fixes https://github.com/fwupd/fwupd/issues/5251

2 years agotrivial: Fix lvfs-testing remote file
Richard Hughes [Wed, 9 Nov 2022 15:51:27 +0000 (15:51 +0000)]
trivial: Fix lvfs-testing remote file

2 years agotrivial: post release version bump
Richard Hughes [Wed, 9 Nov 2022 14:19:58 +0000 (14:19 +0000)]
trivial: post release version bump

2 years agoRelease fwupd 1.8.7
Richard Hughes [Wed, 9 Nov 2022 14:12:27 +0000 (14:12 +0000)]
Release fwupd 1.8.7

2 years agotrivial: Fix capsule image generation for broken locales
Richard Hughes [Wed, 9 Nov 2022 14:02:39 +0000 (14:02 +0000)]
trivial: Fix capsule image generation for broken locales

2 years agoigsc: Fix README.md
Vitaly Lubart [Tue, 8 Nov 2022 13:48:06 +0000 (15:48 +0200)]
igsc: Fix README.md

Intel Arc products do not require the host CSME to update Arc firmware.
Firmware updates will work on both AMD and Intel platforms.
Arc products have their own Graphics Security Control for firmware updates and
leverage existing Intel technology like the MEI interface protocol to implement
the firmware update flow.

Signed-off-by: Vitaly Lubart <vitaly.lubart@intel.com>
2 years agoelantp: Add support for more haptic hardware
jinglewu [Tue, 8 Nov 2022 11:32:56 +0000 (19:32 +0800)]
elantp: Add support for more haptic hardware

Support ic_type 0x12 & 0x13, iap_ver 0x3 & 0x5 iap flow.

2 years agoelantp: Use fu_device_retry_full() to avoid a Coverity warning
Richard Hughes [Thu, 3 Nov 2022 18:05:46 +0000 (18:05 +0000)]
elantp: Use fu_device_retry_full() to avoid a Coverity warning

2 years agoAdd Goodix GF3258WNC support
chenhong [Mon, 7 Nov 2022 07:03:40 +0000 (15:03 +0800)]
Add Goodix GF3258WNC support

2 years agoAdd more EFI keys to the integrity check list
Richard Hughes [Fri, 4 Nov 2022 10:17:11 +0000 (10:17 +0000)]
Add more EFI keys to the integrity check list

2 years agoFlip around the FuDeviceInstanceFlags logic
Richard Hughes [Fri, 4 Nov 2022 12:47:19 +0000 (12:47 +0000)]
Flip around the FuDeviceInstanceFlags logic

Opt-ing 'in' to each both behaviours requires less mental gymnastics compared
to having one flag inverted.

2 years agoDo not add duplicate quirk instance IDs
Richard Hughes [Fri, 4 Nov 2022 12:09:58 +0000 (12:09 +0000)]
Do not add duplicate quirk instance IDs

It's pointless, and just wastes RSS.

2 years agoExplain the smc bmc license issue
Kai Michaelis [Fri, 4 Nov 2022 12:55:48 +0000 (13:55 +0100)]
Explain the smc bmc license issue

Add documentation and a helper license script.

2 years agoNever hang in g_udev_device_get_parent() if there is never a busnum
Richard Hughes [Thu, 3 Nov 2022 17:27:41 +0000 (17:27 +0000)]
Never hang in g_udev_device_get_parent() if there is never a busnum

Spotted by Coverity.

2 years agotrivial: Fix invalid self test loop
Richard Hughes [Thu, 3 Nov 2022 16:59:08 +0000 (16:59 +0000)]
trivial: Fix invalid self test loop

Spotted by Coverity.

2 years agowacom-usb: remove the use-runtime-version flag from IPS
Aaron Armstrong Skomra [Fri, 4 Nov 2022 02:01:58 +0000 (19:01 -0700)]
wacom-usb: remove the use-runtime-version flag from IPS

The use-runtime-version flag was initially used with the Intuos
Pro Small (2nd-gen USB v2) to force the use of the legacy code
path. The legacy code path was required because of a bug in the
identification of the Bluetooth (I6) firmware.

It has been decided that the bug will be fixed before any fimware
changes are released, removing the need to use the legacy code path.

2 years agoanalogix: Fix potential division by zero when writing
Richard Hughes [Thu, 3 Nov 2022 17:41:05 +0000 (17:41 +0000)]
analogix: Fix potential division by zero when writing

2 years agofpc: Remove some dead code
Richard Hughes [Thu, 3 Nov 2022 17:19:07 +0000 (17:19 +0000)]
fpc: Remove some dead code

Spotted by Coverity.

2 years agoCheck system integrity when installing UEFI updates
Richard Hughes [Wed, 19 Oct 2022 12:57:32 +0000 (13:57 +0100)]
Check system integrity when installing UEFI updates

Recently we had an update that changed the system-defined Platform Key, and
we've certainly had updates in the past that changed the Boot#### variables.

Store some core ACPI and UEFI system integrity state from before and after the
update which can be used to mark (waivable) test failures on the LVFS.

2 years agotrivial: Do not show a critical warning without a request ID
Richard Hughes [Thu, 3 Nov 2022 14:59:00 +0000 (14:59 +0000)]
trivial: Do not show a critical warning without a request ID

If using old metadata (or when the device does not hard-require an update
message) just use something generic that cannot be replaced client-side.

2 years agoSave the new release metadata when using fu_history_modify_device()
Richard Hughes [Thu, 3 Nov 2022 11:54:47 +0000 (11:54 +0000)]
Save the new release metadata when using fu_history_modify_device()

2 years agoCorrectly set the remote-id when using new-style xz-metadata
Richard Hughes [Thu, 3 Nov 2022 11:54:09 +0000 (11:54 +0000)]
Correctly set the remote-id when using new-style xz-metadata

The new xz metadata does not include the non-standard checksum target tags, and
instead uses the standardized artifact checksum.

Support both metadata formats when setting the remote ID used for reports.

2 years agoigsc: Add a plugin to update some Intel discrete graphics cards
Richard Hughes [Tue, 21 Jun 2022 09:17:51 +0000 (10:17 +0100)]
igsc: Add a plugin to update some Intel discrete graphics cards

2 years agoFix a regression when using fwuptool install-blob with FMAP firmware
Richard Hughes [Wed, 2 Nov 2022 09:03:10 +0000 (09:03 +0000)]
Fix a regression when using fwuptool install-blob with FMAP firmware

Only set _NO_SEARCH when specified, and do not piggy-back on the --force
command line option.

Fixes https://github.com/fwupd/fwupd/issues/5227

2 years agoDo not use globs when building docs
Richard Hughes [Wed, 2 Nov 2022 13:26:10 +0000 (13:26 +0000)]
Do not use globs when building docs

If we use an explicit file lists then the docs are regenerated when the source
files change.

2 years agoAdd documentation for three existing HSI attributes
Richard Hughes [Wed, 2 Nov 2022 13:10:24 +0000 (13:10 +0000)]
Add documentation for three existing HSI attributes

Fixes https://github.com/fwupd/fwupd/issues/5233

2 years agoIgnored root partitions when getting the list of ESPs
Richard Hughes [Wed, 2 Nov 2022 10:14:52 +0000 (10:14 +0000)]
Ignored root partitions when getting the list of ESPs

Fixes the other half of https://github.com/fwupd/fwupd/issues/5211

2 years agoDo not follow symlinks when uing fu_path_get_files()
Richard Hughes [Wed, 2 Nov 2022 10:02:14 +0000 (10:02 +0000)]
Do not follow symlinks when uing fu_path_get_files()

Fixes half of https://github.com/fwupd/fwupd/issues/5211

2 years agotrivial: Fix docs warning for fu_udev_device_find_usb_device()
Richard Hughes [Tue, 1 Nov 2022 16:23:17 +0000 (16:23 +0000)]
trivial: Fix docs warning for fu_udev_device_find_usb_device()

2 years agotrivial: Don't use _NO_AUTO_INSTANCE_IDS for MEI devices
Richard Hughes [Tue, 1 Nov 2022 16:21:39 +0000 (16:21 +0000)]
trivial: Don't use _NO_AUTO_INSTANCE_IDS for MEI devices

This doesn't do what we thought it does.

2 years agoRecord more host DMI data when submitting a report
Richard Hughes [Mon, 31 Oct 2022 17:03:36 +0000 (17:03 +0000)]
Record more host DMI data when submitting a report

We want the specific BiosVersion when adding entries to the uefi-dbx.quirk --
as often the dbx update will work only with newer BIOS versions.

2 years agoanalogix: Add a device test with test firmware
Richard Hughes [Tue, 1 Nov 2022 15:38:06 +0000 (15:38 +0000)]
analogix: Add a device test with test firmware

2 years agoanalogix: Devices need to be removed and re-inserted after update has completed
Richard Hughes [Tue, 1 Nov 2022 10:15:54 +0000 (10:15 +0000)]
analogix: Devices need to be removed and re-inserted after update has completed

The device needs to switch to the new firmware bank, and no automated way
currently exists to reboot the chip.

2 years agoDo not hardcode mei0 for mei_me children
Richard Hughes [Tue, 1 Nov 2022 13:51:13 +0000 (13:51 +0000)]
Do not hardcode mei0 for mei_me children

2 years agotrivial: Ensure all private MEI instance data is incorporated
Richard Hughes [Tue, 1 Nov 2022 13:31:14 +0000 (13:31 +0000)]
trivial: Ensure all private MEI instance data is incorporated

2 years agoAdd fu_mei_device_get_fw_status() for future usage
Richard Hughes [Tue, 1 Nov 2022 13:14:12 +0000 (13:14 +0000)]
Add fu_mei_device_get_fw_status() for future usage

All MEI devices support these attributes, and this API addition will allow us
to support new Intel GPUs and also modernize other plugins.

2 years agotrivial: Fix over-constification in fu_udev_device_get_siblings_with_subsystem()
Richard Hughes [Tue, 1 Nov 2022 13:13:50 +0000 (13:13 +0000)]
trivial: Fix over-constification in fu_udev_device_get_siblings_with_subsystem()

2 years agotrivial: Allow specifying NULL for fu_udev_device_get_parent_with_subsystem()
Richard Hughes [Tue, 1 Nov 2022 13:13:09 +0000 (13:13 +0000)]
trivial: Allow specifying NULL for fu_udev_device_get_parent_with_subsystem()

2 years agoflashrom: Only use the IFD when the system is Intel-based
Richard Hughes [Mon, 31 Oct 2022 13:21:48 +0000 (13:21 +0000)]
flashrom: Only use the IFD when the system is Intel-based

2 years agoelantp: Updating the quirks of the ABS touchpad of Chromebook
Josh Chen [Mon, 31 Oct 2022 02:08:10 +0000 (10:08 +0800)]
elantp: Updating the quirks of the ABS touchpad of Chromebook
Modify the matching method from I2C\MODALIAS_ to I2C\NAME_

2 years agoelantp: Derive from FuI2cDevice to allow a I2C\NAME_ quirk match
Richard Hughes [Fri, 28 Oct 2022 13:02:33 +0000 (14:02 +0100)]
elantp: Derive from FuI2cDevice to allow a I2C\NAME_ quirk match

2 years agotrivial: add missing log domain for efi signature list
Mario Limonciello [Fri, 28 Oct 2022 18:10:07 +0000 (13:10 -0500)]
trivial: add missing log domain for efi signature list

Noticed this missing in https://github.com/fwupd/fwupd/issues/5211

2 years agoanalogix: Be more accurate when reporting percentage progress
Richard Hughes [Thu, 27 Oct 2022 09:10:56 +0000 (10:10 +0100)]
analogix: Be more accurate when reporting percentage progress

2 years agotrivial: Be less verbose when parsing IHEX files
Richard Hughes [Thu, 27 Oct 2022 09:09:49 +0000 (10:09 +0100)]
trivial: Be less verbose when parsing IHEX files

2 years agotrivial: interpolate correctly when the old value is exactly zero
Richard Hughes [Thu, 27 Oct 2022 14:05:43 +0000 (15:05 +0100)]
trivial: interpolate correctly when the old value is exactly zero

2 years agotrivial: Only ignore progress steps when they are all nonzero
Richard Hughes [Thu, 27 Oct 2022 13:46:49 +0000 (14:46 +0100)]
trivial: Only ignore progress steps when they are all nonzero

2 years agoAdd fu_progress_to_string() to make debugging easier
Richard Hughes [Thu, 27 Oct 2022 13:45:57 +0000 (14:45 +0100)]
Add fu_progress_to_string() to make debugging easier

2 years agotrivial: Add two more compiler flags to check for C99 compatibility
Richard Hughes [Thu, 27 Oct 2022 14:13:16 +0000 (15:13 +0100)]
trivial: Add two more compiler flags to check for C99 compatibility

2 years agotrivial: Fix a -Wunused-variable compile warning
Richard Hughes [Thu, 27 Oct 2022 14:08:49 +0000 (15:08 +0100)]
trivial: Fix a -Wunused-variable compile warning

2 years agotrivial: Fix the dell self tests with the new GUsb installed
Richard Hughes [Thu, 27 Oct 2022 13:49:55 +0000 (14:49 +0100)]
trivial: Fix the dell self tests with the new GUsb installed

2 years agoccgx: Add Anker Thunderbolt 4 Mini Hub
Benson Leung [Wed, 26 Oct 2022 21:23:07 +0000 (21:23 +0000)]
ccgx: Add Anker Thunderbolt 4 Mini Hub

This hub is based on Godzilla Creek.
VID:PID is 291A:8398

2 years agoccgx: Add QSI's Godzilla Creek Reference Hub
Benson Leung [Wed, 26 Oct 2022 21:23:07 +0000 (21:23 +0000)]
ccgx: Add QSI's Godzilla Creek Reference Hub

Quanta Storage Inc. QSI Thunderbolt4 Godzilla Hub
It's VID:PID is 2BEF:9065

2 years agoAdd a helper to get a GUsbDevice from a FuUdevDevice
Richard Hughes [Fri, 23 Sep 2022 07:47:41 +0000 (08:47 +0100)]
Add a helper to get a GUsbDevice from a FuUdevDevice

2 years agotrivial: fix a host security event message
Mario Limonciello [Wed, 26 Oct 2022 14:34:45 +0000 (09:34 -0500)]
trivial: fix a host security event message

the structure is old->new, so from tained to not tainted should be:
"Kernel is no longer tainted" not "Kernel is tainted"

Fixes: #5199
2 years agoAdd new GUIDs for Star Labs laptops (#5201)
Sean Rhodes [Wed, 26 Oct 2022 12:48:38 +0000 (13:48 +0100)]
Add new GUIDs for Star Labs laptops (#5201)

* plugins/{flashrom,superio]: Add GUIDs for StarBook Mk VI - Intel

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
* plugins/{flashrom,superio]: Add GUIDs for StarBook Mk VI - AMD

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
* plugins/{flashrom,superio]: Add GUIDs for Byte Mk I - AMD

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
2 years agousi-dock: set correct chip type before update.
Victor Cheng [Tue, 25 Oct 2022 18:10:03 +0000 (02:10 +0800)]
usi-dock: set correct chip type before update.

2 years agoEmit a critical warning if a plugin tries to use HWIDs in ->init()
Richard Hughes [Tue, 25 Oct 2022 10:17:10 +0000 (11:17 +0100)]
Emit a critical warning if a plugin tries to use HWIDs in ->init()

The HWIDs are only available for ->setup() and ->coldplug().

2 years agotrivial: Use the GError when loading hwinfo
Richard Hughes [Tue, 25 Oct 2022 10:15:56 +0000 (11:15 +0100)]
trivial: Use the GError when loading hwinfo

No behaviour change as this always returns TRUE even if failing to load SMBIOS.

2 years agotrivial: Rename an internal function to reflect reality
Richard Hughes [Tue, 25 Oct 2022 09:44:02 +0000 (10:44 +0100)]
trivial: Rename an internal function to reflect reality

2 years agodell: Fix the GError setting when querying for a TPM
Richard Hughes [Tue, 25 Oct 2022 09:37:16 +0000 (10:37 +0100)]
dell: Fix the GError setting when querying for a TPM

2 years agoRevert "trivial: load hwinfo early so plugins can use the info timely"
Richard Hughes [Tue, 25 Oct 2022 09:29:51 +0000 (10:29 +0100)]
Revert "trivial: load hwinfo early so plugins can use the info timely"

This reverts commit 960b6141a6c9586f4aafd820060803d74377c20c as
fu_context_load_hwinfo() needs to load the HWID quirks, and we need to load the
plugins before the quirks otherwise we'll get warnings about quirk keys not
being registered.

2 years agoSave the ONLY_QUIRK instance IDs to fix incorporation of i2c
Richard Hughes [Tue, 25 Oct 2022 11:43:56 +0000 (12:43 +0100)]
Save the ONLY_QUIRK instance IDs to fix incorporation of i2c

The baseclass is calling fu_device_build_instance_id_quirk() and when we
incorporate the device we were only copying the 'proper' instance IDs and not
the ones used for quirk matching -- which we need to match the devices that use
keys containing MODALIAS for the Plugin key to be set.

2 years agotrivial: Watch the plugin config even if there's no ->startup()
Richard Hughes [Tue, 25 Oct 2022 09:50:47 +0000 (10:50 +0100)]
trivial: Watch the plugin config even if there's no ->startup()

2 years agoEnsure the configure file is correct for built-in plugins
Richard Hughes [Tue, 25 Oct 2022 09:49:38 +0000 (10:49 +0100)]
Ensure the configure file is correct for built-in plugins

The fu_plugin_open() function is only called for modular plugins.

2 years agoMake the HSI specification machine readable
Richard Hughes [Fri, 21 Oct 2022 12:16:30 +0000 (13:16 +0100)]
Make the HSI specification machine readable

This allows us to convert it to other forms, e.g. OPAL.

2 years agotrivial: load hwinfo early so plugins can use the info timely
Crag Wang [Mon, 24 Oct 2022 15:00:41 +0000 (23:00 +0800)]
trivial: load hwinfo early so plugins can use the info timely

2 years agoSupport loading COSWID when only one role has been set
Richard Hughes [Sun, 23 Oct 2022 09:35:15 +0000 (10:35 +0100)]
Support loading COSWID when only one role has been set

CBOR supports removing the array for only one base element, which the python
uSWID tools now support; allow parsing this in fwupd.

2 years agotrivial: drop libsmbios from synaptics-mst README
Mario Limonciello [Mon, 24 Oct 2022 14:46:24 +0000 (09:46 -0500)]
trivial: drop libsmbios from synaptics-mst README

2 years agodell: Use fu_memread_xxx() to make buffer parsing less scary
Richard Hughes [Mon, 24 Oct 2022 08:32:22 +0000 (09:32 +0100)]
dell: Use fu_memread_xxx() to make buffer parsing less scary

2 years agotrivial: Return an error from fu_context_get_smbios_data()
Richard Hughes [Mon, 24 Oct 2022 08:15:39 +0000 (09:15 +0100)]
trivial: Return an error from fu_context_get_smbios_data()

2 years agodell: Fix plugin startup
Richard Hughes [Mon, 24 Oct 2022 07:49:25 +0000 (08:49 +0100)]
dell: Fix plugin startup

The fu_context_get_smbios_data() call will not work when creating the plugin
GType, so just create the SMI object when it is needed in ->startup().

Fixes https://github.com/fwupd/firmware-dell/issues/144

2 years agoelantp: Add ELAN hapticpad support
Richard Hughes [Sat, 22 Oct 2022 16:20:46 +0000 (17:20 +0100)]
elantp: Add ELAN hapticpad support

Co-authored-by: jingle.wu <jingle.wu@emc.com.tw>
2 years agoUpdate README.md
Matthias Braun [Fri, 21 Oct 2022 17:35:11 +0000 (19:35 +0200)]
Update README.md

2 years agotrivial: Store .xz files with the correct filename
Richard Hughes [Fri, 21 Oct 2022 13:08:46 +0000 (14:08 +0100)]
trivial: Store .xz files with the correct filename

2 years agotrivial: Add a few more kernel command line arguements we don't care about
Richard Hughes [Fri, 21 Oct 2022 08:03:42 +0000 (09:03 +0100)]
trivial: Add a few more kernel command line arguements we don't care about

2 years agoUse xz-compressed metadata to reduce bandwidth used by ~25%
Richard Hughes [Thu, 20 Oct 2022 13:14:13 +0000 (14:14 +0100)]
Use xz-compressed metadata to reduce bandwidth used by ~25%

2 years agoSplit out FuUefiPkDevice as a device for future use
Richard Hughes [Tue, 18 Oct 2022 18:52:46 +0000 (19:52 +0100)]
Split out FuUefiPkDevice as a device for future use

This does not serve much purpose now, but would be useful if we need to know
more about the installed PK from other plugins. If nothing else it makes the
`--verbose` output more helpful.

2 years agotrivial: snap: remove some unnecessary files
Mario Limonciello [Wed, 19 Oct 2022 16:48:51 +0000 (11:48 -0500)]
trivial: snap: remove some unnecessary files

2 years agotrivial: snap: move EFI binaries to expected location
Mario Limonciello [Wed, 19 Oct 2022 16:17:16 +0000 (11:17 -0500)]
trivial: snap: move EFI binaries to expected location

We compile with prefix "/", but Ubuntu (where we get the binaries from)
compiles with prefix "/usr".

Correct the location of these binaries in the snap.

2 years agoAllow parsing metadata more than 1MB in size
Richard Hughes [Wed, 19 Oct 2022 13:59:02 +0000 (14:59 +0100)]
Allow parsing metadata more than 1MB in size

The LVFS crept over this limit yesterday. I've put some emergency commits in
place that take it back down to 800KB, and I'll focus next week on getting it
much lower than that.

The real problem is that we thought that g_input_stream_read_bytes() was using
`count` as the chunk size, not the total size. Raise the total size to 32MB and
chunk in 32kB blocks to reduce the RSS peak when loading metadata.

Fixes https://github.com/fwupd/fwupd/issues/5173

2 years agoFix a compile failure when compiling without efiboot
Richard Hughes [Wed, 19 Oct 2022 08:51:24 +0000 (09:51 +0100)]
Fix a compile failure when compiling without efiboot

Fixes https://github.com/fwupd/fwupd/issues/5171

2 years agofu-daemon: GetBiosSettings: explain the meaning of the unauthenticated branch
Matthias Gerstner [Tue, 18 Oct 2022 09:09:00 +0000 (11:09 +0200)]
fu-daemon: GetBiosSettings: explain the meaning of the unauthenticated branch

2 years agoConsider the release priority when returning results
Richard Hughes [Mon, 17 Oct 2022 15:27:43 +0000 (16:27 +0100)]
Consider the release priority when returning results

This means we might be able to offer two versions of firmware for the same
device, where one has additional requirement such as a CHID.

The idea here is to allow OEMs to distribute thier own superset dbx updates on
the LVFS without having to invent an anti-CHID requirement type.

2 years agoadd FPC lenfy device support
jim.zhang [Tue, 18 Oct 2022 07:31:12 +0000 (15:31 +0800)]
add FPC lenfy device support

2 years agoOnly count the Microsoft hashes when getting the dbx version
Richard Hughes [Mon, 17 Oct 2022 14:45:18 +0000 (15:45 +0100)]
Only count the Microsoft hashes when getting the dbx version

HP include extra keys that means the version is higher than expected.

2 years agoMove the AMT functionality to the Intel MEI plugin
Richard Hughes [Wed, 12 Oct 2022 09:11:52 +0000 (10:11 +0100)]
Move the AMT functionality to the Intel MEI plugin

2 years agoAdd a new plugin to get more Intel ME MCA data
Richard Hughes [Tue, 11 Oct 2022 12:40:49 +0000 (13:40 +0100)]
Add a new plugin to get more Intel ME MCA data

This allows us to get the OEM Public Key BootGuard hashes.

Also add a new HSI test for leaked bootguard keys.

2 years agotrivial: Fix a critical warning when using old kernel versions
Richard Hughes [Thu, 13 Oct 2022 12:48:26 +0000 (13:48 +0100)]
trivial: Fix a critical warning when using old kernel versions