summaryrefslogtreecommitdiffstats
path: root/src/shared/discover-image.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-07-06Hwdb: Add Sanwa Direct 400-MA128 external trackpad (#28272)Andrew Baxter1-0/+11
* Hwdb: Add Sanwa Direct 400-MA128 external trackpad ``` $ udevadm info /dev/input/by-path/pci-0000:28:00.3-usb-0:1.4.4.1:1.1-event-mouse P: /devices/pci0000:00/0000:00:07.1/0000:28:00.3/usb5/5-1/5-1.4/5-1.4.4/5-1.4.4.1/5-1.4.4.1:1.1/0003:258A:0501.0097/input/input256/event15 M: event15 R: 15 U: input D: c 13:79 N: input/event15 L: 0 S: input/by-id/usb-SINO_WEALTH_USB_TOUCHPAD-if01-event-mouse S: input/by-path/pci-0000:28:00.3-usb-0:1.4.4.1:1.1-event-mouse E: DEVPATH=/devices/pci0000:00/0000:00:07.1/0000:28:00.3/usb5/5-1/5-1.4/5-1.4.4/5-1.4.4.1/5-1.4.4.1:1.1/0003:258A:0501.0097/input/input256/event15 E: DEVNAME=/dev/input/event15 E: MAJOR=13 E: MINOR=79 E: SUBSYSTEM=input E: USEC_INITIALIZED=3436890430330 E: ID_INPUT=1 E: ID_INPUT_TOUCHPAD=1 E: ID_INPUT_WIDTH_MM=106 E: ID_INPUT_HEIGHT_MM=77 E: ID_BUS=usb E: ID_MODEL=USB_TOUCHPAD E: ID_MODEL_ENC=USB\x20TOUCHPAD E: ID_MODEL_ID=0501 E: ID_SERIAL=SINO_WEALTH_USB_TOUCHPAD E: ID_VENDOR=SINO_WEALTH E: ID_VENDOR_ENC=SINO\x20WEALTH E: ID_VENDOR_ID=258a E: ID_REVISION=0521 E: ID_TYPE=hid E: ID_USB_MODEL=USB_TOUCHPAD E: ID_USB_MODEL_ENC=USB\x20TOUCHPAD E: ID_USB_MODEL_ID=0501 E: ID_USB_SERIAL=SINO_WEALTH_USB_TOUCHPAD E: ID_USB_VENDOR=SINO_WEALTH E: ID_USB_VENDOR_ENC=SINO\x20WEALTH E: ID_USB_VENDOR_ID=258a E: ID_USB_REVISION=0521 E: ID_USB_TYPE=hid E: ID_USB_INTERFACES=:030101:030000: E: ID_USB_INTERFACE_NUM=01 E: ID_USB_DRIVER=usbhid E: ID_PATH=pci-0000:28:00.3-usb-0:1.4.4.1:1.1 E: ID_PATH_TAG=pci-0000_28_00_3-usb-0_1_4_4_1_1_1 E: ID_INPUT_TOUCHPAD_INTEGRATION=internal E: LIBINPUT_DEVICE_GROUP=3/258a/501:usb-0000:28:00.3-1.4.4 E: DEVLINKS=/dev/input/by-id/usb-SINO_WEALTH_USB_TOUCHPAD-if01-event-mouse /dev/input/by-path/pci-0000:28:00.3-usb-0:1.4.4.1:1.1-event-mouse ``` Link to product: https://www.amazon.co.jp/gp/product/B07Z5HCMFP
2023-07-06hwdb: add support for Archos 101 Cesium to 60-sensor.hwdb (#28270)Thomas Genty1-0/+4
Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com>
2023-07-06tpm2-util: remove unnecessary semicolonAntonio Alvarez Feijoo1-1/+1
2023-07-06network/json: introduce PreferredLifetimeUSec and ValidLifetimeUSecYu Watanabe1-2/+4
2023-07-06service: explicitly cast float to usec_tLennart Poettering1-2/+2
Let's cast these floats explicitly to usec_t, since implicit float-to-integer casts are dangerous business, and we should underline that there's a cast happening here.
2023-07-06core/service: make restart delay increase more smoothlyYu Watanabe1-4/+10
Suggested in https://github.com/systemd/systemd/pull/26902#issuecomment-1620400583.
2023-07-06NEWS: more preparation for 254-rc1Lennart Poettering2-2/+117
2023-07-06networkctl: urlify captive portal entryYu Watanabe1-2/+9
2023-07-06test-network: drop ExecReload= in networkd.service and udevd.serviceYu Watanabe1-9/+1
Follow-up for 0e07cdb0e77d0322bc866b5e13abbe38e988059d and f84331539deae28fbeb42d45ad0c8d583b3372a3.
2023-07-06network/ndisc: downgrade log levelYu Watanabe1-41/+41
The failures may be critical for per-link operation, but not critical for the service.
2023-07-06network: handle captive portal with multiple routersYu Watanabe5-42/+144
Before this patch, if a network has multiple routers and one of them provides a captive portal, then the portal was overwritten or cleared when another RA from another router is received. This makes captive portals managed in the similar way as DNS servers or DNS domains. So now captive portal can safely handled even if a network has multiple routers.
2023-07-06network: update commentYu Watanabe1-2/+2
2023-07-06network: introduce link_get_captive_portal()Yu Watanabe4-51/+66
Then, downgrade log level of the message about mis-match of captive portals in different protocols.
2023-07-05tpm2: remove tpm2_make_primary()Dan Streetman1-163/+25
Replace use of tpm2_make_primary() with tpm2_create_loaded()
2023-07-05tpm2: move local vars in tpm2_unseal() to point of useDan Streetman1-7/+6
No functional change; cosmetic only.
2023-07-05tpm2: add tpm2_get_or_create_srk()Dan Streetman1-10/+231
Add function to simplify getting the TPM SRK; if one exists, it is provided, otherwise one is created and then the new SRK provided. This also add tpm2_create_loaded() and updates tpm2_seal() to use the new functions instead of tpm2_make_primary().
2023-07-05tpm2: add tpm2_persist_handle()Dan Streetman1-9/+74
Add function to convert a transient handle in the TPM into a persistent handle in the TPM.
2023-07-05tpm2: cache TPM algorithmsDan Streetman3-36/+62
Cache the supported algorithms when creating a new context.
2023-07-05tpm2: cache the TPM supported commands, add tpm2_supports_command()Dan Streetman3-0/+72
Cache the TPM's supported commands and provide a function to check if a command is supported.
2023-07-05basic/alloc-util: add greedy_realloc_append()Dan Streetman3-2/+72
Add function to perform greedy realloc as well as copying the new data into the newly allocated space.
2023-07-05tpm2: replace tpm2_capability_pcrs() macro with direct c->capaiblity_pcrs useDan Streetman1-8/+2
2023-07-05tpm2: add tpm2_create()Dan Streetman1-39/+86
This allows creating a new object (e.g. sealed secret) or key using the TPM. Note that the new object/key is not loaded in the TPM after creation.
2023-07-05tpm2: replace magic number in hmac_sensitive initializationDan Streetman1-1/+1
Instead of setting hmac_sensitive.sensitive.data.size to '32' use the actual hash size as set in the hmac_template.
2023-07-05tpm2: move local vars in tpm2_seal() to point of useDan Streetman1-15/+13
No functional change; cosmetic only.
2023-07-05tpm2: add tpm2_load_external()Dan Streetman1-21/+45
This allows loading an external object/key (e.g. an openssl public key) into the TPM.
2023-07-05tpm2: add tpm2_load()Dan Streetman1-24/+45
This function allows loading an object (e.g. a sealed secret) or key into the TPM.
2023-07-05update syscall tables for upcoming v254Lennart Poettering21-1/+22
2023-07-05update hwdb autosuspend data for v254Lennart Poettering1-0/+3
2023-07-05meson: run forgotten 'update-man-rules'Lennart Poettering1-0/+1
2023-07-05TEST-03-JOBS: test indirect PropagatesStopTo=Mike Yuan2-0/+11
2023-07-05core/transaction: correctly skip unneeded operations for PropagatesStopTo=Mike Yuan1-22/+33
Follow-up for 48cb073db81fa73f64bc5aa9a1b81ebf627235fa Break out from LIST_FOREACH correctly if nt == JOB_NOP. Shouldn't have functional changes, just optimization.
2023-07-05test: replace readfp() with read_file()Frantisek Sumsal1-1/+1
ConfigParser.readfp() has been deprecated since Python 3.2 and was dropped completely in Python 3.11.
2023-07-05ukify: measure sbat section tooLuca Boccassi1-1/+1
2023-07-05ukify: enable --sbat for UKIs tooLuca Boccassi3-33/+58
For confidential computing they want to be able to revoke initrds too, so allow passing a specific --sbat section when building a UKI too, not just an addon. Merge it with the stub and kernel sections.
2023-07-05hwdb update for v246-rc1Lennart Poettering12-34634/+40709
2023-07-05hostname-setup: don't pass "true" to a flags parameterLennart Poettering1-1/+1
2023-07-05boot: make LoaderType enum less specialLennart Poettering1-3/+4
Usually (but not always) we use uppercase type naming, and do a typedef for enums like this. Do so here too.
2023-07-05boot: rename entry_count → n_entriesLennart Poettering1-46/+46
While we don't strictly follow the rule, most of our userspace names these fields that count entries in some array n_xyz, hence let's do so in the EFI boot code too, to make things less special.
2023-07-05efi: add a bunch of reported EFI loader/stub feature flagsLennart Poettering4-0/+12
We gained a bunch of new features that deserve reporting to userspace, hence add matching flags for each. This allows userspace to determine if installing addons in the ESP even makes sense. This is inspired by a similar changes in #28057
2023-07-05journal-upload: add missing assertionYu Watanabe1-0/+2
2023-07-05journal-upload: replace deprecated sd_journal_open_container()Yu Watanabe1-7/+4
2023-07-05journal-util: extract journal_open_machine() from journalctlYu Watanabe3-30/+50
2023-07-05sd-journal: introduce SD_JOURNAL_TAKE_DIRECTORY_FD flag for ↵Yu Watanabe3-4/+21
sd_journal_open_directory_fd() If it is called with the flag, then the provided file descriptor will be owned by the sd_journal object, and will be closed in sd_journal_close().
2023-07-05test: change partition label to test if the outdated devlinks are removedYu Watanabe1-9/+11
The change is intended to reproduce the issue #27983, though the original issue is highly racy, and the test does not reproduce it reliably. But, anyway, it is better to change the partition label to test the devlink removal.
2023-07-05sd-device: do not read uevent file in device_clone_with_db()Yu Watanabe1-47/+31
Follow-up for 381f6d4ba5551898e7ff19189485072b94879281. When the function is called, the device may be already removed, and another device has the same syspath. Such situation can occur when a partition removed and another is created. In that case, the sysfs paths of the removed and newly created partitions can be same, but their devnums are different, and thus the database files corresponding to the devices are also different. Fixes #27981.
2023-07-05unit: also condition out systemd-backlight in initrdYu Watanabe1-0/+2
Follow-up for 9173d31dfea5c2b05ff08480972c499cb7aac940. The systemd-backlight@.service also save/restore state but the data is in /var/.
2023-07-05units: condition out a few services in the initrdLennart Poettering5-0/+7
Let's make our units more robust to being added to an initrd: 1. systemd-boot-update only makes sense if sd-boot is available in /usr/ to copy into the ESP. This is generally not the case in initrds, and even if it was, we shouldn't update the ESP from the initrd, but from the host instead. 2. The rfkill services save/restore rfkill state, but that information is only available once /var/ is mounted, which generally happens after the initrd transition. 3. utmp management is partly in /var/, and legacy anyway, hence don't bother with it in the initrd.
2023-07-05test: update test for free area calculation in repartYu Watanabe1-2/+4
2023-07-05repart: fix free area calculationYu Watanabe1-0/+2
Like fdisk_get_last_lba(), fdisk_partition_get_end() return the last sector in the partition. Fixes #28225.
2023-07-05test: add reproducer for issue #28225Yu Watanabe1-0/+80