Commit Graph

7023 Commits

Author SHA1 Message Date
Mario Limonciello
b3de9ffd21 Add support for a new TrustedUids key
This key is used to specify that a dedicated user runs the fwupd
client process and sensitive strings such as the serial number should
be shared with the calling process.

(Fixes: #4524)
2022-04-14 10:30:54 -05:00
Richard Hughes
f8f5cd1f25 redfish: Don't add a device to itself when replugging 2022-04-14 13:06:21 +01:00
Mario Limonciello
d19ebccd56 trivial: pci_psp: test an attribute to declare missing data
If the system loads ccp but the ccp driver doesn't export attributes
we should mark the CPU plugin as not supported.
2022-04-14 01:39:22 -05:00
Richard Hughes
01aaa97bcd trivial: Ignore the g_unlink() in the offline runner
There's not much we can do in this situation anyway...
2022-04-13 15:08:12 +01:00
Richard Hughes
3b0d1a6c6b trivial: Ignore the return value of curl_easy_setopt() in most cases
This makes Coverity happy.
2022-04-13 15:08:12 +01:00
Richard Hughes
0b7af7d54b trivial: Ignore the return value of setenv() in most cases
This makes Coverity happy.
2022-04-13 15:08:12 +01:00
Richard Hughes
0f8dffd042 intel-spi: Fix potential integer overflow 2022-04-13 15:08:12 +01:00
Richard Hughes
200302bbc6 redfish: Remove some logically dead code 2022-04-13 15:08:12 +01:00
Richard Hughes
0d7d8b3240 trivial: Always call va_end() even in the error path 2022-04-13 15:08:12 +01:00
Richard Hughes
03d166158d trivial: Remove some logically dead code 2022-04-13 15:08:12 +01:00
Richard Hughes
d0c8514c52 wacom-raw: Fix a Coverity false positive
Technically this is an OOB write, but we're deliberately writing into
the next section of the FuWacomRawRequest structure.

Be explicit to avoid Coverity warnings.
2022-04-13 15:08:12 +01:00
Richard Hughes
a7149a4dac genesys: Fix a potential OOB read 2022-04-13 15:08:12 +01:00
Richard Hughes
5fdef8defb wacom-usb: Fix a small memory leak in an error path 2022-04-13 15:08:12 +01:00
Richard Hughes
db07e84fe0 tpm: Fix a small memory leak in an error path 2022-04-13 15:08:12 +01:00
Richard Hughes
b25a3a4294 superio: Fix a small memory leak in an error path 2022-04-13 15:08:12 +01:00
Richard Hughes
34651a18e2 nordic: Fix a small memory leak in an error path 2022-04-13 15:08:12 +01:00
Richard Hughes
2883b577dc trivial: Fix a potential OOB write that can't actually happen 2022-04-13 15:08:12 +01:00
Sergii Dmytruk
500dd2c9c4 fu-util: pull device flags after unlocking
To allow unlocking operation change them.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2022-04-13 09:05:37 +01:00
Jierger Zhou
443b6450f0 dfu: modified VID/PID for atlas camera. 2022-04-13 08:12:09 +01:00
Crag Wang
9c8dc29711 dell-dock: probe mst earlier to determine signed payload attr 2022-04-13 00:00:01 -05:00
Richard Hughes
63f2e9ee28 Allow 'fwupdmgr install' to install a specified firmware version
This also moves the 'local-install' action to a new verb, although we
fall back for compatibility.

Fixes https://github.com/fwupd/fwupd/issues/4514
2022-04-12 19:53:38 +01:00
Richard Hughes
55605a0d5e trivial: Split out CLI functionality for future use 2022-04-12 19:53:38 +01:00
Richard Hughes
f4fe33756a trivial: Use the FwupdRelease when sending reports 2022-04-12 19:53:38 +01:00
Richard Hughes
386fbb34c7 trivial: Connect the device signals in one place only 2022-04-12 19:53:38 +01:00
Mario Limonciello
5d3bcdc2ef trivial: CPU: Mark AMD as supported 2022-04-12 12:23:16 -05:00
Mario Limonciello
cc49eb6503 trivial: msr: align the unencrypted RAM failures to match that of psp plugin 2022-04-12 12:23:16 -05:00
Mario Limonciello
f63a1c7a87 pci_psp/msr: Set obsoletes related to SME and TSME
TSME and SME can technically both be enabled at the same time, but
there is no use in reporting one as enabled and the other disabled.

They share the same attribute, and so if one is enabled, obsolete
it in the other plugin.

Granted; this is a bit of a confusing experience.  You have two attributes
that mean similar but not the same things.  You can technically have SME
and TSME both enabled at the same time, or both disabled at the same time.
2022-04-12 12:23:16 -05:00
Mario Limonciello
1a66818970 Add new plugin for AMD PSP
This plugin reads in values exported by the PSP on supported AMD
SOCs to calculate the system state based on this information
2022-04-12 12:23:16 -05:00
Mario Limonciello
65e3bc57c5 trivial: fix a logic error in obsolete calculation 2022-04-12 12:23:16 -05:00
Mario Limonciello
3006d238d6 Automatically obsolete negative duplicate attributes
To a user there is no point to explicitly showing two failures for
encrypted RAM if the system supports SME and TSME both.

To show them a single failure, de-duplicate the attributes by appstream
ID during depsolve.

If the plugin didn't explicitly set obsoletes and two attributes are both
failures and both share the same appstream ID obsolete one of them.
2022-04-12 11:59:49 -05:00
Mario Limonciello
7526d1b183 Add a new attribute for fused platform
Fused parts are unable to be tampered with.
2022-04-12 10:39:02 -05:00
Mario Limonciello
0e3e8ff610 trivial: change Intel debug attributes to generic
As other platforms have features with the same attribute, remove
the Intel generic one.
2022-04-12 10:39:02 -05:00
Mario Limonciello
9adb5380b3 Add a new HSI attributes for SPI protections 2022-04-12 10:39:02 -05:00
Mario Limonciello
04efb0b0cb Add a new HSI attribute for AMD rollback protection
This will be used by an upcoming AMD plugin
2022-04-12 10:39:02 -05:00
Richard Hughes
035490d39e modem-manager: Remove the cache item and use a shadow device instead
Fixes https://github.com/fwupd/fwupd/issues/4394
2022-04-12 09:59:19 +01:00
Richard Hughes
bef1d742b3 Allow Capsule-on-Disk to work in more cases 2022-04-12 09:57:44 +01:00
Crag Wang
a2919b935b trivial: add device GUID to avoid warning message 'no GUIDs for device' 2022-04-12 09:57:08 +01:00
Mario Limonciello
a8b159503d trivial: thunderbolt: set signed payload attribute for some external devices
The signed payload attribute is currently set for devices connected through
Intel host controllers.  When Thunderbolt 3 devices are connected to non-Intel
host controllers they still support signed payloads.

Update the flag accordingly in these circumstances.
2022-04-12 08:25:48 +01:00
Mario Limonciello
f3fe9ac40c trivial: don't make TSS directory in debian CI
The TSS issue has been fixed for a while, and this change
means that the script otherwise needs to run as root.
2022-04-11 20:05:14 +01:00
Richard Hughes
c049870c22 Do not expect KernelCmdline on Windows
Fixes https://github.com/fwupd/fwupd/issues/4516
2022-04-11 20:03:13 +01:00
Richard Hughes
f4fb625fba Set the context automatically when setting the device proxy 2022-04-11 15:36:13 +01:00
Sergii Dmytruk
4795ab3122 trivial: libfwupd,libfwupdplugin: fix typos in several comments
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2022-04-11 15:31:03 +01:00
Sergii Dmytruk
028740204b trivial: plugins/superio: don't add same flag twice
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2022-04-11 15:30:23 +01:00
Richard Hughes
372550ca0b Fix regression in 'fwupdtool install foo.cab'
When using fwupdtool install we pass all the possible devices and then
loop each one. If loading the requirement failed for a specific one
just continue to the next device rather than aborting too early.

Fixes https://github.com/fwupd/fwupd/issues/4509
2022-04-11 07:05:53 +01:00
Crag Wang
148e2b8388 trivial: turn off firmware signing check temporarily if installing from exe 2022-04-11 12:15:02 +08:00
Gunjan Gupta
dcd6e2726b trivial: synaptics-cxaudio: Add entry for ThinkPad USB-C Dock Gen2 Audio with updated PID
ThinkPad USB-C Dock Gen2 Audio firmware update version 49-0E-41 changed the PID from A396 to 30D1
2022-04-10 15:01:54 +01:00
Richard Hughes
df9ed97d9d Respect the NO_COLOR env variable
Fixes half of https://github.com/fwupd/fwupd/issues/4503
2022-04-08 17:26:23 +01:00
Andrii Dushko
47381ba54a Add a plugin for Corsair devices
Supported devices:
 * SABRE RGB PRO WIRELESS
 * SLIPSTREAM WIRELESS USB Receiver
2022-04-08 12:52:08 +01:00
Crag Wang
f3e05f3ced dell-dock: set minimum version of EC 2022-04-08 18:15:50 +08:00
Richard Hughes
4bdd1d40e1 uefi-capsule: Use GByteArray to make code more modern 2022-04-08 07:23:48 +01:00