Commit Graph

7831 Commits

Author SHA1 Message Date
Richard Hughes
ae0c3fe38a Add 'action' resolution flags to each FwupdSecurityAttr
We tried to solve this by matching the org.fwupd.hsi AppStream ID, but
in some cases the resolution depends on what actually failed.

Add "the action the user is supposed to do" as flags so that the
front-end can translate this in the appropriate way, for instance,
using a different string for log events and HSI dialogs.
2022-07-14 14:47:44 +01:00
xtcui
d86191c392 analogix: Add support for two new Startech devices. 2022-07-14 11:14:01 +01:00
Richard Hughes
e2f643e08c ccgx: Add quirk entries for the Goshen Ridge EVB 2022-07-14 11:06:28 +01:00
Richard Hughes
a06dedb253 trivial: Add a fu_memread_uint24_safe() to make some code more correct 2022-07-14 11:03:13 +01:00
hugh chao(hugh712)
a7e1307bfd dell-dock: update doc to clarify the hidden inhibited usb4 device 2022-07-14 07:56:47 +01:00
Richard Hughes
77880751cd Do not use CoD even when advertized on non-aarch64 platforms
Fixes https://github.com/fwupd/fwupd/issues/4823
2022-07-14 07:50:42 +01:00
michaelcheng04
8a7c159d31 elanfp: Add new protocol for CFU update
1. Removed usb-control-transfer tag.
2. Removed is_bulk_transfer temp variable.

Signed-off-by: michaelcheng04 <michael.cheng@emc.com.tw>
2022-07-13 22:12:35 +01:00
michaelcheng04
b65844b960 elanfp: Add new protocol for CFU update
1. Using bulk transfer instead of control transfer to send command.
2. Adding header to command format.

Signed-off-by: michaelcheng04 <michael.cheng@emc.com.tw>
2022-07-13 22:12:35 +01:00
michaelcheng04
5621404bda elanfp: Add new protocol for CFU update
Signed-off-by: michaelcheng04 <michael.cheng@emc.com.tw>
2022-07-13 22:12:35 +01:00
Richard Hughes
1ffc2608b0 Check for overflow when copying buffers with huge offset values 2022-07-13 22:04:10 +01:00
Richard Hughes
56e5c1b7a9 Fix critical warning when parsing invalid FDT firmware
Never let firmware_current be NULL by checking for the root node ENDing.

Fixes https://oss-fuzz.com/testcase-detail/5454411320655872
2022-07-13 22:04:01 +01:00
Richard Hughes
2fbadaa95f acpi-phat: Fix a critical warning when parsing an invalid PHAT record
See https://oss-fuzz.com/testcase-detail/6099569951244288 for details.
2022-07-13 22:03:58 +01:00
Richard Hughes
060e40b16c trivial: Remove an unhelpful and untrue error prefix 2022-07-13 20:43:01 +01:00
Mario Limonciello
7a9fffe3a6 Enable protobuf-c (and relevant plugins) based on them in Ubuntu
an MIR has been completed in Ubuntu for this.

https://bugs.launchpad.net/ubuntu/+source/protobuf-c/+bug/1956617
2022-07-13 14:38:04 -05:00
Richard Hughes
34ff01fdf5 trivial: Continue to install the index page to fix the docs deployment 2022-07-11 16:44:12 +01:00
Richard Hughes
74f6faa4a1 trivial: Sync spec file with downstream 2022-07-11 12:49:15 +01:00
Richard Hughes
24e7182af0 trivial: post release version bump 2022-07-11 12:48:54 +01:00
Richard Hughes
4c7ca5f13e Release fwupd 1.8.2 2022-07-11 12:31:14 +01:00
Richard Hughes
011efbb3f3 logitech-hidpp: Fix one more guessed FuProgress step 2022-07-11 11:59:31 +01:00
Richard Hughes
8f3ebe62c2 trivial: Fix downstream spec file 2022-07-11 11:54:14 +01:00
Richard Hughes
d5de92095a trivial: Fix typo in 85c01e1 where the plugin name was removed 2022-07-11 11:46:04 +01:00
Richard Hughes
ab9f27e6db Add a precommit script to check for missing GObject finalizers 2022-07-11 11:16:47 +01:00
Richard Hughes
3b71918346 trivial: Remove some dead code spotted by Coverity 2022-07-11 10:17:59 +01:00
Richard Hughes
acc66316ec steelseries: Fix trivial -Wunused-variable issue 2022-07-11 09:58:00 +01:00
Richard Hughes
3391845660 corsair: Fix trivial -Wformat issue 2022-07-11 09:53:36 +01:00
Richard Hughes
726a85d5d9 corsair: Fix trivial -Wunused-variable issue 2022-07-11 09:52:46 +01:00
Richard Hughes
dcaa8f85f2 amt: Fix trivial -Wunused-variable issue 2022-07-11 09:51:41 +01:00
Richard Hughes
27c8bb4a1a logitech-hidpp: Force signed-payload for the Bolt devices 2022-07-11 09:43:35 +01:00
Richard Hughes
f45c10bd26 uefi-capsule: Fix a tiny memory leak when falling back to the app path
Found by Coverity.
2022-07-11 08:29:37 +01:00
Richard Hughes
0e870cc576 trivial: Silence new Coverity warning 2022-07-11 08:29:37 +01:00
Simon Glass
cbfda0739c vbe: Add a new plugin for writing Flat Image Trees
This adds the logic for the VBE plugin. It supports reading information
from the system to determine which VBE method (a device in fwupd) is in
use, then creating those devices to handle the actual update.

Verified Boot for Embedded (VBE) relies on FIT files to operate.
FIT is a way of packaging multiple images along with information about
them.

Signed-off-by: Simon Glass <sjg@chromium.org>
2022-07-11 08:28:42 +01:00
Richard Hughes
71c0641394 trivial: Fix a -Wunused-function warning on Windows 2022-07-10 11:15:16 +01:00
Richard Hughes
1ef23d1006 Add some FwupdSecurityAttr API for future use 2022-07-09 20:58:19 +01:00
Richard Hughes
85c01e1b5e realtek-mst: Simply quirk matching
Existing firmware is being deployed using 'fwupdtool install-blob' and
so changing the instance ID to be more standard is fine.
2022-07-09 14:57:28 +01:00
Richard Hughes
f8932b0162 parade-lspcon: Simply quirk matching
Existing firmware is being deployed using 'fwupdtool install-blob' and
so changing the instance ID to be more standard is fine.
2022-07-09 14:57:28 +01:00
Richard Hughes
60a34af164 Upload the report data using the SHA256 hash, falling back to SHA1
The LVFS can match either value.
2022-07-09 14:56:28 +01:00
Richard Hughes
1d2c8f7874 Find the remote using the SHA256 hash, falling back to SHA1 2022-07-09 14:56:28 +01:00
Richard Hughes
a6b96e2330 Use the SHA256 binary hash for the quirk GResource key
There's no security issue, but it's one less thing I have to justify
during a security review.
2022-07-09 14:56:28 +01:00
Richard Hughes
b666623fad fastboot: Support SHA256 hashes too 2022-07-09 14:56:28 +01:00
Richard Hughes
15536eb1bc Do not make failing to parse the i2c bus number fatal
This acccidentally become more strict in bb548f15f0 and means there
should be no more false-positive daemon warnings at startup.

Fixes the 2nd half of https://github.com/fwupd/fwupd/discussions/4810
2022-07-08 17:24:26 +01:00
Richard Hughes
6f5ebc5492 Handle ENOTTY with the correct error code for ioctl calls
Fixes half of https://github.com/fwupd/fwupd/discussions/4810
2022-07-08 16:25:38 +01:00
Richard Hughes
cb0966858d Fix fuzzing timeout in the new IFW CPD parsing
Limit the number of images to an order of magnitide more than we've ever seen.

Fixes https://oss-fuzz.com/testcase-detail/4842982326534144
2022-07-08 15:17:25 +01:00
Richard Hughes
7a224007f2 Add support for Flat Image Tree aka FIT firmware 2022-07-08 14:05:20 +01:00
Richard Hughes
f3755ef708 Add support for Flattened Devicetree aka FDT firmware 2022-07-08 14:05:20 +01:00
Richard Hughes
5981472a63 dfu: Fix a regression for devices using the Atmel FLIP Bootloader
This regressed in faa7871b08 as the
ONLY_QUIRK vendor instance ID was no longer being added when the device
switched into bootloader mode.

We could add back the ->probe() to get the vendor quirk, but arguably
the most sensible and correct thing to do is to just use the PID as
well. There is only two PIDs we care about, and matching *every* device
with the vendor ID is probably asking for trouble with other devices.
2022-07-08 12:34:35 +01:00
Richard Hughes
c9a8c42aca synaptics-prometheus: trivial: Fix FuProgress guess 2022-07-08 10:21:52 +01:00
Mario Limonciello
c0579edd98 trivial: fedora: don't require dell plugin for synaptics-mst anymore 2022-07-06 19:27:30 +01:00
Richard Hughes
1e6d75a47e Add the HostVendor to the D-Bus interface
This allows us to show it in the same places as the host product.
2022-07-06 16:10:43 +01:00
Mario Limonciello
c33772c413 trivial: revert back to Ubuntu 20.04 for the github workflows
For some reason the Azure mirror is failing *again* with systemd.
This doesn't seem to affect the Circle CI builds this time though.
2022-07-06 09:23:28 -05:00
Mario Limonciello
5f202fca1e trivial: drop plugin_thunderbolt configuration option
This isn't really needed anymore because the only dependency is
gudev which is already a feature that is disabled dynamicall.y
2022-07-05 11:23:02 -05:00