Commit Graph

9633 Commits

Author SHA1 Message Date
Richard Hughes
1e2631b747 trivial: Use #defines to avoid typos in the HSI translations 2022-04-25 20:32:48 -05:00
Richard Hughes
23e328de11 Detect SELinux before offering to install into /usr/local
Fixes https://github.com/fwupd/fwupd/issues/4080
2022-04-25 20:32:48 -05:00
Richard Hughes
8f8ab6163a trivial: Fix a small memory leak when finding components
The docs of xb_silo_query_first_with_context() were wrong, it's always
(transfer full).
2022-04-25 20:32:48 -05:00
Richard Hughes
e8f693cca1 trivial: Fix a small memory leak when unloading intel-spi 2022-04-25 20:32:48 -05:00
Richard Hughes
17c3086c5e trivial: Fix a small memory leak when getting the udev parent 2022-04-25 20:32:48 -05:00
Mario Limonciello
f6ad56508d Don't export USB4 host controllers as updatable if they don't have unique GUIDs
Fixes: #4438
2022-04-25 20:32:48 -05:00
Richard Hughes
dc9ffd03dd Show the update message and update image in front end tools
We actually need to include the update image and message when creating
the GVariant.
2022-04-25 20:32:48 -05:00
Kai Michaelis
be4be592ae tpm: Fix eventlog replay for Intel TXT machines 2022-04-25 20:32:48 -05:00
Gaël PORTAY
606b7a5c9c Fix memory leak
This fixes the memory leak below:

	$ sudo valgrind -v --leak-check=full fwupdtool get-devices
	(...)
	==3244345== 133 (64 direct, 69 indirect) bytes in 2 blocks are definitely lost in loss record 2,488 of 2,681
	==3244345==    at 0x4845899: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
	==3244345==    by 0x4C04D59: g_malloc (in /usr/lib/libglib-2.0.so.0.7000.4)
	==3244345==    by 0x4C1C816: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.7000.4)
	==3244345==    by 0x4C1CE9E: g_slice_alloc0 (in /usr/lib/libglib-2.0.so.0.7000.4)
	==3244345==    by 0x4B84684: g_type_create_instance (in /usr/lib/libgobject-2.0.so.0.7000.4)
	==3244345==    by 0x4B6BB65: ??? (in /usr/lib/libgobject-2.0.so.0.7000.4)
	==3244345==    by 0x4B6CAF4: g_object_new_with_properties (in /usr/lib/libgobject-2.0.so.0.7000.4)
	==3244345==    by 0x4B6D659: g_object_new (in /usr/lib/libgobject-2.0.so.0.7000.4)
	==3244345==    by 0x4AA8969: ??? (in /usr/lib/libgio-2.0.so.0.7000.4)
	==3244345==    by 0x153967: fu_engine_load_local_metadata_watches (fu-engine.c:7050)
	==3244345==    by 0x1540FC: fu_engine_load (fu-engine.c:7230)
	==3244345==    by 0x124D29: fu_util_start_engine (fu-tool.c:262)
	(...)
	==3244345== LEAK SUMMARY:
	==3244345==    definitely lost: 64 bytes in 2 blocks
	==3244345==    indirectly lost: 69 bytes in 2 blocks
	==3244345==      possibly lost: 1,936 bytes in 8 blocks
	==3244345==    still reachable: 234,668 bytes in 3,072 blocks
	==3244345==         suppressed: 0 bytes in 0 blocks
	==3244345== Reachable blocks (those to which a pointer was found) are not shown.
	==3244345== To see them, rerun with: --leak-check=full --show-leak-kinds=all
	==3244345==
	==3244345== ERROR SUMMARY: 9 errors from 9 contexts (suppressed: 0 from 0)
2022-04-25 20:32:48 -05:00
Gaël PORTAY
b02a989157 genesys: Fix memory leak 2022-04-25 20:32:48 -05:00
Richard Hughes
cd4aea62cd upower: Support the new PENDING device states 2022-04-25 20:32:48 -05:00
Richard Hughes
83768282ee nvme: Add signed-payload quirks for Kingston 2022-04-25 20:32:48 -05:00
Richard Hughes
e0a25244bb trivial: Fix the mtd test when the prefix is read only 2022-04-25 20:32:48 -05:00
Richard Hughes
4e48b4d91b ccgx: Add alternate protocol names
Cypress was acquired by Infineon.
2022-04-25 20:32:48 -05:00
Richard Hughes
8a989bac02 Do not throw away the TPM eventlog when uploading to the LVFS
To debug the eventlog reconstruction issues we need the raw blob,
rather than just the printable text.
2022-04-25 20:32:48 -05:00
Gaël PORTAY
5ea868eb66 genesys: scaler: Fix Special Protect Sector structure length
The Special Protect Sector structure is 24-bit long.

This replaces the 32-bit integer in union that makes the structure
8-bits too big by an array of 3-bytes.
2022-04-25 20:32:48 -05:00
Gaël PORTAY
b0fd3fb2c3 genesys: scaler: Fix creation of error
The GError object is not yet created, and cannot be prefixed though.

This creates the GError using the function g_set_error().
2022-04-25 20:32:48 -05:00
memily
9e76d230cc vli: Move more devices out of the installed list
These devices will probably never get updates from the LVFS.
2022-04-25 20:32:48 -05:00
Richard Hughes
cbe4f6ede3 trivial: Remove one instance of -Wunused-variable 2022-04-25 20:32:48 -05:00
Richard Hughes
4d65d20149 mtd: Add some self tests using mtdram 2022-04-25 20:32:48 -05:00
Richard Hughes
7b36235b31 mtd: Ignore devices that report EPERM on open 2022-04-25 20:32:48 -05:00
Richard Hughes
89213081f8 mtd: Support dumping the image to a firmware blob 2022-04-25 20:32:48 -05:00
Richard Hughes
9b4937db79 mtd: Fix writing mtd images larger than 10kb 2022-04-25 20:32:48 -05:00
Richard Hughes
2886d14dc5 Show the user a wiki page about the FDE warning
Fixes https://github.com/fwupd/fwupd/issues/4400
2022-04-25 20:32:48 -05:00
Richard Hughes
e4260ea339 redfish: Don't add the backup BMC device as it shares the same GUIDs
This fixes the problem when the UEFI update depends on a specific BMC
version -- including the backup BMC device means we checking that both
the primary and the backup were above a specific version.

I don't think it's ever useful to show the backup BMC device, so just
don't include it as an enumerated device.

Fixes https://github.com/fwupd/fwupd/issues/4404
2022-04-25 20:32:48 -05:00
Richard Hughes
f49729fc9f logitech-bulkcontroller: Mark as signed payload 2022-04-25 20:32:48 -05:00
Richard Hughes
2603352fac Fix the 'Device has been removed' warning incorrectly seen on devices
Uninhibit the returning device if no firmware update has been performed.
2022-04-25 20:32:48 -05:00
Tatsunosuke Tobita
27daa7d7f8 plugins/wacom-raw: Add several Lenovo products
wacom-raw is required to support several Lenovo products.
Therefore, some items have been added to "wacom-raw.quirk".

Signed-off-by Tatsunosuke Tobita <tatsunosuke.tobita@wacommfg.corp-patner.google.com>
2022-04-25 20:32:48 -05:00
Richard Hughes
9a49a4f030 gpio: Return the correct error when there is no device to open 2022-04-25 20:32:48 -05:00
Richard Hughes
c5cd0e164a trivial: Actually open the GPIO device before querying the chipinfo
Set the GPIO open flags as without the fd is not opened.

Fixes https://github.com/fwupd/fwupd/issues/4388
2022-04-25 20:32:48 -05:00
Sean Rhodes
4cbb886158 plugin/flashrom: Add GUIDs for StarLite's (#4392)
* HwId for StarLite Mk IV
* coreboot GUID for StarLite Mk IV
* HwId for StarLite Mk II (under coreboot)
* coreboot GUID for StarLite Mk II

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
2022-04-25 20:32:48 -05:00
Richard Hughes
91d9fd62df trivial: Remove some long dead docs about fu_plugin_device_add_delay() 2022-04-25 20:32:48 -05:00
Richard Hughes
cbeda4e39c Do not leak child processes when cancelling
See https://github.com/fwupd/fwupd/pull/4372
2022-04-25 20:32:48 -05:00
Mario Limonciello
4ee4197ecc trivial: dell-dock: set package version payload as unsigned
This payload is just 24 bytes with no signature.  It's used as a manifest
to verify that all firmware is installed.
2022-04-25 20:32:48 -05:00
Richard Hughes
21b89b6455 mtd: Allow the metadata to set the signed payload flag 2022-04-25 20:32:48 -05:00
Richard Hughes
155d4cd9b5 logitech-hidpp: Add support for M550, M650 and K650 2022-04-25 20:32:48 -05:00
Richard Hughes
dd63a2dcee trivial: Don't leak the string even on critical failure
Not totally sure this is worthwhile, but it triggered a failure in the
RHEL tests we do - and it's less work to fix it than argue.
2022-04-25 20:32:48 -05:00
Richard Hughes
329ae33d77 uefi-dbx: No not allow the DBX update for specific motherboards
This list of hardware is provided by Microsoft.
2022-04-25 20:32:48 -05:00
Sean Rhodes
5eec44b844 plugin/flashrom: Add MaxSize quirk for Lite II and III (#4362)
Add FirmwareSizeMax = 0x800000 for StarLite Mk II and Mk III to allow
switching from AMI to coreboot firmware.

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
2022-04-25 20:32:48 -05:00
Richard Hughes
7ec58ab299 Do not use /var/run for the socket
The FHS says to use /run everywhere now, so use that to avoid confusion.
See https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s13.html
2022-04-25 20:32:48 -05:00
Richard Hughes
b02236e830 Do not hardcode the libexecdir to /usr/libexec
Fixes https://github.com/fwupd/fwupd/issues/4360
2022-04-25 20:32:48 -05:00
Richard Hughes
418dce105d usi-dock: Mark as signed payload 2022-04-25 20:32:48 -05:00
Richard Hughes
691c834a89 trivial: Make clear sizes are in hex 2022-04-25 20:32:48 -05:00
Richard Hughes
439147a31a trivial: Add signed flag for Samsung NVMe devices 2022-04-25 20:32:48 -05:00
Richard Hughes
21dff35576 goodix-moc: Mark as signed payload 2022-04-25 20:32:48 -05:00
Richard Hughes
341f87596f dfu: Mark various Poly products as signed and unsigned 2022-04-25 20:32:48 -05:00
Richard Hughes
bd1d10c73f cros-ec: Mark as signed payload 2022-04-25 20:32:48 -05:00
Richard Hughes
4835fd5257 trivial: Fix up branched RELEASE file 2022-04-25 20:32:48 -05:00
Richard Hughes
0c7f5d76c4 trivial: Disable snap and doc deployment for 1_7_X 2022-04-25 20:32:48 -05:00
Richard Hughes
a240a21bc2 trivial: Clarify the unit for the device remove delay 2022-04-25 20:32:48 -05:00