Commit Graph

9633 Commits

Author SHA1 Message Date
Richard Hughes
b581fa5670 trivial: Use files() rather than current_source_dir() 2022-09-24 09:12:14 -05:00
Richard Hughes
b50ef90aa6 trivial: Fix up some internal docs to reflect reality 2022-09-23 16:39:21 +01:00
Richard Hughes
34486b90e2 trivial: Remove long-dead meson option 2022-09-23 16:39:21 +01:00
Mario Limonciello
7be0c033a9 trivial: skip self tests for fwupd_client_remotes_func if G_DBUS_ERROR_NAME_HAS_NO_OWNER
Fixes: #5073
2022-09-23 07:52:39 -05:00
Mario Limonciello
b7ac4b4077 trivial: fix docs deployment 2022-09-22 21:52:50 -05:00
Mario Limonciello
34dfa86896 trivial: restore libcurl support in snap (Fixes: #5069) 2022-09-22 13:11:42 -05:00
Mario Limonciello
5c284e911a trivial: debian: drop unused lintian override 2022-09-22 11:43:01 -05:00
Mario Limonciello
24a4b322fd trivial: debian: Don't invoke systemd directly for fwupd.postinst 2022-09-22 11:43:01 -05:00
Mario Limonciello
70d34a2fe2 trivial: debian/control: Add explicit depends on adduser
W: fwupd: maintainer-script-needs-depends-on-adduser adduser (does not satisfy adduser) [postinst:91]
2022-09-22 11:43:01 -05:00
Mario Limonciello
8586e25177 trivial: debian: Add symlinks for devhelp to work
Fixes https://www.mit.edu/afs.new/sipb/project/debathena/lintian/www/tags/package-contains-devhelp-file-without-symlink.html
2022-09-22 11:43:01 -05:00
Richard Hughes
c6fde9e085 trivial: Install the host-emulate.d tests in the test package
This fixes the ppc64 Fedora build, as tests are disabled on that arch.
2022-09-22 17:31:42 +01:00
Richard Hughes
5fbc21a535 trivial: Fix the example spec file on i686 2022-09-22 17:31:42 +01:00
Mario Limonciello
82ea1685c8 releasing package fwupd version 1.8.5-1 2022-09-22 11:18:01 -05:00
Mario Limonciello
dd5db0a640 drop unused lintian override 2022-09-22 11:17:31 -05:00
Richard Hughes
ec493527c3 trivial: Fix the Pre-boot DMA protection HSI long description
The original string is ambiguous to translate and logically incorrect.
2022-09-22 16:54:26 +01:00
Mario Limonciello
0e3dc65b7f Don't invoke systemd directly for fwupd.postinst 2022-09-22 10:48:56 -05:00
Mario Limonciello
42d3309510 debian/control: Add explicit depends on adduser
W: fwupd: maintainer-script-needs-depends-on-adduser adduser (does not satisfy adduser) [postinst:91]
2022-09-22 10:41:27 -05:00
Mario Limonciello
0e1ac6b4e0 Add symlinks for devhelp to work
Fixes https://www.mit.edu/afs.new/sipb/project/debathena/lintian/www/tags/package-contains-devhelp-file-without-symlink.html
2022-09-22 10:39:41 -05:00
Mario Limonciello
706187b403 backport a patch to install devhelp symlinks as relative 2022-09-22 10:28:09 -05:00
Richard Hughes
49af1667bd trivial: Install the devhelp symlinks relative
We want /usr/share/docs/fwupd/libfwupd for the docs that can be referenced from
index.html, and a symlink of /usr/share/docs/libfwupd for devhelp.

This fixes the rpmbuild warning:

    # absolute symlink: /usr/share/doc/fwupd/libfwupd -> /usr/share/doc/libfwupd
    # absolute symlink: /usr/share/doc/fwupd/libfwupdplugin -> /usr/share/doc/libfwupdplugin
2022-09-22 16:24:56 +01:00
Mario Limonciello
5e0d03ae3e New upstream version (1.8.5) 2022-09-22 10:18:46 -05:00
Mario Limonciello
142fc21be9 Update copyright 2022-09-22 10:12:30 -05:00
Mario Limonciello
9e1fe164c5 Release fwupd 1.8.5
-----BEGIN PGP SIGNATURE-----
 
 iQFIBAABCAAyFiEEFj61ARkiXbPfj0nqF6y6jfqXDhcFAmMsafAUHHJpY2hhcmRA
 aHVnaHNpZS5jb20ACgkQF6y6jfqXDhczzAf9EAQcjLF1K7CrthrvjrbgJwUlbNtP
 ZLXRnYLVgD86clV/K73rxXac8KVJF7TmTe3umQTcV2l3qp8corQbzkF+kLp8c7Nw
 hEzvZHQDpxoiK5UUKRcfV7mD811zJDfMlBUFAzjtVbgfn3WJn3AGsj/9eOwTwIH5
 oWqc6/d2a6zwkm71rjUPd4KgyA1fvFzxEexzxhYmRkHxAQpUyGgHwXB7UtAVwIa7
 5gK7kOAXrVP6oA89GpAVtThnjTbKyyimvgFV+upeI1iXM7vi9Ih4J4tDLd8r/FcL
 kZstZ2Iy/PThqSH0i3x+nalVb+Yzu6QQlBLnSGmehVB3IaSpYy28LcY/EQ==
 =QbUS
 -----END PGP SIGNATURE-----

Merge tag '1.8.5' into debian

Release fwupd 1.8.5
2022-09-22 10:10:43 -05:00
Richard Hughes
713bf04673 trivial: post release version bump 2022-09-22 15:01:15 +01:00
Richard Hughes
456dcb6a68 Release fwupd 1.8.5 2022-09-22 14:58:08 +01:00
Richard Hughes
c73a55faa1 Remove a potential foot-gun when saving config values
If a specific plugin calls fu_plugin_set_secure_config_value() and then
fu_plugin_set_config_value() then we'll save the file with the world-readable
permissions.

Set a plugin flag to say that 'this plugin is storing sensitive details' which
allows us to use the same entrypoint and also fix up any files at startup that
do not have the correct permissions.
2022-09-22 14:47:12 +01:00
Richard Hughes
ea676855f2 Never save the Redfish passwords to a file readable by users
When the redfish plugin automatically creates an OPERATOR user account on the
BMC we save the autogenerated password to /etc/fwupd/redfish.conf, ensuring it
is chmod'ed to 0660 before writing the file with g_key_file_save_to_file().

Under the covers, g_key_file_save_to_file() calls g_file_set_contents() with
the keyfile string data.
I was under the impression that G_FILE_CREATE_REPLACE_DESTINATION was being
used to copy permissions, but alas not.

GLib instead calls g_file_set_contents_full() with the mode hardcoded to 0666,
which undoes the previous chmod().

Use g_file_set_contents_full() with the correct mode for newer GLib versions,
and provide a fallback with the same semantics for older versions.
2022-09-22 14:46:44 +01:00
Richard Hughes
be2311c6c3 trivial: Fix gtk-doc markup issue 2022-09-22 14:34:10 +01:00
Richard Hughes
5d38e0aeea Move the getting the ESP to the context
We now have two plugins getting the ESP values, and we only allow hardcoding
the ESP in uefi_capsule.conf.

Make all this a lot simpler by moving the ESP+BDP code to `FuContext`, which
also means we can handle the override (via the config file) in the engine,
and the override (in the command line tools) using the same mechanism.

Also, automate the migration of the `OverrideESPMountPoint` -> `EspLocation`
when loading the engine.

Fixes https://github.com/fwupd/fwupd/issues/5042
2022-09-22 14:31:06 +01:00
Richard Hughes
1c27131fc6 trivial: Style nit
Co-authored-by: Mario Limonciello <mario.limonciello@amd.com>
2022-09-22 14:24:50 +01:00
Richard Hughes
f60af523e3 trivial: Don't print NULL in GError strings
PVS: Incorrect format: A null pointer is used.
2022-09-22 14:24:50 +01:00
Richard Hughes
d4c589cc04 trivial: Fix -Wunused-variable warning 2022-09-22 14:24:50 +01:00
Richard Hughes
2d2bde2268 trivial: Fix -Wunused-but-set-variable warning 2022-09-22 14:24:50 +01:00
Richard Hughes
b71968d348 trivial: Fix -Wunused-but-set-variable warning 2022-09-22 14:24:50 +01:00
Richard Hughes
7fd8aa6a38 Ignore missing NUL when parsing DS20 quirk data 2022-09-22 14:23:20 +01:00
Victor Cheng
ae74625721 usi-dock: Add initialization retry to ensure flash ready 2022-09-22 13:50:32 +01:00
SonixLeo
2c515f9a7b update the Quirk specifications for our Sonix CAM products 2022-09-22 10:34:43 +01:00
Richard Hughes
2fb81a6482 redfish: Only create users using IPMI when we know it's going to work
Make the IPMI auto-account feature allow-listed on specific vendors as some IPMI
implementations are not specification compliant and do entirely the wrong thing.
2022-09-21 14:22:35 +01:00
Richard Hughes
096364199b trivial: Fix self tests when using -Dgresource_quirks=enabled
We want to also skip the compiled-in GResource quirks if loading the context
with _NO_CACHE.
2022-09-21 12:59:44 +01:00
Richard Hughes
64cf323e57 wacom-raw: Fix maximum szie for AES panels
The latest AES panel G14T is expanded to 0x4000.
2022-09-21 07:29:33 +01:00
Richard Hughes
28fc1a5130 wacom-raw: Correctly finalize Wacom AES devices
The attach behaviour is not common between AES and EMR panels.
2022-09-21 07:29:33 +01:00
Alex
df35215171 Update create_containers.yml
Give packages permission to fix the runner
2022-09-20 11:59:41 -05:00
Alex
76ca69006f Update create_containers.yml
Fix for docker/build-push-action
2022-09-20 10:39:41 -05:00
Alex
86a99e9e45 build: harden create_containers.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-09-20 10:39:41 -05:00
Khem Raj
e9964a0f96 trivial: Fix compile when using python 3.7 or older
Signed-off-by: Richard Hughes <richard@hughsie.com>
2022-09-20 16:05:13 +01:00
Richard Hughes
9df226ca08 Revert "build: harden create_containers.yml permissions"
This reverts commit 34bc417abf.
2022-09-20 15:17:52 +01:00
Alex
34bc417abf build: harden create_containers.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-09-20 15:02:34 +01:00
Alex
c76551f381 build: harden main.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-09-20 15:02:34 +01:00
Richard Hughes
c0b8673faa dbx: Do not show the 'connected devices may not be usable while updating' message 2022-09-20 12:55:00 +01:00
Richard Hughes
b34dc9c1f1 redfish: Set the permissions of redfish.conf at install time
Although typically we set the password using fu_plugin_set_secure_config_value()
or something like Ansible or Puppet -- the user could just edit the file with
vim and we still want the permissions set correctly.
2022-09-20 12:33:03 +01:00