Commit Graph

8363 Commits

Author SHA1 Message Date
Mario Limonciello
06705a7674 trivial: fix circleci doc deployment for new paths 2022-08-31 08:26:41 +01:00
Richard Hughes
0ea9f4cea3 Install the symlink the other way around
RPM based distros cannot replace a directory with a symlink without a giant hack.
2022-08-31 08:26:41 +01:00
Mario Limonciello
ae135e7d0a trivial: add a better message on Windows for failing service 2022-08-30 12:06:16 -05:00
Mario Limonciello
25789ef2e7 trivial: fwupd-client: prefix some windows error messages 2022-08-30 12:06:16 -05:00
Mario Limonciello
284422a602 trivial: windows: Install windows service 2022-08-30 12:06:16 -05:00
Mario Limonciello
e26be40490 trivial: disable security arg when HSI disabled
There is no point to offering the security argument to the tools if HSI was disabled
at compile time.
2022-08-30 11:42:58 -05:00
Richard Hughes
6fd7a62efe uf2: Fix a small memory leak when parsing files
Fixes https://oss-fuzz.com/testcase-detail/4617823934087168
2022-08-30 17:34:33 +01:00
Richard Hughes
bdfe66a16e trivial: Fix an integer overflow issue when parsing oprom images
Fixes https://oss-fuzz.com/testcase-detail/4524947132776448
2022-08-30 17:34:33 +01:00
Richard Hughes
16b463334e Export the generic Intel Thunderbolt firmware format
This is being used for other products, e.g. USB4 docks.

If non-Intel firmware is being used (e.g. ASMedia) then the explicit
calls to `fu_intel_thunderbolt_nvm_new()` can be changed to something
like `fu_firmware_new_from_gtypes()` with all the formats listed.
2022-08-30 14:20:14 +01:00
Richard Hughes
7292d35b07 trivial: post release version bump 2022-08-30 10:49:03 +01:00
Richard Hughes
dbd6515e7b Release fwupd 1.8.4 2022-08-30 10:37:36 +01:00
victor-cheng
42e3c2e4dd usi-dock: Extend delay time before reload
sometimes the device is busy and will exceed the timer limit.
2022-08-30 10:28:15 +01:00
Mario Limonciello
75fa5c3128 trivial: Use meson 0.61 feature for natively installing symlinks 2022-08-30 08:36:24 +01:00
Josh Chen
5ed675f93b elantp: fix missing initial value and remove duplicate code 2022-08-29 21:18:40 -05:00
Mario Limonciello
72f19f2a12 trivial: fix documentation deployement 2022-08-29 18:20:46 -05:00
Mario Limonciello
a56b5b2d36 trivial: in the not enough information case show an URL 2022-08-29 18:20:46 -05:00
Mario Limonciello
a44fc42cf6 trivial: Add pages to fwupd.github.io index for HSI and BIOS Settings 2022-08-29 18:20:46 -05:00
Mario Limonciello
613cb455be trivial: fix some URLs for GTK projects in documentation 2022-08-29 20:48:09 +01:00
Mario Limonciello
bfa5741a98 trivial: make it clear the documentation isn't just for developers 2022-08-29 20:47:51 +01:00
Mario Limonciello
5777f37191 trivial: Move recommendations from the wiki to HSI spec
We publish the HSI spec at fwupd.github.io. We should make this
the first landing area for HSI content, going out to the wiki page
only as necessary.
2022-08-29 20:44:20 +01:00
Richard Hughes
cc30929339 Correctly detect CET IBT
According to Intel, EDX[bit 20] corresponds to IBT feature, *not* ECX.

Fixes half of https://github.com/fwupd/fwupd/issues/4960
2022-08-29 14:40:47 +01:00
Mario Limonciello
1f7526cce1 tpm: Don't require uefi capsule updates for checking TPM PCR0
There isn't any reason that we need to have a system advertising a
GUID with `main-system-firmware` in order to check that PCR0 reconstruction
matches what the TPM actually has.

Fixes: #4961
2022-08-29 07:56:23 +01:00
Richard Hughes
7f930a41dc trivial: Fix one -Wunused-variable warning 2022-08-26 21:18:25 +01:00
Richard Hughes
eec6de6985 Fix applying the latest DBX update on machines with 20200729.x64 installed
Use a hardcoded list of last-set dbx checksums to fix the reported version
when required.
2022-08-26 16:29:28 +01:00
Mario Limonciello
506730879d trivial: fix a minor logic error in sb/3rd party commit 2022-08-25 20:25:17 -05:00
Mario Limonciello
22b477bff5 trivial: don't allow turning on secure boot if 3rd party CA is off
Turning on UEFI secure boot on Lenovo systems with 3rd party CA
turned off will cause a boot loop.
2022-08-25 16:28:38 -05:00
Mario Limonciello
273a363a71 trivial: bios-settings: don't show error for nothing to do
After policy applies for the first time, you don't want to show
messaging to users that the policy can't apply the next time.
2022-08-25 14:40:09 -05:00
Mario Limonciello
afd661963b trivial: move the FwupdBiosSetting read only map into a hashtable
This is probably going to grow in the future, so make it more efficient.
2022-08-25 14:05:24 -05:00
Mario Limonciello
df07318f36 Move FwupdBiosSetting description database into libfwupdplugin
This needs to be handled by the daemon so that all GUI clients will
be able to load translations as well.

The translations will be distributed with fwupd, and any GUI client
should look up the translations.
2022-08-25 14:05:24 -05:00
Richard Hughes
a5397c6836 Add a new vfunc to check if two firmwares are compatible
For future use.
2022-08-25 15:30:07 +01:00
Richard Hughes
e12b46b991 Force the chassis type to be valid if emulating
The logic being that if we're emulating another system we're possibly
on a VM, and that's possibly going to report that it isn't a desktop.

I also think it makes sense to serialize out the FuSmbios object
to-and-from JSON, but that's a patch for another day.
2022-08-25 13:56:41 +01:00
Richard Hughes
50f0953b32 trivial: Fix a Coverity issue which is really a false positive 2022-08-25 12:15:23 +01:00
Richard Hughes
afb56d4286 trivial: Fix one -Wunused-variable warning 2022-08-25 12:08:33 +01:00
Richard Hughes
2a231896fd trivial: Fix a couple of coding style issues 2022-08-25 12:04:25 +01:00
Richard Hughes
2fed9cde72 trivial: Fix one -Wunused-variable warning 2022-08-25 12:03:51 +01:00
Richard Hughes
c4bdc3ae30 trivial: Fix one -Wunused-variable warning 2022-08-25 11:55:03 +01:00
Josh Chen
fa7b6247bb Added support for absolute reporting (non-HID) devices 2022-08-25 11:53:30 +01:00
Richard Hughes
6710f360ec trivial: Fix search-replace typo 2022-08-25 10:09:58 +01:00
Mario Limonciello
9391deb2d7 trivial: only accept bios settings ending in .json 2022-08-25 10:08:39 +01:00
Mario Limonciello
03d1e22d74
trivial: add get-bios-setting command to simple-client (#4947) 2022-08-24 21:19:23 +00:00
Mario Limonciello
087a809a5a Add documentation for fwupd BIOS settings API 2022-08-24 14:10:11 -05:00
Mario Limonciello
0e9ea45d27 trivial: fu-util/fu-tool: fix json mode for programming bios settings 2022-08-24 14:10:11 -05:00
Mario Limonciello
b48710aac7 trivial: fu-util: make JSON mode silent
We don't want to be emitting errors in JSON mode, we should only use
return codes.
2022-08-24 14:10:11 -05:00
Mario Limonciello
04c2186edc Add support for loading default BIOS settings policy
A user can place a JSON file in /etc/fwupd/bios-settings.d/ with
the default desired policy for the machine.

fwupd will load this policy on startup to ensure BIOS settings
are set as desired by the system administrator.
2022-08-24 12:59:42 -05:00
Mario Limonciello
2f9cb74c59 trivial: don't assume we know about pending_reboot
The `pending_reboot` variable is tracked by the kernel, make sure
that it is updated from the kernel when BIOS settings are changed.
2022-08-24 12:59:42 -05:00
Mario Limonciello
e49c64553d trivial: return FWUPD_ERRROR_NOTHING_TO_DO if BIOS settings already set
This will prevent setting `pending_reboot` if the settings already match
those desired by the client.
2022-08-24 10:58:25 -05:00
kate
3d199058bb fu-engine: HSI prefix fixing for invalid chassis
The invalid HSI prefix should be "HSI:INVALID" not "HSI-INVALID".

Signed-off-by: Kate Hsuan <hpa@redhat.com>
2022-08-24 16:27:02 +01:00
Richard Hughes
fa2df1eed6 Use ID_VENDOR_ID and ID_MODEL_ID fallbacks
Some udev subsystems run probers to populate the values, rather than
just the kernel providing the sysfs files. Support reading these too.
2022-08-24 15:54:58 +01:00
Richard Hughes
07ab0a61a2 trivial: Update some translations 2022-08-24 14:37:45 +01:00
Richard Hughes
f970b3de23 Do not show HSI events where we changed the spec result value 2022-08-24 13:49:19 +01:00