Kate Hsuan
db04223167
fu_history: fu_security_attr: Convert secutiry attr to json and write to DB.
...
1. Create hsi_history table to store the security attributes.
2. Convert all security entities to a json string and write to database.
Signed-off-by: Kate Hsuan <hpa@redhat.com>
Changes in v1:
1. Fixed typo: "his_history" to "hsi_history"
2. g_autofree all gchar pointer.
3. Removed unnecessary g_warning messages.
4. Moved the json format comment to Document comment.
5. Add an error handling for json converter.
Changes in v2:
1. Declare all pointers using g_auto_ptr.
2. The warning messages of JSON conversion and DB writing errors were added.
3. "Since: 1.7.0" was added to the document comment.
Changes in v3:
1. Fix variable declaration.
2. Remove unecessary data type casting.
Changes in v4:
1. Fix migration schema.
Changes in v5:
1. Fix hsi_history column name declaration.
Changes in v6:
Column name was modified from last to timestamp.
2021-09-03 12:03:17 +01:00
Richard Hughes
5c60beae29
Show HSiLevel=0 attributes in JSON security output
...
Don't assume zero always means 'skip'.
2021-09-02 21:41:11 +01:00
Ilias Apalodimas
4eca8be63d
uefi-capsule: Update documentation for CoD
...
Capsule update on-disk was added a while ago.
Document the config file changes and limitations on firmwares that's
doesn't support RT->SetVariable
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2021-09-02 17:54:34 +01:00
Richard Hughes
91536c5638
logitech-hidpp: Add the Model ID instance ID before getting firmware versions
...
This will allow us to create a device-radio child in the future.
2021-09-01 15:42:24 +01:00
Richard Hughes
0792ac0477
logitech-hidpp: Don't assume all USB devices with VEN_046D are Unifying
...
Logitech only provided one peripheral update for unifying hardware as a
PoC and now we are supporting other receivers this does not make a lot
of sense. All the new Bolt peripherals will need quirks anyway.
2021-09-01 15:42:24 +01:00
Richard Hughes
12f01c8622
logitech-hidpp: Use UNREACHABLE rather than modifying UPDATABLE
2021-09-01 15:42:24 +01:00
Mario Limonciello
92c8f0e727
trivial: fix the grub configuration from 684bc03
...
fixes #3685
2021-09-01 09:40:24 -05:00
Richard Hughes
3932a1f0d3
device-tests: Do not use a deprecated method
...
This also fixes the bug where you can't recover a Unifying device stuck
in bootloader mode if the 'default' protocol is not the one that matches.
2021-09-01 15:36:07 +01:00
Ricardo Cañuelo
512973fa50
logitech-hidpp: Add support for updating Bolt receiver radio firmware
2021-09-01 15:07:09 +01:00
Ricardo Cañuelo
35af30321a
logitech-hidpp: Add support for updating Bolt receivers
2021-09-01 15:07:09 +01:00
Richard Hughes
9d2168e985
logitech-hidpp: Fix a regression in updating Unifying peripherals
...
This regressed in a3ecccc31c
2021-08-31 19:27:59 +01:00
Ricardo Cañuelo
7b31e92e85
logitech-hidpp: Retry 5 times to setup after the device restarted
2021-08-31 17:15:15 +01:00
Ricardo Cañuelo
482148a185
logitech-hidpp: Allow the HIDPP write to fail on attach
...
On some devices the device restarts before it can send the reply.
2021-08-31 17:15:15 +01:00
Ricardo Cañuelo
a3ecccc31c
logitech-hidpp: Allow children to attach using the parent device for future code
2021-08-31 17:15:15 +01:00
Ricardo Cañuelo
b4b7af6c9f
logitech-hidpp: Fetch the device model ID to add a more precise InstanceID
2021-08-31 17:15:15 +01:00
Ricardo Cañuelo
8ac10329c9
logitech-hidpp: Store the HIDPP++ PID for future usage
2021-08-31 17:15:15 +01:00
Richard Hughes
2629944aa0
logitech-hidpp: Just use FuLogitechHidPpDevice rather than a stub
2021-08-31 17:15:15 +01:00
Ricardo Cañuelo
0974dc759b
logitech-hidpp: Use an interactive request to restart some Logitech DFU devices
2021-08-31 17:15:15 +01:00
Ricardo Cañuelo
f63afade6f
logitech-hidpp: Add some trivial defines for polling intervals
2021-08-31 17:15:15 +01:00
Ricardo Cañuelo
f4926e2d8e
logitech-hidpp: Add support for devices supporting the Unified Battery feature
2021-08-31 17:15:15 +01:00
Ricardo Cañuelo
ef95d362dd
logitech-hidpp: Fix reading HID++1.0 battery mileage
2021-08-31 17:15:15 +01:00
Ricardo Cañuelo
4534f2d7fc
logitech-hidpp: Reduce some debug noise on update
2021-08-31 17:15:15 +01:00
Ricardo Cañuelo
74e126390a
logitech-hidpp: Fix a critical error on flash failure
2021-08-31 17:15:15 +01:00
Richard Hughes
bd52573b11
Add support for an 'unreachable' device flag
...
This is for devices that are still registered with a receiver but are
no longer in range or in a high power state.
2021-08-31 17:08:05 +01:00
Richard Hughes
566f8e27c2
Do not check wait_removed as multiple devices can be WAIT_FOR_REPLUG
...
This makes devices that come back in bootloader mode with no children
timeout, which is bad UX. We don't even need the feature now that we
can WAIT_FOR_REPLUG on multiple devices now.
2021-08-31 12:47:46 +01:00
Richard Hughes
b5c59e2733
trivial: Make the 'device ID was not found' messages more helpful
2021-08-31 12:47:29 +01:00
Richard Hughes
a9f2d1966a
trivial: Fix a translator string Freudian slip
2021-08-30 08:24:43 +01:00
Sanjay Sheth
b6ff1ea40e
Add support for devices supporting the Logitech bulk controller protocol
2021-08-29 20:33:16 +01:00
Mario Limonciello
ce6da002aa
Add protobuf support to clang-format
2021-08-29 20:33:16 +01:00
Richard Hughes
7020f49aa9
trivial: Fix a GObjectIntrospection warning by using the correct prefix
2021-08-28 06:50:50 -05:00
Richard Hughes
d8af914072
trivial: Remove some unused variables
2021-08-28 10:17:56 +01:00
Crag Wang
ab307a879f
dell-dock: cleanup needs to handle activation between devices in dock
2021-08-27 13:04:48 +08:00
Mario Limonciello
db72e9f52a
trivial: mark some strings as translatable ( Fixes : #3654 )
2021-08-25 14:28:43 -05:00
Crag Wang
651a542cae
dell-dock: add device GUID earlier even setup yet done
...
This commit resolves a warning message at runtime:
- no GUIDs for device ...
fu_device_add_child emits a child-added signal afterwards the engine
try to add given device and verify whether GUIDs is set.
2021-08-25 08:20:44 -05:00
Mario Limonciello
f6a8c740e0
trivial: ignore commits for tree wide changes
2021-08-24 11:18:40 -05:00
Mario Limonciello
55de39c077
trivial: reformat the whole tree to match new format
2021-08-24 11:18:40 -05:00
Mario Limonciello
73fe71a65e
trivial: redfish: fix a wrong return value
2021-08-24 11:18:40 -05:00
Mario Limonciello
d3983674f4
trivial: don't use same variable definition as config.h in code
...
If config.h is included by a file then which one is used may end up
be confusing. Be explicit to use the values that are declared by
libraries.
2021-08-24 11:18:40 -05:00
Mario Limonciello
96b693fb50
trivial: thunderbolt: fix include order for future changes
2021-08-24 11:18:40 -05:00
Crag Wang
756b18391b
dell-dock: handle activation until both ec and usb4 devices are probed
2021-08-24 11:45:45 +08:00
Michal Vasilek
1a363c7e44
trivial: make gi-docgen a host dependency on cross
2021-08-23 12:56:20 -05:00
Richard Hughes
c1ff02f055
trivial: Make the quirk style more consistent
2021-08-23 18:10:12 +01:00
Richard Hughes
6a8f285ee2
Check the quirk format as part of precommit
2021-08-23 18:10:12 +01:00
Jing-Jie Zhou
8b477ed5e8
modified. DeviceInstanceId is deprecated!
2021-08-23 06:50:28 -05:00
Jierger Zhou
3fbdbd64aa
dfu: add quirks for AVer ATLAS CAM/CAM520 Pro2
2021-08-23 06:50:28 -05:00
Mario Limonciello
3b4b05561a
trivial: fix a compilation dependency error ( Fixes : #3657 )
...
Reproducible by manually calling failing build targets first
```
ninja -C build plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o
ninja: Entering directory `build'
[1/1] Compiling C object plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o
FAILED: plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o
cc -Iplugins/tpm-eventlog/fwupdtpmevlog.p -Iplugins/tpm-eventlog -I../plugins/tpm-eventlog -I. -I.. -Ilibfwupd -I../libfwupd -Ilibfwupdplugin -I../libfwupdplugin -I/usr/include/libxmlb-1 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/gudev-1.0 -I/usr/include/json-glib-1.0 -I/usr/include/gusb-1 -I/usr/include/libusb-1.0 -I/usr/include/tss2 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c99 -g -Waggregate-return -Wunused -Warray-bounds -Wcast-align -Wclobbered -Wdeclaration-after-statement -Wdiscarded-qualifiers -Wduplicated-branches -Wduplicated-cond -Wempty-body -Wformat=2 -Wformat-nonliteral -Wformat-security -Wformat-signedness -Wignored-qualifiers -Wimplicit-function-declaration -Winit-self -Wlogical-op -Wmaybe-uninitialized -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wno-cast-function-type -Wno-address-of-packed-member -Wno-unknown-pragmas -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-suggest-attribute=format -Wno-unused-parameter -Wold-style-definition -Woverride-init -Wpointer-arith -Wredundant-decls -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing -Wstrict-prototypes -Wswitch-default -Wtype-limits -Wundef -Wuninitialized -Wunused-but-set-variable -Wunused-variable -Wvla -Wwrite-strings -fstack-protector-strong -DFWUPD_COMPILATION -D_DEFAULT_SOURCE -DFWUPD_DISABLE_DEPRECATED -D_BSD_SOURCE -D__BSD_VISIBLE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -pthread -MD -MQ plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o -MF plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o.d -o plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o -c ../plugins/tpm-eventlog/fu-tpm-eventlog-common.c
In file included from ../libfwupdplugin/fwupdplugin.h:33,
from ../plugins/tpm-eventlog/fu-tpm-eventlog-common.h:9,
from ../plugins/tpm-eventlog/fu-tpm-eventlog-common.c:9:
../libfwupdplugin/fu-plugin-vfuncs.h:17:10: fatal error: fu-hash.h: No such file or directory
17 | #include "fu-hash.h"
| ^~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
```
2021-08-22 16:09:18 -05:00
Apollo Ling
98f78f4b15
plugin/synaptics-mst: add support for cayenne/spyder
2021-08-19 22:49:38 -05:00
Mario Limonciello
7ae233b7cf
Forcefully set checksums found in cabinet files to lowercase
...
Archives uploaded to LVFS will have checksums written by hexdigest
and be set to lowercase, but hand generated archives this may not
be true.
For maximum compatibility with the most fwupd versions they should
be written in lowercase, but in case they aren't, convert to lowercase.
Reference https://github.com/fwupd/firmware-lenovo-thinkpad/issues/145
2021-08-18 14:18:28 -05:00
Norbert Kamiński
3fe782cddd
build_freebsd_package.sh: Build package with generated pkg-plist
...
Signed-off-by: Norbert Kamiński <norbert.kaminski@3mdeb.com>
2021-08-18 08:39:11 -05:00
Norbert Kamiński
c1f06b6b82
freebsd-ci: Change FreeBSD artifact extension
...
Signed-off-by: Norbert Kamiński <norbert.kaminski@3mdeb.com>
2021-08-18 08:39:11 -05:00