Tobias Fleig
aea81bc0ff
stub: Add support for .ucode UKI section
...
This commit adds support for loading, measuring and handling a ".ucode"
UKI section. This section is functionally an initrd, intended for
microcode updates. As such it will always be passed to the kernel first.
2024-04-19 05:58:46 -07:00
Antonio Alvarez Feijoo
e2fe5c4b98
boot: fix assignment of ret_* variables in initrd_prepare()
2024-04-18 14:13:38 +02:00
Yu Watanabe
5e485e1aa2
udev: fix assignment of ret_truncated
...
Follow-ups for 089bef6631 .
2024-04-18 08:25:03 +02:00
Yu Watanabe
955d5012e0
blockdev-util: fix typo
...
Follow-up for 33ff155957 .
2024-04-18 13:08:14 +09:00
Yu Watanabe
f846002fa2
Merge pull request #32192 from yuwata/part-scan
...
blockdev-util: fix detection of partscan
2024-04-18 11:38:48 +09:00
Yu Watanabe
d2a0ef6073
Merge pull request #32249 from CodethinkLabs/vmspawn/predicatable_tap_names
...
vmspawn: generate predicatable TAP device names and MAC addresses
2024-04-18 10:26:07 +09:00
Yu Watanabe
33ff155957
blockdev-util: also read 'ext_range' sysattr to check if the partscan is enabled
...
The 'capability' sysattr was deprecated by
https://github.com/torvalds/linux/commit/e81cd5a983bb35dabd38ee472cf3fea1c63e0f23 (v6.3).
2024-04-18 09:48:26 +09:00
Yu Watanabe
705c418f20
sd-device: introduce device_get_sysattr_unsigned_full()
2024-04-18 09:46:57 +09:00
MaxHearnden
bccd7be328
systemctl: allow user to suppress output when no action scheduled ( #32278 )
2024-04-18 09:44:22 +09:00
Winterhuman and Mike Yuan
ad938537ef
journalctl: update help to say "priority range" ( #32323 )
...
Clarify that `-p, --priority=` always treats its option as a priority range, even when given
a single log level per the full man page description.
Co-authored-by: Mike Yuan <me@yhndnzj.com >
2024-04-18 09:43:28 +09:00
Yu Watanabe
258729a3b8
Merge pull request #32308 from yuwata/sd-ndisc-disable-timer-on-recv
...
sd-ndisc: disable one more timer event source
2024-04-18 09:28:16 +09:00
Yu Watanabe
52fb945cb7
Merge pull request #32318 from YHNdnzj/skip-leading-char
...
journal-gatewayd: use skip_leading_chars
2024-04-18 06:18:09 +09:00
Luca Boccassi
b3f548615f
core: rename SoftRebootStartTimestamp -> ShutdownStartTimestamp and generalize
...
Follow-up for 54f86b86ba
2024-04-17 18:19:27 +01:00
Luca Boccassi
8c15bf36e1
manager: serialize current objective
...
So that we can tell what happened before the exec. It is overwritten
shortly after deserialization. Use it to bump the soft reboots counter.
2024-04-17 18:19:27 +01:00
Lennart Poettering
7e16650d83
Merge pull request #32143 from yuwata/magic
...
basic/linux: copy magic.h from kernel to our code
2024-04-17 17:03:48 +02:00
Lennart Poettering
c3d1dbfcdf
Merge pull request #32311 from YHNdnzj/write-ellipsis
...
Some minor cleanup for string-util (ellipsis)
2024-04-17 16:20:51 +02:00
Mike Yuan
ee0373cb80
journal-gatewayd: use skip_leading_chars where appropriate
...
Prompted by c5d6754725
2024-04-17 21:50:22 +08:00
Mike Yuan
3d6d879d26
journal-gatewayd: add missing assertions
2024-04-17 21:50:05 +08:00
Antonio Alvarez Feijoo
c5d6754725
journal-gatewayd: remove duplicate call to startswith()
2024-04-17 21:34:08 +08:00
Mike Yuan
ed67739ad5
core/show-status: use strlen where appropriate
...
We don't use sizeof() outside of array definitions
these days. The compiler should be capable of
optimizing this out.
2024-04-17 17:04:24 +08:00
Mike Yuan
c498b2f7ee
string-util: use mempcpy where appropriate
2024-04-17 17:04:23 +08:00
Yu Watanabe
d723363a86
string-util: use special_glyph() at one more place
...
No functional change, just refactoring.
2024-04-17 17:03:49 +08:00
Yu Watanabe
54a4ffc077
fuzz-ndisc-rs: also test packets with sd-radv
...
Addresses https://github.com/systemd/systemd/pull/32267#discussion_r1566715787 .
Suggested-by: Evgeny Vereshchagin <evvers@ya.ru >
2024-04-17 11:12:42 +03:00
Yu Watanabe
238ed432c3
sd-ndisc: improve debugging logs
2024-04-17 13:23:44 +09:00
Yu Watanabe
31db4c1bd5
sd-ndisc: disable one more timer event source
...
Otherwise, even if we have already received RA, timeout callback will be
called. Currently, networkd mostly does nothing on timeout, hence should
not change any effective behavior.
Follow-up for e7cb80474d .
2024-04-17 13:23:44 +09:00
Bryan Jacobs
12cf745cce
cryptenroll: Use CTAP2.1 credProtect extension
...
When enrolling a new FIDO2 token with a client PIN, this tells the authenticator to require the PIN on all uses.
It also collects a PIN before attempting to create a credential.
Works around #31443 in most (not all) scenarios.
2024-04-17 11:46:22 +09:00
Lennart Poettering
2807a8f93c
journalctl: tighten rules on parsing namespace journal dir suffixes
...
The dot must follow the machine ID immediately, let's check for that.
Also, I think it's generally better to parse the machine ID and then
comparing it, instead of comparing the string representation. That's
more in line how we usually do it, as we parse 128bit IDs generally
case-insensitively.
2024-04-16 12:08:23 +02:00
Lennart Poettering
e1005cae75
journalctl: show human readable text if no namespace is found
...
The common case will be that no namespaces are defined, hence by default
we'd just output "NAMESPACE" and exit, which is very confusing.
Generate a nice message instead, how many of our tools do it. Suppress
it on --quiet however.
2024-04-16 12:08:23 +02:00
Lennart Poettering
edd2b33659
journalctl: add missing --help line for --list-namespaces
...
Follow-up for: #32236 68f66a1713
2024-04-16 12:00:03 +02:00
Mike Yuan
fecea05e15
shared/vpick: also align function params in header
...
Follow-up for 6d8690ecd3
2024-04-16 10:46:50 +02:00
Luca Boccassi
3721f9620c
Merge pull request #32289 from bluca/counter
...
soft-reboot counter follow-ups
2024-04-16 10:44:25 +02:00
Yu Watanabe
78d5bad2f5
Merge pull request #32294 from yuwata/network-generator-creds
...
network-generator: also load drop-ins for networkd.conf from credentials
2024-04-16 16:42:59 +09:00
Yu Watanabe
30d10a08be
Merge pull request #32297 from yuwata/networkctl-cat-without-args
...
networkctl: allow to call 'networkctl cat' without arguments
2024-04-16 16:42:46 +09:00
Yu Watanabe
e188243d1f
network: fix use of wrong flag
...
Fixes a bug introduced by 86a66e9b95 (v255).
2024-04-16 14:17:43 +09:00
Yu Watanabe
78281bd53a
networkctl: allow to call 'networkctl cat' without arguments
...
Then, show networkd.conf and its drop-ins.
2024-04-16 13:31:14 +09:00
Yu Watanabe
e12e16e9f7
network-generator: also copy drop-ins for networkd.conf from credential
...
Follow-up for 1a30285590 .
2024-04-16 12:45:08 +09:00
Yu Watanabe
11fc03dfff
Merge pull request #32103 from yuwata/udev-load-credentials
...
udev: load udev rules from credentials
2024-04-16 11:45:22 +09:00
Yu Watanabe
cc2bcbf605
sd-radv: use ICMP6Packet and sd_ndisc_router_solicit
...
Then, sd-radv can reject invalid Router Solicit messages, e.g. that have
invalid options.
No effective functional change, just refactoring.
2024-04-16 09:59:52 +09:00
Yu Watanabe
8c1f24fb95
sd-radv: introduce sd_ndisc_router_solicit
...
It is not used in this stage, but will be used later in sd-radv.
2024-04-16 09:59:48 +09:00
Yu Watanabe
51be364bbb
udevadm-control: add --load-credentials option
...
When specified, credentials udev.conf.* and udev.rules.* are copied to
the corresponding directories.
2024-04-16 09:45:25 +09:00
Yu Watanabe
7b3048358b
udevadm-control: split out send_control_commands()
...
No functional change, just refactoring and preparation for later
commits.
2024-04-16 09:42:20 +09:00
Yu Watanabe
b2800ec597
udevadm-control: check if control command really specified
...
Previously, 'udevadm control' only checked the number of the arguments.
So, if only `--timeout` is specified, it spuriously did nothing and succeeded.
This makes the command request at least one control command.
2024-04-16 09:42:20 +09:00
Yu Watanabe
6c15a28454
creds-util: move pick_up_credentials() from network-generator
...
The function is quite general, and can be used at other places.
Let's move to our shared library.
2024-04-16 09:42:20 +09:00
Yu Watanabe
a40e495847
network-generator: rename NETWORKD_UNIT_... -> NETWORK_UNIT_...
...
As .link files are used by systemd-udevd, rather than systemd-networkd.
Also, this makes it ends with '/', to follow our recent coding style.
2024-04-16 09:42:20 +09:00
Luca Boccassi
259046cfe8
analyze: show soft-reboot counter next to time deltas
2024-04-16 00:26:05 +01:00
Luca Boccassi
05626b27a0
analyze: reset more timestamps when analyzing soft reboots
...
Follow-up for 7addfba9c4
2024-04-16 00:26:04 +01:00
Luca Boccassi
4a3ecada34
core: use usec_sub_unsigned() to subtract deltas
...
Follow-up for 54f86b86ba
2024-04-16 00:26:04 +01:00
Luca Boccassi
e5689f04dd
test: initialize _cleanup_ variables
...
Otherwise static analysis will complain
2024-04-16 07:55:59 +09:00
Luca Boccassi
091c26ba9d
Merge pull request #32286 from YHNdnzj/vpick-null-result
...
shared/vpick: add missing condition on ret_result
2024-04-15 22:36:12 +02:00
Luca Boccassi
a4328b284e
Merge pull request #32258 from yuwata/network-tc-fix-stack-overflow
...
network/tc: fix stack overflow
2024-04-15 22:34:39 +02:00