Commit Graph

9606 Commits

Author SHA1 Message Date
Mario Limonciello
0a4ec3cd6e trivial: fix behavior when running on old json-glib
older json-glib versions can't work with saving or retrieving
HSI security events.  Rather than showing non-sensical errors
about too old of a json glib version that are out of context,
just compile this stuff out on the older versions.

This fixes HSI security events showing up too as a result.
2022-04-25 20:32:49 -05:00
Jeremy Soller
9ba368ef6c trivial: Add HP Dev One quirk with no-ux-capsule flag 2022-04-25 20:32:49 -05:00
Richard Hughes
d30e067872 Revert "modem-manager: uninhibit modem after upgrade"
This reverts commit e3b62e643b which
fixes a crash when updating devices.
2022-04-25 20:32:49 -05:00
Richard Hughes
1625142c0e Never send the DeviceChanged signal with old data
If we connect up the device for property changes and then do an update,
we might send the pre-update GVariant data rather than the post-install
FuDevice.

This could mean that any client using the signal to update UI elements
might either flicker between the values, or show the 'wrong' device
version.
2022-04-25 20:32:49 -05:00
Richard Hughes
70042cca57 trivial: Add some missing g_return_val_if_fail() calls 2022-04-25 20:32:49 -05:00
herman lin
38e7e7b338 elanfp: Add PID 0x0C82 2022-04-25 20:32:49 -05:00
herman lin
3d627cd04c elanfp: Modify for BULK_RECV_TIMEOUT_MS to 3000 2022-04-25 20:32:49 -05:00
Richard Hughes
31699ae408 nvme: Add signed-payload for Western Digital hardware 2022-04-25 20:32:49 -05:00
Richard Hughes
980e05734e Allow overriding the detected machine type
This makes developing HSI tests and UIs much easier when using VMs or
containers.
2022-04-25 20:32:49 -05:00
Richard Hughes
fb587bb2b6 trivial: Never return the invalid value from fu_progress_get_percentage() 2022-04-25 20:32:49 -05:00
Richard Hughes
5df29c47da trivial: Use a short string form for the CFI commands 2022-04-25 20:32:49 -05:00
Ryan Lee
660b6ee3fc ccgx: Add trigger code to support future hardware 2022-04-25 20:32:49 -05:00
Richard Hughes
cc4be214cf vli: Do not set the serial number
This is always set as '00000000000000000000001' and thus is unhelpful.
2022-04-25 20:32:49 -05:00
Richard Hughes
22eeda5cf0 trivial: Add a missing possible CFI quirk key 2022-04-25 20:32:49 -05:00
Jeremy Soller
3e1b5f683b Add System76 launch_lite_1 2022-04-25 20:32:49 -05:00
Sean Rhodes
7310973b28 plugins/flashrom: Move MaxSize quirk to GUID (#4468)
Move the quirk from HwID to GUID to the apply correctly.

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
2022-04-25 20:32:49 -05:00
Mario Limonciello
0af8ceedcb trivial: set plugin_scsi to false for openbmc 2022-04-25 20:32:49 -05:00
Mario Limonciello
09abbd5a2b trivial: bump python black version to fix CI 2022-04-25 20:32:49 -05:00
Mario Limonciello
e352a149e1 trivial: fixup Github CI for 1.7.x 2022-04-25 20:32:49 -05:00
Richard Hughes
c3c17ecae4 trivial: Fix up CircleCI config 2022-04-25 20:32:49 -05:00
Richard Hughes
2388f70788 dfu: Add unsigned-payload for one of the demo devices 2022-04-25 20:32:49 -05:00
Richard Hughes
75346bd800 trivial: Use the correct struct offset for device requests 2022-04-25 20:32:49 -05:00
Richard Hughes
b3aa5442b5 trivial: Add one more translated HSI result case 2022-04-25 20:32:48 -05:00
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