Commit Graph

6338 Commits

Author SHA1 Message Date
Richard Hughes
7b2d75f94d trivial: Fix a tiny leak when using fwupdmgr 2021-11-02 13:47:56 +00:00
Richard Hughes
e3998eed5a trivial: Fix a tiny leak on request error path 2021-11-02 13:47:56 +00:00
Richard Hughes
8917a11208 logitech-hidpp: Fix a tiny memory leak for an error path 2021-11-02 13:47:56 +00:00
Richard Hughes
fa5994f3aa logitech-hidpp: Fix a tiny memory leak for ID6 devices 2021-11-02 13:47:56 +00:00
Richard Hughes
510a9bfe0c Merge tpm-eventlog into the tpm plugin
This is so much less complicated.
2021-11-02 13:47:25 +00:00
Richard Hughes
b0f80757f5 Add a test UEFI device that can be used to test capsules
To use this use `sudo systemctl edit fwupd.service` and set
`Environment="FWUPD_SYSFSFWDIR=/usr/share/installed-tests/fwupd"`

Fixes https://github.com/fwupd/fwupd/issues/3441
2021-11-02 08:09:25 +00:00
Richard Hughes
e29c74180c Move the TPM handling into the TPM place
The fact that it currently lives in uefi-capsule is a historical
accident, and it doesn't really belong to tpm-eventlog either.

Fixes some of https://github.com/fwupd/fwupd/issues/3901
2021-11-01 14:51:27 +00:00
Richard Hughes
23b1d20294 trivial: post release version bump 2021-11-01 11:57:50 +00:00
Richard Hughes
1c7b4ef223 Release fwupd 1.7.1 2021-11-01 11:55:09 +00:00
Richard Hughes
6d35c99393 Fix 'trivial: fwupdtool security' to show sane results 2021-11-01 11:46:44 +00:00
Richard Hughes
a026a177d9 Fix the CSME CVE detection
14.1.53.1649 appeared which showed that the logic was funcky.
2021-11-01 11:22:08 +00:00
Richard Hughes
74cb7a23d1 Fix 'fwupdmgr security' on a fresh install
If there are no HSI events then don't throw a critical warning when the
variant array type is unknown.
2021-11-01 10:14:43 +00:00
Richard Hughes
97785b3f5d trivial: Ignore security attrs without an assigned ID
This should never happen, but...
2021-11-01 10:14:43 +00:00
Richard Hughes
838db7e0fd trivial: Only show the 'Host Security Events' title when required
We actually ignore some of the events.
2021-11-01 10:14:43 +00:00
Richard Hughes
8b36789692 trivial: Fix spelling of fwupd 2021-11-01 08:50:51 +00:00
Richard Hughes
3e9d3cd50f trivial: Correctly redirect a typo in the HSI docs 2021-11-01 08:22:29 +00:00
Richard Hughes
a17222f8a0 trivial: Add some more details to the HSI specification 2021-11-01 08:22:29 +00:00
Richard Hughes
a0cb743700 Show changes in HSI attributes when required
e.g. `fwupdmgr security --force` would display:

    Host Security Events
      2021-10-29 10:51:42:  ✘ Kernel lockdown disabled
      2021-10-29 10:51:42:  ✘ SecureBoot disabled
      2021-10-29 09:32:32:  ✔ IOMMU device protection enabled
      2021-10-29 09:28:52:  ✘ IOMMU device protection disabled
2021-11-01 06:58:44 +00:00
Richard Hughes
3e456a8cbb Only save the HSI attributes to the database if different 2021-11-01 06:58:44 +00:00
Richard Hughes
17b6d79728 Allow getting the old HSI security attrs from the database
Based on a patch by Kate Hsuan <hpa@redhat.com>, many thanks.
2021-11-01 06:58:44 +00:00
Richard Hughes
e4b097c3dd Allow comparing two FuSecurityAttrs for equality
Based on a patch by Kate Hsuan <hpa@redhat.com>, many thanks.
2021-11-01 06:58:44 +00:00
Richard Hughes
8120616c62 trivial: Add a fallback result for an HSI attribute
The fallback may represent the old state, or a state
that may be considered equivalent.
2021-11-01 06:58:44 +00:00
Richard Hughes
01224b23e6 trivial: Fix the DCI links in the HSI specification
All the attributes have a 1:1 mapping except this one, and that broke
the Insights rules.
2021-10-30 19:33:11 +01:00
Richard Hughes
ad12a809e3 Add a configure option for fastboot support
Fixes https://github.com/fwupd/fwupd/issues/3920
2021-10-30 08:55:07 -05:00
James Beddek
d7bedc20af synaptics-rmi: fix meson configure when building tests
if synaptics-rmi is disabled and gnutls is not used, the configure fails

move the synaptics-rmi test check behind the "plugin_synaptics_rmi" option
2021-10-30 07:16:57 -05:00
syabbashp
3db727d460 Add support for HP Thunderbolt Dock G4 2021-10-29 18:33:15 +01:00
Richard Hughes
196dbec5ae trivial: Add fu_security_attrs_append_internal() for future code 2021-10-29 13:11:21 +01:00
Richard Hughes
e9319699b4 trivial: Add fwupd_security_attr_copy() for future functionality 2021-10-29 13:09:45 +01:00
Richard Hughes
06a1eff9b7 trivial: Do not save the created value to the database
This makes it much harder to dedupe later, and we already have a
timestamp key for the database record.
2021-10-29 11:38:21 +01:00
Richard Hughes
5bb250846d trivial: Fix recently introduced gtkdoc warning 2021-10-29 11:38:04 +01:00
Crag Wang
1be055fb1e trivial: check-license: exclude files from build directory earlier 2021-10-29 12:21:55 +08:00
Crag Wang
996ca6a0df trivial: docs not really required for debugging builds 2021-10-29 12:21:55 +08:00
Richard Hughes
a085b4dd68 Add a 'created' property on the HSI security attribute 2021-10-28 17:25:40 +01:00
Richard Hughes
dbdd3740a3 Add support for loading the HSI result from a JSON blob
This is how we save it to the database, and we'll need to load old
records for future functionality.
2021-10-28 15:36:13 +01:00
Richard Hughes
95b82a1467 trivial: Add two missing _from_string() HSI helpers 2021-10-28 15:36:13 +01:00
Richard Hughes
164012b47b trivial: Ensure the plugin is loaded from the HSI attr variant 2021-10-28 15:36:13 +01:00
bennyLucky
b33a162b4c dell-dock:Add atomic support 2021-10-28 19:32:22 +08:00
Richard Hughes
9b0316ce25 linux-swap: Fix a trivial memory leak in the self tests 2021-10-27 19:08:20 +01:00
Richard Hughes
003f27311e synaptics-rmi: Fix building the self tests on s390x 2021-10-27 17:10:37 +01:00
Mario Limonciello
a38bab9a98 trivial: move freebsd CI to a nightly build
It currently has a timeout of 20 minutes but the job times out constantly.
This is wasting valuable CI minutes.

Move it to 30 minutes and only run it once a day.
2021-10-27 16:42:48 +01:00
Richard Hughes
5dee779dc9 pixart-rf: Don't show the HID report unless debugging the plugin 2021-10-27 15:57:53 +01:00
Richard Hughes
39e006e563 wacom-usb: Fix a potentially unsafe memcpy()
Spotted by Coverity.
2021-10-27 15:57:53 +01:00
Richard Hughes
128a3afaa9 logitech-bulkcontroller: Fix a potential NULL dereference on error
Spotted by Coverity.
2021-10-27 15:57:53 +01:00
Richard Hughes
7453d59ccf trivial: Fix a small memory leak in the self tests 2021-10-27 15:57:53 +01:00
Richard Hughes
6a2d222eea trivial: Fix a small memory leak at startup 2021-10-27 15:57:53 +01:00
Richard Hughes
51a1bc5b66 thunderbolt: Fix a small memory leak at startup 2021-10-27 15:57:53 +01:00
Richard Hughes
758f34548c superio: Add missing parent finalizer 2021-10-27 15:57:53 +01:00
Richard Hughes
e4513fa7d0 pixart-rf: Add missing parent finalizer 2021-10-27 15:57:53 +01:00
Richard Hughes
aff4ff7183 parade-lspcon: Add missing parent finalizer 2021-10-27 15:57:53 +01:00
Richard Hughes
d0162352a6 logitech-hidpp: Fix a small memory leak at startup 2021-10-27 15:57:53 +01:00