]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
5 months agoMerge pull request #32402 from poettering/tpm2-setup-pcrextend-order
Lennart Poettering [Mon, 22 Apr 2024 15:47:51 +0000 (17:47 +0200)] 
Merge pull request #32402 from poettering/tpm2-setup-pcrextend-order

units: order tpm2-setup-early and pcrphase-initrd against each other

5 months agoMerge pull request #32399 from poettering/doc-fixes-256
Lennart Poettering [Mon, 22 Apr 2024 15:41:39 +0000 (17:41 +0200)] 
Merge pull request #32399 from poettering/doc-fixes-256

various documentation fixes (plus minor other work)

5 months agoupdate TODO
Lennart Poettering [Mon, 22 Apr 2024 15:30:06 +0000 (17:30 +0200)] 
update TODO

5 months agonspawn: fix typo
Mike Yuan [Mon, 22 Apr 2024 15:00:22 +0000 (23:00 +0800)] 
nspawn: fix typo

Follow-up for edd3d4d7c2373e0d53b09894ce6405ff697185aa

5 months agonspawn: ensure single-process container running as --user can access credentials
Luca Boccassi [Thu, 14 Mar 2024 23:44:20 +0000 (23:44 +0000)] 
nspawn: ensure single-process container running as --user can access credentials

When starting a container with --user, the new uid will be resolved and switched to
only in the inner child, at the end of the setup, by spawning getent. But the
credentials are set up in the outer child, long before the user is resolvable,
and the directories/files are made only readable by root and read-only, which
means they cannot be changed later and made visible to the user.

When this particular combination is specified, it is obvious the caller wants
the single-process container to be able to use credentials, so make them world
readable only in that specific case.

Fixes https://github.com/systemd/systemd/issues/31794

5 months agoNEWS: mention ExecMainHandoverTimestamp
Luca Boccassi [Mon, 22 Apr 2024 13:26:24 +0000 (14:26 +0100)] 
NEWS: mention ExecMainHandoverTimestamp

5 months agoman: document that IPAccounting= works for system services only 32399/head
Lennart Poettering [Mon, 22 Apr 2024 11:08:22 +0000 (13:08 +0200)] 
man: document that IPAccounting= works for system services only

Fixes: #20356
5 months agoman: be explicit that we don't proxy SO_PEER*, SCM_RIGHTS and co.
Lennart Poettering [Mon, 22 Apr 2024 11:06:48 +0000 (13:06 +0200)] 
man: be explicit that we don't proxy SO_PEER*, SCM_RIGHTS and co.

Fixes: #22744
5 months agoman: document that ReadOnlyPaths= doesn't affect ability to connect to AF_UNIX
Lennart Poettering [Mon, 22 Apr 2024 11:02:08 +0000 (13:02 +0200)] 
man: document that ReadOnlyPaths= doesn't affect ability to connect to AF_UNIX

Fixes: #23470
5 months agoman: document that "systemctl set-environment" cannot be used to unset env vars confi...
Lennart Poettering [Mon, 22 Apr 2024 10:57:38 +0000 (12:57 +0200)] 
man: document that "systemctl set-environment" cannot be used to unset env vars configured via config file

Fixes: #28167
5 months agoman: say explicitly that $LESS + $LESSCHARSET have no effect on less invocations...
Lennart Poettering [Mon, 22 Apr 2024 10:39:30 +0000 (12:39 +0200)] 
man: say explicitly that $LESS + $LESSCHARSET have no effect on less invocations by systemd tools

Fixes: #29479
5 months agoresolved: tighten the rules a bit on valid DNS-SD service identifiers
Lennart Poettering [Mon, 22 Apr 2024 10:32:54 +0000 (12:32 +0200)] 
resolved: tighten the rules a bit on valid DNS-SD service identifiers

Let's insist that the ID is suitable for inclusion in a filename, as one
of the most basic of requirements.

5 months agoresolved: rename DnssdService "name" field to "id"
Lennart Poettering [Mon, 22 Apr 2024 10:30:16 +0000 (12:30 +0200)] 
resolved: rename DnssdService "name" field to "id"

"name" is a bit confusing since this field is *not* the DNS-SD service
identifier, bust just some string derived from the .dnssd filename that
is used as handle for the service. Let's hence give it a better name:
"id".

While we are at it, switch from basename() to path_extract_filename().

5 months agoresolved: rename DnssdService.filename field to .path
Lennart Poettering [Mon, 22 Apr 2024 10:23:03 +0000 (12:23 +0200)] 
resolved: rename DnssdService.filename field to .path

It contains a full path, not just a filename, hence name it
appropriately.

5 months agoman: document missing resolved D-Bus APIs
Lennart Poettering [Mon, 22 Apr 2024 10:02:51 +0000 (12:02 +0200)] 
man: document missing resolved D-Bus APIs

Fixes: #29598
5 months agoman: document that StateDirectory= trumps ProtectSystem=strict explicitly
Lennart Poettering [Mon, 22 Apr 2024 09:48:20 +0000 (11:48 +0200)] 
man: document that StateDirectory= trumps ProtectSystem=strict explicitly

Fixes: #29798
5 months agoman: document explicitly that LogExtraFields= and LogFilterPatterns= are for system...
Lennart Poettering [Mon, 22 Apr 2024 09:37:41 +0000 (11:37 +0200)] 
man: document explicitly that LogExtraFields= and LogFilterPatterns= are for system service only for now

Fixes: #29956
5 months agoman: document explicitly that bind restrictions cannot be escaped by opening a new...
Lennart Poettering [Mon, 22 Apr 2024 09:34:59 +0000 (11:34 +0200)] 
man: document explicitly that bind restrictions cannot be escaped by opening a new netns

And while we are at it reword the introductary sentence a bit to make it
clearer.

Fixes: #30555
5 months agoman: explicitly document the various systemd.journald.max_level_*= kernel cmdline...
Lennart Poettering [Mon, 22 Apr 2024 09:26:42 +0000 (11:26 +0200)] 
man: explicitly document the various systemd.journald.max_level_*= kernel cmdline options

Fixes: #31327
5 months agojournald: bring order of MaxLevelXYZ= setting explanations in sync with listed names
Lennart Poettering [Mon, 22 Apr 2024 09:26:26 +0000 (11:26 +0200)] 
journald: bring order of MaxLevelXYZ= setting explanations in sync with listed names

5 months agoman: explicitly say that BindPaths=/BindReadOnlyPaths= opens a new mount
Lennart Poettering [Mon, 22 Apr 2024 09:18:45 +0000 (11:18 +0200)] 
man: explicitly say that BindPaths=/BindReadOnlyPaths= opens a new mount
namespace

Fixes: #32339
5 months agoman: run update-man-rules again
Lennart Poettering [Mon, 22 Apr 2024 10:03:00 +0000 (12:03 +0200)] 
man: run update-man-rules again

5 months agocore: add ExecMainHandoverTimestamp property recording time-of-execve
Luca Boccassi [Fri, 19 Apr 2024 23:50:16 +0000 (00:50 +0100)] 
core: add ExecMainHandoverTimestamp property recording time-of-execve

Enable the exec_fd logic for Type=notify* services too, and change it
to send a timestamp instead of a '1' byte. Record the timestamp in a
new ExecMainHandoverTimestamp property so that users can track accurately
when control is handed over from systemd to the service payload, so
that latency and startup performance can be trivially and accurately
tracked and attributed.

5 months agounits: merge two After= lines 32402/head
Lennart Poettering [Mon, 22 Apr 2024 13:15:05 +0000 (15:15 +0200)] 
units: merge two After= lines

5 months agotpm2-setup-early: order against pcrphase-initrd
Lennart Poettering [Mon, 22 Apr 2024 12:47:58 +0000 (14:47 +0200)] 
tpm2-setup-early: order against pcrphase-initrd

Right now systemd-tpm2-setup-early and systemd-pcrphase-initrd.service
are not ordered against each other. However, they require the same slow
resource to operate: the TPM2. If we allow them to access the device
simultaneously, the kernel resource manager like has to save/restore TPM
state while they operate, slowing things down further.

hence, let's avoid all this mess, and just order them against each other
so that the shared resource is first used in full by one and then by the
other.

I opted to order systemd-pcrphase-initrd before
systemd-tpm2-setup-early, since there's value in having the former as
early as possible in userspace, to be a good marker for the transition
from kernel to first userspace. I can see no benefit in the opposite
order however.

5 months agopo: Translated using Weblate (Slovenian)
Martin Srebotnjak [Mon, 22 Apr 2024 07:15:09 +0000 (09:15 +0200)] 
po: Translated using Weblate (Slovenian)

Currently translated at 2.1% (5 of 233 strings)

po: Added translation using Weblate (Slovenian)

Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/sl/
Translation: systemd/main

5 months agoMerge pull request #32347 from yuwata/sd-radv-reachable-time
Luca Boccassi [Mon, 22 Apr 2024 12:04:25 +0000 (14:04 +0200)] 
Merge pull request #32347 from yuwata/sd-radv-reachable-time

sd-radv: allow to configure reachable time

5 months agocore: Check for TERM=dumb in show_status()
Daan De Meyer [Sun, 21 Apr 2024 09:21:14 +0000 (11:21 +0200)] 
core: Check for TERM=dumb in show_status()

We shouldn't try to use any ANSI escape sequences if TERM=dumb.
Also, the "\r\n" we output can get interpreted as a double newline
(for example by Github Actions), so let's output just "\n" when
TERM=dumb to clean up the CI logs.

5 months agoMerge pull request #32389 from keszybz/bin-sbin-merge
Luca Boccassi [Mon, 22 Apr 2024 11:07:48 +0000 (13:07 +0200)] 
Merge pull request #32389 from keszybz/bin-sbin-merge

Try PATH without sbin even if compiled with split-bin=true

5 months agotpm2-util: add generic wrapper tpm2_context_new_or_warn() that wrpas tpm2_context_new...
Lennart Poettering [Mon, 22 Apr 2024 07:46:23 +0000 (09:46 +0200)] 
tpm2-util: add generic wrapper tpm2_context_new_or_warn() that wrpas tpm2_context_new and logs about errors

We so far just print a short log message that is not very useful, let's
add some recognizable error codes, and output better log messages if we
can't get TPM stuff to work.

Fixes: #31925
5 months agosd-event: fix fd leak when fd is owned by IO event source
Yu Watanabe [Sun, 21 Apr 2024 20:22:24 +0000 (05:22 +0900)] 
sd-event: fix fd leak when fd is owned by IO event source

When an IO event source owns relevant fd, replacing with a new fd leaks
the previously assigned fd.
===
sd_event_add_io(event, &s, fd, ...);
sd_event_source_set_io_fd_own(s, true);
sd_event_source_set_io_fd(s, new_fd);  <-- The previous fd is not closed.
sd_event_source_unref(s);  <-- new_fd is closed as expected.
===

Without the change, valgrind reports the leak:
==998589==
==998589== FILE DESCRIPTORS: 4 open (3 std) at exit.
==998589== Open file descriptor 4:
==998589==    at 0x4F119AB: pipe2 (in /usr/lib64/libc.so.6)
==998589==    by 0x408830: test_sd_event_source_set_io_fd (test-event.c:862)
==998589==    by 0x403302: run_test_table (tests.h:171)
==998589==    by 0x408E31: main (test-event.c:935)
==998589==
==998589==
==998589== HEAP SUMMARY:
==998589==     in use at exit: 0 bytes in 0 blocks
==998589==   total heap usage: 33,305 allocs, 33,305 frees, 1,283,581 bytes allocated
==998589==
==998589== All heap blocks were freed -- no leaks are possible
==998589==
==998589== For lists of detected and suppressed errors, rerun with: -s
==998589== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

5 months agobuild(deps): bump pkg/arch from `ccc32ea` to `124b1da`
dependabot[bot] [Mon, 22 Apr 2024 09:26:12 +0000 (09:26 +0000)] 
build(deps): bump pkg/arch from `ccc32ea` to `124b1da`

Bumps pkg/arch from `ccc32ea` to `124b1da`.

---
updated-dependencies:
- dependency-name: pkg/arch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
5 months agoman: fix typo
Yu Watanabe [Mon, 22 Apr 2024 09:44:15 +0000 (18:44 +0900)] 
man: fix typo

Follow-ups for 418f2dc75564330d4ff6c86193f4a3c8ffbb1f1b.

5 months agotest-network: add test for [IPv6SendRA] ReachableTimeSec= and RetransmitSec= 32347/head
Yu Watanabe [Wed, 21 Feb 2024 05:27:29 +0000 (14:27 +0900)] 
test-network: add test for [IPv6SendRA] ReachableTimeSec= and RetransmitSec=

5 months agoman: slightly rephrase RetransmitSec= setting
Yu Watanabe [Sat, 20 Apr 2024 05:41:45 +0000 (14:41 +0900)] 
man: slightly rephrase RetransmitSec= setting

5 months agonetwork/radv: introduce ReachableTimeSec= setting
Yu Watanabe [Wed, 21 Feb 2024 05:08:57 +0000 (14:08 +0900)] 
network/radv: introduce ReachableTimeSec= setting

To make the reachable time in the RA header sent by networkd
configurable.

5 months agosd-radv: allow to configure reachable time in RA header
Yu Watanabe [Wed, 21 Feb 2024 05:01:15 +0000 (14:01 +0900)] 
sd-radv: allow to configure reachable time in RA header

5 months agoMerge pull request #32391 from DaanDeMeyer/optimization
Luca Boccassi [Mon, 22 Apr 2024 09:21:04 +0000 (11:21 +0200)] 
Merge pull request #32391 from DaanDeMeyer/optimization

mkosi: Add environment variable to set the optimization level

5 months agoMerge pull request #31987 from flatcar-hub/krnowak/usr-perm-check
Lennart Poettering [Mon, 22 Apr 2024 09:14:35 +0000 (11:14 +0200)] 
Merge pull request #31987 from flatcar-hub/krnowak/usr-perm-check

sysext: Fix issues with merged hierarchy mode

5 months agoMerge pull request #32387 from DaanDeMeyer/unit-test-fixes
Daan De Meyer [Mon, 22 Apr 2024 08:51:45 +0000 (10:51 +0200)] 
Merge pull request #32387 from DaanDeMeyer/unit-test-fixes

Various unit test improvements

5 months agomkosi: Explicitly disable fortify for debian/ubuntu 32391/head
Daan De Meyer [Mon, 22 Apr 2024 08:49:32 +0000 (10:49 +0200)] 
mkosi: Explicitly disable fortify for debian/ubuntu

We do the same for the other distributions, so let's do so for
debian/ubuntu as well.

5 months agoNEWS: reword a few sentences
Zbigniew Jędrzejewski-Szmek [Mon, 22 Apr 2024 08:49:09 +0000 (10:49 +0200)] 
NEWS: reword a few sentences

5 months agomkosi: Use awk to avoid dpkg-buildpackage warning
Daan De Meyer [Mon, 22 Apr 2024 08:48:52 +0000 (10:48 +0200)] 
mkosi: Use awk to avoid dpkg-buildpackage warning

Let's strip unnecessary whitespace to avoid a dpkg-buildpackage
warning.

5 months agomkosi: Add environment variable to set the optimization level
Daan De Meyer [Mon, 22 Apr 2024 07:32:35 +0000 (09:32 +0200)] 
mkosi: Add environment variable to set the optimization level

5 months agosd-path: rename output param 32389/head
Zbigniew Jędrzejewski-Szmek [Mon, 22 Apr 2024 07:55:17 +0000 (09:55 +0200)] 
sd-path: rename output param

As requested in review.

5 months agoTry path without sbin even if compiled with split-bin=true
Zbigniew Jędrzejewski-Szmek [Thu, 18 Apr 2024 14:11:06 +0000 (16:11 +0200)] 
Try path without sbin even if compiled with split-bin=true

I'm working on the transition to merged sbin in Fedora. While the transition is
happening (and probably for a while after), we need to compile systemd with
split-bin=true to support systems upgraded from previous versions. But when the
system has been upgraded and already has /usr/sbin that is a symlink, be nice
and give $PATH without sbin.

We check for both /usr/sbin and /usr/local/sbin. If either exists and is not a
symlink to ./bin, we retain previous behaviour. This means that if both are
converted, we get the same behaviour as split-bin=false, and otherwise we
get the same behaviour as before.

sd-path uses the same logic. This is not a hot path, so I got rid of the nulstr
macros that duplicated the logic.

5 months agotest: Don't allocate scope if already running in unit with delegated cgroup 32387/head
Daan De Meyer [Sun, 21 Apr 2024 16:31:53 +0000 (18:31 +0200)] 
test: Don't allocate scope if already running in unit with delegated cgroup

If we're already running in a unit with delegation turned on, let's
skip allocation of a scope unit and cgroup subroot. This allows journald
to correctly attribute the logs of all subprocesses spawned by tests such
as test-execute to the test-execute service when the test is running in a service.

5 months agotest: Use log_setup()
Daan De Meyer [Sun, 21 Apr 2024 16:29:43 +0000 (18:29 +0200)] 
test: Use log_setup()

Specifically, this will make tests log to the journal if stderr is
connected to the journal. This means we get proper log priorities
and such compared to if we just logged to stderr.

5 months agotest-execute: Use new assertion macros
Daan De Meyer [Sun, 21 Apr 2024 12:22:19 +0000 (14:22 +0200)] 
test-execute: Use new assertion macros

5 months agotest: Add ASSERT_ERROR() and ASSERT_ERROR_ERRNO()
Daan De Meyer [Sun, 21 Apr 2024 12:16:08 +0000 (14:16 +0200)] 
test: Add ASSERT_ERROR() and ASSERT_ERROR_ERRNO()

For when we expect something to fail with a specific error.

5 months agotest: Make sure test_fdset_close_others does not affect logging fds
Daan De Meyer [Sun, 21 Apr 2024 19:21:10 +0000 (21:21 +0200)] 
test: Make sure test_fdset_close_others does not affect logging fds

5 months agotest-bpf-restrict-fs: Add @application to allowed filesystems as well
Daan De Meyer [Sat, 20 Apr 2024 07:44:35 +0000 (09:44 +0200)] 
test-bpf-restrict-fs: Add @application to allowed filesystems as well

We might be booting from virtiofs which is fuse so we need @application
as well.

5 months agotest-bpf-firewall: Skip if ping is not available
Daan De Meyer [Sat, 20 Apr 2024 11:29:00 +0000 (13:29 +0200)] 
test-bpf-firewall: Skip if ping is not available

5 months agoMerge pull request #32386 from DaanDeMeyer/mkosi
Daan De Meyer [Mon, 22 Apr 2024 07:26:59 +0000 (09:26 +0200)] 
Merge pull request #32386 from DaanDeMeyer/mkosi

Various mkosi improvements

5 months agomkosi: Install various system users/groups in opensuse images 32386/head
Daan De Meyer [Sun, 21 Apr 2024 19:37:39 +0000 (21:37 +0200)] 
mkosi: Install various system users/groups in opensuse images

These don't get pulled in automatically and there doesn't seem to
be a "system-users" package so install the ones we need for the
integration tests manually.

5 months agomkosi: Backport Fedora basic users/groups sysusers files to CentOS
Daan De Meyer [Sun, 21 Apr 2024 18:49:14 +0000 (20:49 +0200)] 
mkosi: Backport Fedora basic users/groups sysusers files to CentOS

CentOS does not ship these sysusers dropins which set up basic system
users and groups. Until we can move to CentOS Stream 10, let's add the
dropins ourselves to make sure the base system users/groups are available
on CentOS.

5 months agomkosi: Install procps-ng in all images
Daan De Meyer [Sat, 20 Apr 2024 13:55:34 +0000 (15:55 +0200)] 
mkosi: Install procps-ng in all images

Required for TEST-01-BASIC.

5 months agomkosi: Make sure systemd-libs is updated on Arch
Daan De Meyer [Sat, 20 Apr 2024 12:22:27 +0000 (14:22 +0200)] 
mkosi: Make sure systemd-libs is updated on Arch

The Arch Linux PKGBUILD does not (yet) have versioned dependencies
between the systemd packages, causing systemd-libs to not get updated
to 256-devel if systemd 256-devel is installed. Let's explicitly install
the newer version of systemd-libs as well for now until this problem is
fixed.

5 months agomkosi: Make sure ping is installed
Daan De Meyer [Sat, 20 Apr 2024 11:28:35 +0000 (13:28 +0200)] 
mkosi: Make sure ping is installed

Required for test-bpf-firewall.

5 months agomkosi: Disable rpm package notes
Daan De Meyer [Sat, 20 Apr 2024 07:43:14 +0000 (09:43 +0200)] 
mkosi: Disable rpm package notes

This introduces dependencies on various environment variables set
by rpmbuild which will not be set when rerunning meson inside the
VM/container so let's disable package notes to avoid these dependencies,
as the package notes aren't terribly useful in this scenario anyway.

5 months agomkosi: Make sure serial console line wrapping is re-enabled
Daan De Meyer [Fri, 19 Apr 2024 20:06:26 +0000 (22:06 +0200)] 
mkosi: Make sure serial console line wrapping is re-enabled

5 months agomkosi: Update to latest
Daan De Meyer [Sat, 20 Apr 2024 10:29:48 +0000 (12:29 +0200)] 
mkosi: Update to latest

5 months agoMerge pull request #32372 from yuwata/sd-radv-trivial-cleanups
Luca Boccassi [Sat, 20 Apr 2024 13:24:02 +0000 (15:24 +0200)] 
Merge pull request #32372 from yuwata/sd-radv-trivial-cleanups

sd-radv: several trivial cleanups

5 months agoNEWS: fix typo
Luca Boccassi [Sat, 20 Apr 2024 13:09:48 +0000 (14:09 +0100)] 
NEWS: fix typo

5 months agoMerge pull request #32370 from YHNdnzj/vpick-check-early
Mike Yuan [Sat, 20 Apr 2024 13:02:37 +0000 (21:02 +0800)] 
Merge pull request #32370 from YHNdnzj/vpick-check-early

shared/vpick: some minor cleanups

5 months agoMerge pull request #32359 from poettering/vmspawn-hyperv-enlight
Luca Boccassi [Sat, 20 Apr 2024 12:40:14 +0000 (14:40 +0200)] 
Merge pull request #32359 from poettering/vmspawn-hyperv-enlight

some hyperv related enhancement in detect-virt + vmspawn

5 months agoci: fix systemd-machined component name
Frantisek Sumsal [Sat, 20 Apr 2024 11:52:22 +0000 (13:52 +0200)] 
ci: fix systemd-machined component name

Follow-up for d762f4d52d31c8eb6a6a7e517f107dfe8d443ee8.

5 months agoMerge pull request #32276 from yuwata/network-global-use-domains-setting
Luca Boccassi [Sat, 20 Apr 2024 11:30:00 +0000 (13:30 +0200)] 
Merge pull request #32276 from yuwata/network-global-use-domains-setting

network: introduce protocol-independent UseDomains= setting

5 months agosd-journal: downgrade log message "Unused data (entry_offset==0)"
Yu Watanabe [Sat, 20 Apr 2024 06:20:29 +0000 (15:20 +0900)] 
sd-journal: downgrade log message "Unused data (entry_offset==0)"

This happens when journal is rotated after a data is written but before
an entry that linked to the data is not written yet.
This is neither data corruption, nor program error. Let's downgrade the
log level.

Closes #32153.

5 months agotest: add test case for sd_journal_{get,seek,test}_cursor()
Yu Watanabe [Sat, 20 Apr 2024 06:42:42 +0000 (15:42 +0900)] 
test: add test case for sd_journal_{get,seek,test}_cursor()

For issue #31516.

5 months agoupdate NEWS 32359/head
Lennart Poettering [Sat, 20 Apr 2024 10:09:54 +0000 (12:09 +0200)] 
update NEWS

5 months agoupdate TODO
Lennart Poettering [Fri, 19 Apr 2024 12:59:37 +0000 (14:59 +0200)] 
update TODO

5 months agovmspawn: enable vmgenid for all VMs
Lennart Poettering [Fri, 19 Apr 2024 12:54:12 +0000 (14:54 +0200)] 
vmspawn: enable vmgenid for all VMs

This passes an ID derived from the vmgenid down to all VMs. This is
useful to have an identifier for this VM generation id. We derive it
from the invocation ID, if we have one, otherwise we randomize it.

Eventually we should make use of the vmgenid changing to re-acquire MAC
addresses, DHCP leases as such. Let's for now enable the VMM side of the
concept as first step towards that.

5 months agosd-id128: add an app-specific flavour of the invocation ID too
Lennart Poettering [Fri, 19 Apr 2024 12:47:28 +0000 (14:47 +0200)] 
sd-id128: add an app-specific flavour of the invocation ID too

5 months agovmspawn: add env var that can extend the qemu cmdline
Lennart Poettering [Fri, 19 Apr 2024 12:41:43 +0000 (14:41 +0200)] 
vmspawn: add env var that can extend the qemu cmdline

This is a bit hackish, but really useful sometimes to play around with
some qemu switches.

5 months agovmspawn: enable hyperv enlightenments
Lennart Poettering [Fri, 19 Apr 2024 11:38:38 +0000 (13:38 +0200)] 
vmspawn: enable hyperv enlightenments

THese are generally recommended (and libvirt/gnome-boxes default to them
hence). They are mostly relevant for Windows, but I think it makes sense
to enable them anyway for Linux too, simply to excercise #28001, and
they shouldn't hurt.

5 months agodetect-virt: detect hyperv-enlightened qemu as qemu, not as hyperv
Lennart Poettering [Fri, 19 Apr 2024 11:25:55 +0000 (13:25 +0200)] 
detect-virt: detect hyperv-enlightened qemu as qemu, not as hyperv

CPUID reporting hyperv should be taken with a grain of salt, and we
should prefer other mechanisms then.

Fixes: #28001
5 months agosd-event: fix sd_event_source_get_inotify_path()
Yu Watanabe [Sat, 20 Apr 2024 04:20:46 +0000 (13:20 +0900)] 
sd-event: fix sd_event_source_get_inotify_path()

Follow-ups for 74c4231ce5f6cddabc2500391a8d5fd69e89b79e.

Previously, the path is obtained from the fd, but it is closed in
sd_event_loop() to unpin the filesystem.
So, let's save the path when the event source is created, and make
sd_event_source_get_inotify_path() simply read it.

5 months agoReplaced "machined" label with "machine" #32373
Sarvajith Adyanthaya [Sat, 20 Apr 2024 07:34:12 +0000 (13:04 +0530)] 
Replaced "machined" label with "machine" #32373

5 months agopo: Translated using Weblate (Indonesian)
Andika Triwidada [Sat, 20 Apr 2024 07:36:08 +0000 (09:36 +0200)] 
po: Translated using Weblate (Indonesian)

Currently translated at 100.0% (233 of 233 strings)

Co-authored-by: Andika Triwidada <andika@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/id/
Translation: systemd/main

5 months agonetwork/radv: sd-radv allows to update MAC address without stopping 32372/head
Yu Watanabe [Tue, 16 Apr 2024 02:22:00 +0000 (11:22 +0900)] 
network/radv: sd-radv allows to update MAC address without stopping

5 months agosd-radv: use sd_radv_is_running()
Yu Watanabe [Sat, 20 Apr 2024 05:51:20 +0000 (14:51 +0900)] 
sd-radv: use sd_radv_is_running()

This also drops several unnecessary conditions for checking sd-radv is running
or not in setting options, e.g. home agent or mac address.

5 months agosd-radv: shorten enumerated type definition
Yu Watanabe [Sat, 20 Apr 2024 05:47:04 +0000 (14:47 +0900)] 
sd-radv: shorten enumerated type definition

5 months agotest-network: add test for global UseDomains= setting 32276/head
Yu Watanabe [Mon, 15 Apr 2024 05:10:09 +0000 (14:10 +0900)] 
test-network: add test for global UseDomains= setting

5 months agonetwork: introduce network- and protocol-independent default for UseDomains=
Yu Watanabe [Mon, 15 Apr 2024 05:55:18 +0000 (14:55 +0900)] 
network: introduce network- and protocol-independent default for UseDomains=

Follow-up for fb573007430ab0dbe45517b58837d2fa5cfa1a48.

Prompted by #32273.

5 months agotimedate: handle gracefully if RTC lost time because of power loss
Lennart Poettering [Fri, 19 Apr 2024 17:20:40 +0000 (19:20 +0200)] 
timedate: handle gracefully if RTC lost time because of power loss

Apparently some RTC drivers return EINVAL in that case when we try to
read it. Handle that reasonably gracefully.

Fixes: #31854
5 months agoshared/vpick: check deterministic suffix earlier 32370/head
Mike Yuan [Fri, 19 Apr 2024 23:17:04 +0000 (07:17 +0800)] 
shared/vpick: check deterministic suffix earlier

Follow-up for 421a4ba7e4a26332c271359a7a114a1da7a2afad

5 months agoshared/vpick: flatten errno check
Mike Yuan [Fri, 19 Apr 2024 23:16:24 +0000 (07:16 +0800)] 
shared/vpick: flatten errno check

5 months agoshared/vpick: use strdup_to where appropriate
Mike Yuan [Fri, 19 Apr 2024 23:16:00 +0000 (07:16 +0800)] 
shared/vpick: use strdup_to where appropriate

5 months agoMerge pull request #31872 from tfg13/main
Lennart Poettering [Fri, 19 Apr 2024 21:59:13 +0000 (23:59 +0200)] 
Merge pull request #31872 from tfg13/main

stub+ukify: Add support for UKI .ucode section

5 months agoMerge pull request #31889 from aplanas/fix_pcrlock_stdin
Lennart Poettering [Fri, 19 Apr 2024 21:57:28 +0000 (23:57 +0200)] 
Merge pull request #31889 from aplanas/fix_pcrlock_stdin

pcrlock: support measurement of big files

5 months agoMerge pull request #32346 from yuwata/sd-radv-handle-header-param-gracefully
Luca Boccassi [Fri, 19 Apr 2024 19:14:21 +0000 (21:14 +0200)] 
Merge pull request #32346 from yuwata/sd-radv-handle-header-param-gracefully

sd-radv: handle header param gracefully

5 months agocpio: fix assert
Antonio Alvarez Feijoo [Fri, 19 Apr 2024 14:13:21 +0000 (16:13 +0200)] 
cpio: fix assert

5 months agostub: get uname from image before loading addons
Antonio Alvarez Feijoo [Fri, 19 Apr 2024 09:29:31 +0000 (11:29 +0200)] 
stub: get uname from image before loading addons

Otherwise uname is always NULL before calling `load_addons()`, so it's not being
checked if .uname matches between addons and UKI.

Fixes 68f85761e2eb1fd2243019980a64b174f07432c3

5 months agoNEWS: note that portabled supports vpick too
Luca Boccassi [Fri, 19 Apr 2024 18:35:42 +0000 (19:35 +0100)] 
NEWS: note that portabled supports vpick too

5 months agoMerge pull request #32142 from bluca/portable_vpick
Luca Boccassi [Fri, 19 Apr 2024 18:34:16 +0000 (20:34 +0200)] 
Merge pull request #32142 from bluca/portable_vpick

portable: support vpick

5 months agoMerge pull request #32251 from CodethinkLabs/vmspawn/docs_improvements
Luca Boccassi [Fri, 19 Apr 2024 18:33:05 +0000 (20:33 +0200)] 
Merge pull request #32251 from CodethinkLabs/vmspawn/docs_improvements

vmspawn docs improvements

5 months agoMerge pull request #32365 from poettering/gpt-auto-doc-fix
Zbigniew Jędrzejewski-Szmek [Fri, 19 Apr 2024 16:49:11 +0000 (18:49 +0200)] 
Merge pull request #32365 from poettering/gpt-auto-doc-fix

man: tweak gpt-auto-generator docs a bit

5 months agoman: correct where we look for auxiliary partitions 32365/head
Lennart Poettering [Fri, 19 Apr 2024 16:36:33 +0000 (18:36 +0200)] 
man: correct where we look for auxiliary partitions

We look for the root fs on the device of the booted ESP, and for the
other partitions on the device of the root fs. On EFI systems this
generally boils down to the same, but there are cases where this doesn't
hold, hence document this properly.

Fixes: #31199
5 months agoman: add explicit column for gpt guid value in table
Lennart Poettering [Fri, 19 Apr 2024 16:36:16 +0000 (18:36 +0200)] 
man: add explicit column for gpt guid value in table