Commit Graph
81242 Commits
Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek 718dbdb2ca man: reword the description of "secure pager" handling
The existing description was not *wrong*, but it was a bit muddled. Let's
reorder the text to give a short intro and then describe what the options
actually do and the clear "true" and "false" cases first, and then describe
autodetection.

Related to https://yeswehack.com/vulnerability-center/reports/346802.
2025-05-09 12:38:29 +02:00
Yu Watanabe 37c8a03ebf udevadm-info: parse all arguments before doing anything (#37292) 2025-05-09 14:09:45 +09:00
David Tardon 6cdc63d120 udevadm-info: use string table to parse query type 2025-05-09 12:14:21 +09:00
David Tardon 4ef3019ceb udevadm-info: drop args of stat_device()
They are all static vars now, so can be used directly.
2025-05-09 12:14:21 +09:00
David Tardon 8ea3c1fb9e udevadm-info: shorten the code a bit 2025-05-09 12:14:21 +09:00
David Tardon 31767b92a0 udevadm-info: reject devices passed via opts too
Follow-up-for a6b4b2fa01
2025-05-09 12:14:21 +09:00
David Tardon d89b3004da udevadm-info: split arg. parsing into a separate function 2025-05-09 12:14:16 +09:00
David Tardon 86ff972ac3 udevadm-info: drop superfluous pager_open() call
It's already called in advance in info_main().
2025-05-09 12:10:51 +09:00
David Tardon 5b4d73208e udevadm-info: make arg_pager_flags static 2025-05-09 12:10:51 +09:00
David Tardon cb3f6c9e0d udevadm-info: move static dtor closer to args 2025-05-09 12:10:51 +09:00
Yu Watanabe 1e35d21ab0 udevadm-trigger: parse all arguments before doing anything (#37293) 2025-05-09 12:09:18 +09:00
Yu Watanabe fe927f3dbb udev: enable kill workers timer when processing events stopped (#37382)
This also extends test cases for
`udevadm control --start-exec-queue/--stop-exec-queue`.
2025-05-09 10:42:48 +09:00
David Tardon a63822a7e3 udevadm-trigger: use string table to parse scan type 2025-05-09 09:54:27 +09:00
David Tardon bc995d6764 udevadm-trigger: add prefix to enumeration values 2025-05-09 09:54:27 +09:00
David Tardon a07f40e264 udevadm-trigger: replace home-made key/value splitting function 2025-05-09 09:54:25 +09:00
David Tardon f849e85221 test: extend udevadm coverage test a bit 2025-05-09 09:53:50 +09:00
David Tardon 9925193a76 udevadm: allow key without a value 2025-05-09 09:53:50 +09:00
David Tardon f10206a88e udevadm: move key/value parsing func. to udevadm-util.c 2025-05-09 09:53:50 +09:00
David Tardon 5f0ebd9754 udevadm-trigger: split arg. parsing into a separate function 2025-05-09 09:53:40 +09:00
David Tardon 9b65fb8f34 udevadm-trigger: add vertical space to separate cases 2025-05-09 09:44:56 +09:00
Yu Watanabe 75e906a406 TEST-17-UDEV: extend test cases for udevadm control --start-exec-queue/--stop-exec-queue 2025-05-09 08:54:26 +09:00
Yu Watanabe 9999e8b409 TEST-17-UDEV: drop needless numbering
The subtest was renamed from TEST-17-UDEV.10.sh.
Let's also drop the numbering from function name and interface name.

Follow-up for 40959dcc02.
2025-05-09 08:54:26 +09:00
Yu Watanabe a3d79fc3a0 udev: enable kill workers timer when processing queued events stopped
It is not necessary to keep idle workers so long time in that case.
2025-05-09 08:54:26 +09:00
Mike Yuan df5dd05941 hashmap,prioq: check hash_ops or compare_func is identical to one already set (#37379) 2025-05-08 22:50:38 +02:00
Daan De Meyer dd832c4fed udev-worker: send path to device node of whole disk when it is locked, and one cleanup (#37385) 2025-05-08 08:20:21 +02:00
Itxaka 03eae2a402 boot: add an option to control action after SecureBoot enrollment (#36684)
This PR provides a new option for systemd-boot
`secure-boot-enroll-action` which allows to configure the behavior after
SecureBoot keys are enrolled.

Provides the option to either reboot or power off.

The current behavior is not changed, it will by default reboot as it did
before.

It also provides a small message about the action its going to take with
a small delay so the user can read it.
2025-05-08 13:28:41 +09:00
Yu Watanabe f9550d1182 prioq: make prioq_ensure_put() type safe 2025-05-08 05:58:33 +09:00
Yu Watanabe 4699f0e68a prioq: check if identical compare func is specified if already allocated 2025-05-08 05:58:33 +09:00
Yu Watanabe bc169c4fa2 hashmap: check if identical hash_ops is specified if already allocated 2025-05-08 05:58:33 +09:00
Yu Watanabe 472379925c resolve: use set_put_strdup_full() to specify hash_ops 2025-05-08 05:58:33 +09:00
Yu Watanabe 16c7555e1a core/unit: use the same hash_ops originally used on allocation
See unit_file_build_name_map().
2025-05-08 05:58:33 +09:00
Yu Watanabe 54bbfa007d set: rename _set_ensure_allocated() -> set_ensure_allocated()
Follow-ups for c09ce222b6.
2025-05-08 05:58:33 +09:00
Yu Watanabe f24f70343d network: log_link_message_debug_errno() automatically append %m if necessary
Follow-up for d28746ef55.
Fixes CID#1609753.
2025-05-08 05:57:48 +09:00
Yu Watanabe 22750aa91e udev-worker: notify device node of whole disk to manager when the disk is locked
It is currently unused, but will be used later.
2025-05-08 04:46:01 +09:00
Yu Watanabe 356d44a063 udev-worker: allocate UdevEvent object just before use
No functional change, just refactoring.
2025-05-08 04:46:01 +09:00
Yu Watanabe ecad362d7e man: fix typo
Follow-up for a50fa2a40f.
2025-05-08 03:37:38 +09:00
Yu Watanabe 8449d38d6f boot: Add EDID (#36843)
This adds a couple of custom CHIDs which include panel manufacturer and
product code.
2025-05-08 02:48:00 +09:00
Lennart Poettering 0d5ee894c4 exec-util: make missing agents a gracefull handled issues
Just downgrade the log message in case of ENOENT of agent binaries to
LOG_DEBUG. Do this in order to support distros which split off some
agent bianries into separate optional binaries.

Fixes: #37369
2025-05-08 02:38:47 +09:00
Todd C. Miller ffb6adb763 flush_ports: flush POSIX message queues properly
On Linux, read() on a message queue descriptor returns the message
queue statistics, not the actual message queue data.  We need to use
mq_receive() to drain the queues instead.

Fixes a problem where a POSIX message queue socket unit with messages
in the queue at shutdown time could result in a hang on reboot/shutdown.
2025-05-08 02:37:45 +09:00
Yu Watanabe 676fb42aae units: enable IgnoreOnIsolate=yes on systemd-udevd-kernel.socket
Otherwise, initrd-cleanup.service requests isolation thus the socket
is stopped before switching root, and several early events after
switching root may be lost.
2025-05-08 01:29:53 +09:00
anonymix007 9fed4ec252 analyze-chid: Support EDID CHIDs 2025-05-07 18:52:49 +03:00
anonymix007 907328749f sd-device: Introduce sd_device_get_sysattr_value_with_size() 2025-05-07 18:52:49 +03:00
anonymix007 eec1f041b1 chid: Setup EDID CHIDs 2025-05-07 18:52:49 +03:00
anonymix007 3481f8f86d chid-fundamental: Introduce new CHID types
These are extra types needed to distinguish devices by the installed
display panel
2025-05-07 18:52:49 +03:00
anonymix007 e864741511 boot: Add EDID parsing
Will be used for identifying the currently used display panel
and choosing the appropriate DTB
2025-05-07 18:52:49 +03:00
anonymix007 c453aac65f fundamental: Introduce EDID header parsing 2025-05-07 18:10:51 +03:00
anonymix007 edda8d51f1 boot: Add be16toh, le16toh and le32toh 2025-05-07 18:10:51 +03:00
anonymix007 f504ce8407 fundamental: Move common string constants from basic/string-util.h to string-util-fundamental.h 2025-05-07 18:10:51 +03:00
Yu Watanabe 2e72d3efaf Reduce the number of transitive includes (#37364) 2025-05-07 22:58:09 +09:00
Daan De Meyer decad4826d static-destruct: Reduce transitive includes 2025-05-07 22:04:46 +09:00