Commit Graph

9606 Commits

Author SHA1 Message Date
Richard Hughes
7f7f0aed1f trivial: Add more items to the kernel command line checker
This data is from Pascal Ernster, many thanks.
2020-06-15 12:11:00 +01:00
Richard Hughes
d94ce34d56 trivial: Add more items to the kernel command line checker
This data is from Pascal Ernster, many thanks.
2020-06-12 20:56:17 -05:00
Richard Hughes
4fd61e4756 vli: Use the GPIOB reset for the MiniDock VL103 2020-06-11 07:03:23 +01:00
Richard Hughes
6cd6e2adb6 vli: Set FuQuirks on the shared SPI object 2020-06-11 07:03:23 +01:00
Richard Hughes
92072b4239 vli: Add the project ID shared SPI PD controllers
The Mini-Dock and Travel-Hub accidentally share the same VID:PID and this is the
only way to tell them apart.
2020-06-11 07:03:23 +01:00
Mario Limonciello
fe6668374a trivial: fix news generation script 2020-06-10 13:03:35 -05:00
Mario Limonciello
080789916f trivial: fix news generation script 2020-06-10 13:03:14 -05:00
Richard Hughes
385c1ec5e3 trivial: post release version bump 2020-06-10 15:44:46 +01:00
Richard Hughes
938df7b93a Release fwupd 1.4.4 2020-06-10 15:42:51 +01:00
Richard Hughes
8d42549952 Fix regression when checking for downgraded metadata
When verifying a signature the valid results are ordered by timestamp. The
CHECKSUM results have a zero timestamp and should have been ordered last.
The sorting callback was wrong, which explains the odd result where we could
downgrade Jcat signatures before we fixed 64ebf9, and nicely explains why we
ignored a timestamp of zero in the first place.

When getting the timestamp, ensure we actually get the newest _signature_ not
just the newest result in case checksums start having timestamps in the future
for some reason. Use new API from libjcat where available, else fall back to
sneaking it out using GObject properties and magic values.
2020-06-10 15:30:27 +01:00
Richard Hughes
7079c42633 trivial: Build a specific tag from the libjcat subproject 2020-06-10 15:30:23 +01:00
Richard Hughes
0143c67c76 trivial: Build a specific tag from the libjcat subproject 2020-06-10 15:21:54 +01:00
Richard Hughes
afda962cba Fix regression when checking for downgraded metadata
When verifying a signature the valid results are ordered by timestamp. The
CHECKSUM results have a zero timestamp and should have been ordered last.
The sorting callback was wrong, which explains the odd result where we could
downgrade Jcat signatures before we fixed 64ebf9, and nicely explains why we
ignored a timestamp of zero in the first place.

When getting the timestamp, ensure we actually get the newest _signature_ not
just the newest result in case checksums start having timestamps in the future
for some reason. Use new API from libjcat where available, else fall back to
sneaking it out using GObject properties and magic values.
2020-06-10 15:21:54 +01:00
Mario Limonciello
471a0e2105 fu-main: Make it clearer what lost name is and bump it to warning
This happens often enough when people switch from snap to distro
package that we should mention it in non-verbose logs.

Fixes: #2112
2020-06-09 11:05:09 -05:00
Mario Limonciello
505ce6fffe Drop patches merged upstream and update changelog 2020-06-09 10:03:59 -05:00
Mario Limonciello
708bac98dc Release fwupd 1.3.10
-----BEGIN PGP SIGNATURE-----
 
 iQFIBAABCAAyFiEEFj61ARkiXbPfj0nqF6y6jfqXDhcFAl7fXmkUHHJpY2hhcmRA
 aHVnaHNpZS5jb20ACgkQF6y6jfqXDhcIxQf/WKSovsLuKLUmOH1cdfFLg7G0u2Z+
 ly9z/lg8DP1LIi7cJCf9VmXrdA4TmMTeFfIkso7OsJadGG7/NLoNItHUDL5E8XWD
 vdiah5xJU3acjisIMAmOtHS8iEK1ARY2Xi85tBXMNK8Kyob109hBml6TiHv0JvZP
 4MTTZZ+wVPtgb7W/oMgI6D3Rwzt6XGVsG90eaBHILd9umnzh5wJCMGZuPGwXrET6
 8Y2mFx8Hjkmh+Gj8GvsTJ7QAsql3+zlEZ8hTsrsRIbx6clhTfz+im5WswNVOUeP3
 vTWLxiLs6a/fKgkvxKhBC4yztiuAHH6fHVE9Qsu1wJwYX8Wb0NlcZ2rhHA==
 =cwBE
 -----END PGP SIGNATURE-----

Merge tag '1.3.10' into debian

Release fwupd 1.3.10
2020-06-09 10:00:02 -05:00
Mario Limonciello
e4501f50fb trivial: checkout branch to fix changelog publishing 2020-06-09 09:43:06 -05:00
Mario Limonciello
6b9664168d trivial: checkout branch to fix changelog publishing 2020-06-09 09:42:32 -05:00
Richard Hughes
83a21cb7cd vli: Allow chained usb hub devices where the parent needs GPIOB reset
As both hub devices share a FuVliUsbhubDeviceClass instance we cannot 'hijack'
the vfuncs depending on object type. This allows the downstream hub to proxy to
the upstream hub where a GPIOB reset can be performed.
2020-06-09 11:56:30 +01:00
Richard Hughes
90a76d4f32 trivial: post release version bump 2020-06-09 11:46:20 +01:00
Richard Hughes
4ed2c18eaf Release fwupd 1.4.3 2020-06-09 11:45:09 +01:00
Richard Hughes
09950a13ce vli: Do not modify the class vfuncs depending on device type
We can have multiple FuVliPdDevice objects registered with the daemon, but they
will all share the FuVliPdDeviceClass instance. If one device requries a
silicon workaround, do not 'hijack' the vfunc for all devices of this type.

This means we do the right thing when updating both the one that requires the
workaround, and the 'normal' one.
2020-06-09 11:30:49 +01:00
Richard Hughes
7f38c5e5d7 trivial: Fix Debian CI targets 2020-06-09 11:24:42 +01:00
Richard Hughes
f9b898812d ata: A OUI quirk for Kingston
Fixes https://github.com/fwupd/fwupd/issues/2121
2020-06-09 11:23:07 +01:00
Richard Hughes
9ebeec4ce3 ccgx: Fix a potential division by zero
Spotted by Coverity.
2020-06-09 11:22:49 +01:00
Richard Hughes
50034a2823 Check the device requirements when returning from GetDetails
One vendor is shipping a cab archive with two metadata files, both referencing
the same GUID. The 'correct' metainfo description is selected using a GUID
'other device' requirement. This works fine when installing, but breaks when
double clicking on the .cab file as both components are valid, and thus get
returned.

In this case, return the component that matches the requirement 'first' so that
it gets chosen by gnome-software as the default.
2020-06-09 11:22:37 +01:00
Mario Limonciello
fb64490420 trivial: drop libgpgme deps
These aren't needed anymore since moving to libjcat
Note: snap still keeps them because libjcat builds in snap and
needs them.
2020-06-09 11:22:21 +01:00
Mario Limonciello
eb5639db69 fu-engine: Allow --plugin-whitelist to use dashes instead of underscores
I have found this confusing myself that even if plugins have the dash in
the name the daemon needs to internally use underscores.
2020-06-09 11:22:07 +01:00
Richard Hughes
30b01d11e2 Always enforce the metadata signature has a valid timestamp
Although this is something that we have always done on the LVFS, corporate
deployments that resign the firmware or metadata might not be signing the files
in the same way.

Always require a timestamp to prevent allowing an inadvertent rollback attack.
2020-06-09 11:21:06 +01:00
Ryan Lee
edacc76a2e ccgx: modify install duration for dmc device 2020-06-09 11:20:34 +01:00
Ryan Lee
818d0db516 ccgx: Add support for HP DMC dock devices 2020-06-09 11:20:26 +01:00
Richard Hughes
b6ef1ece49 trivial: Add RemoveDelay as a standard FuDevice quirk 2020-06-09 11:19:57 +01:00
Richard Hughes
6238643f14 trivial: post release version bump 2020-06-09 11:14:20 +01:00
Richard Hughes
523dcc5582 Release fwupd 1.3.10 2020-06-09 11:03:20 +01:00
Richard Hughes
a4d32d1d85 trivial: Fix Debian CI targets 2020-06-09 10:55:49 +01:00
Ryan Lee
59bb497a3e ccgx: modify install duration for dmc device 2020-06-09 10:37:26 +01:00
Mario Limonciello
5ad74b2589 trivial: logitech_hidpp: set the protocol properly when bootloader unknown
This appears to be a regression from c6ae0d998b
where the case of bootloader version 0 didn't get protocol set.

Fixes: #2156
2020-06-09 09:46:21 +01:00
Richard Hughes
49f99d186d trivial: Fix Debian CI targets 2020-06-09 09:09:47 +01:00
Ryan Lee
0942dcc413 ccgx: Add support for HP DMC dock devices 2020-06-05 13:35:54 +01:00
Richard Hughes
2e3605ffdc trivial: Add RemoveDelay as a standard FuDevice quirk 2020-06-05 12:17:52 +01:00
Richard Hughes
21f2d12fcc Validate that gpgme_op_verify_result() returned at least one signature
If a detached signature is actually a PGP message, gpgme_op_verify() returns
the rather perplexing GPG_ERR_NO_ERROR, and then gpgme_op_verify_result()
builds an empty list.

Explicitly check for no signatures present to avoid returning a FuKeyringResult
with no timestamp and an empty authority.

Many thanks to Justin Steven <justin@justinsteven.com> for the discovery and
coordinated disclosure of this issue. Fixes CVE-2020-10759
2020-06-05 11:09:03 +01:00
Mario Limonciello
5c2c782446 trivial: add a bug report target for Dell WD19 2020-06-02 11:47:00 -05:00
Mario Limonciello
80fc7e04a6 trivial: logitech_hidpp: set the protocol properly when bootloader unknown
This appears to be a regression from c6ae0d998b
where the case of bootloader version 0 didn't get protocol set.

Fixes: #2156
2020-06-02 10:27:42 -05:00
Mario Limonciello
c0a2798fb5 trivial: logitech_hidpp: set the protocol properly when bootloader unknown
This appears to be a regression from c6ae0d998b
where the case of bootloader version 0 didn't get protocol set.

Fixes: #2156
2020-06-02 10:27:13 -05:00
Richard Hughes
0f6d754d5a Detect if the MEI device has known security issues
If it has, fail HSI-1.
2020-06-01 22:49:39 +01:00
Mario Limonciello
19e7bfff22 trivial: uefi: fix dell TPM updates
Adding an extra header makes the firmware reject the GUID in the real
header.
2020-06-01 13:13:13 -05:00
Mario Limonciello
8800a3537b trivial: uefi: fix dell TPM updates
Adding an extra header makes the firmware reject the GUID in the real
header.
2020-06-01 13:11:44 -05:00
Vincent Huang
2bb046e1b3 synaptics-prometheus: Force the minor version from 0x02 to 0x01 to make
sure the devices can be updated back to 0x01.
2020-05-29 13:32:22 -05:00
Richard Hughes
bb228cbe53 pci-mei: Check the HFS register for the override strap 2020-05-29 17:34:18 +01:00
Richard Hughes
bdfccdf097 Allow multi-byte FuUdevDevice preads and writes 2020-05-29 17:34:18 +01:00