]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
2 years agotest: Enable TEST-24-CRYPTSETUP for mkosi 32842/head
Daan De Meyer [Wed, 15 May 2024 11:19:19 +0000 (13:19 +0200)] 
test: Enable TEST-24-CRYPTSETUP for mkosi

Encrypted /var is skipped because meson's limitations make per test
images not really feasible and we can't encrypt /var by default because
it slows down the image build too much.

Co-authored-by: Richard Maw <richard.maw@codethink.co.uk>
2 years agoTEST-24-CRYPTSETUP: Store tokens in /usr
Daan De Meyer [Wed, 15 May 2024 12:00:51 +0000 (14:00 +0200)] 
TEST-24-CRYPTSETUP: Store tokens in /usr

We want to be able to boot with empty /var.

2 years agorepart: Improve error message
Daan De Meyer [Wed, 15 May 2024 14:21:45 +0000 (16:21 +0200)] 
repart: Improve error message

2 years agoMerge pull request #32857 from dtardon/drop-assert
Luca Boccassi [Thu, 16 May 2024 10:04:51 +0000 (12:04 +0200)] 
Merge pull request #32857 from dtardon/drop-assert

Drop invalid asserts

2 years agocore: Skip private /tmp for generators in manager test runs
Daan De Meyer [Wed, 15 May 2024 18:54:33 +0000 (20:54 +0200)] 
core: Skip private /tmp for generators in manager test runs

For manager test runs, the generator output paths are located in
/tmp, which means that if we mount a private /tmp for generators,
we lose all the generated units (actually the generators will just
fail because the directories don't exist, but if they did exist,
we'd still lose all the units).

Let's avoid the problem by skipping the private /tmp for manager
test runs. This also avoids any possible privilege issues with
mounting a private /tmp that might happen in this scenario.

2 years agojournald-server: drop another invalid assert() 32857/head
David Tardon [Thu, 16 May 2024 07:03:40 +0000 (09:03 +0200)] 
journald-server: drop another invalid assert()

config_parse_forward_to_socket() is not used for parsing unit files
either.

Follow-up-for: f31cff849d3db074d0d8157e4117d9b8372c03e8

2 years agojournald-server: drop invalid assert()
David Tardon [Thu, 16 May 2024 06:59:50 +0000 (08:59 +0200)] 
journald-server: drop invalid assert()

config_parse_compress() is not used for parsing unit files, hence unit
is always NULL.

Fixes #32856

Follow-up-for: 6813be2eba24a2f864d5d47326437dbff38cd675

2 years agoMerge pull request #32784 from YHNdnzj/release-version
Luca Boccassi [Wed, 15 May 2024 18:25:59 +0000 (20:25 +0200)] 
Merge pull request #32784 from YHNdnzj/release-version

docs/RELEASE: use meson.version for tags

2 years agohwdb.d/60-keyboard.hwdb: enable Clevo quirk for model V5x0TU
Michał Kopeć [Wed, 15 May 2024 15:33:39 +0000 (17:33 +0200)] 
hwdb.d/60-keyboard.hwdb: enable Clevo quirk for model V5x0TU

Enable the display switch function key quirk for a new model.

Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2 years agosystemctl: fix "applying zero offset to null pointer" UBSan error
Yu Watanabe [Wed, 15 May 2024 15:45:06 +0000 (00:45 +0900)] 
systemctl: fix "applying zero offset to null pointer" UBSan error

Fixes #32837.

2 years agotest/test-rpm-macros.sh: add build directory to pkg-config search path
Radoslav Kolev [Tue, 14 May 2024 09:19:22 +0000 (12:19 +0300)] 
test/test-rpm-macros.sh: add build directory to pkg-config search path

If tests are run during build time, without an already installed
systemd they fail to resolve the sysusersdir and tpmfilesdir pkg-config variables.

2 years agoMerge pull request #32844 from YHNdnzj/mount-defaultdep-followup
Luca Boccassi [Wed, 15 May 2024 16:23:26 +0000 (18:23 +0200)] 
Merge pull request #32844 from YHNdnzj/mount-defaultdep-followup

core/mount: correctly set DefaultDependencies=no for mounts from mountinfo

2 years agoMerge pull request #32818 from keszybz/libsystemd-network-size-check
Luca Boccassi [Wed, 15 May 2024 15:33:22 +0000 (17:33 +0200)] 
Merge pull request #32818 from keszybz/libsystemd-network-size-check

Check packet size in libsystemd-network

2 years agocore/mount: correctly set DefaultDependencies=no for mounts from mountinfo 32844/head
Mike Yuan [Wed, 15 May 2024 13:49:00 +0000 (21:49 +0800)] 
core/mount: correctly set DefaultDependencies=no for mounts from mountinfo

Follow-up for 3c0a1b1e70c1fe6e0b6707fab7dc86b1500d0f82

Before this commit, DefaultDependencies=no is set in
mount_add_extras(). However, when generating mount units
from /proc/self/mountinfo, we don't have a unit in memory
yet, and mount_setup_new_unit() doesn't call into
mount_add_extras().

Fixes #32838

2 years agocore/swap: rename variable 'new' -> 'new_unit'
Mike Yuan [Wed, 15 May 2024 13:52:47 +0000 (21:52 +0800)] 
core/swap: rename variable 'new' -> 'new_unit'

Follow-up for ba31a5018f99864c22dd4e0f10712456c7abc934

'new' is already used as a macro for memory allocation.
Let's avoid the confusion here.

Addresses https://github.com/systemd/systemd/pull/31902#discussion_r1557672858

2 years agoman: fix typo 'ot' -> 'or'
Luca Boccassi [Wed, 15 May 2024 10:57:06 +0000 (11:57 +0100)] 
man: fix typo 'ot' -> 'or'

2 years agocore: Fix assertion in parse_smbios_strings()
Daan De Meyer [Wed, 15 May 2024 10:26:33 +0000 (12:26 +0200)] 
core: Fix assertion in parse_smbios_strings()

2 years agoTEST-08-INITRD: Fix result check
Daan De Meyer [Wed, 15 May 2024 10:32:57 +0000 (12:32 +0200)] 
TEST-08-INITRD: Fix result check

2 years agoMerge pull request #32835 from DaanDeMeyer/test
Daan De Meyer [Wed, 15 May 2024 09:58:22 +0000 (11:58 +0200)] 
Merge pull request #32835 from DaanDeMeyer/test

test: Enable TEST-08-INITRD on mkosi

2 years agotest: Enable TEST-08-INITRD on mkosi 32835/head
Daan De Meyer [Wed, 15 May 2024 08:09:53 +0000 (10:09 +0200)] 
test: Enable TEST-08-INITRD on mkosi

2 years agotest: Rename "shutdown initrd" to "exitrd"
Daan De Meyer [Wed, 15 May 2024 06:48:46 +0000 (08:48 +0200)] 
test: Rename "shutdown initrd" to "exitrd"

2 years agoTEST-64-UDEV-STORAGE: Give higher priority
Daan De Meyer [Wed, 15 May 2024 05:27:00 +0000 (07:27 +0200)] 
TEST-64-UDEV-STORAGE: Give higher priority

Some of the udev storage tests can take quite a while, so let's make
sure they start early enough.

2 years agoTEST-85-NETWORK: Give higher priority
Daan De Meyer [Wed, 15 May 2024 05:26:15 +0000 (07:26 +0200)] 
TEST-85-NETWORK: Give higher priority

Some of the networkd tests can take quite a while, so let's make sure
they start early enough.

2 years agoTEST-21-DFUZZER: Fix priority
Daan De Meyer [Wed, 15 May 2024 06:26:34 +0000 (08:26 +0200)] 
TEST-21-DFUZZER: Fix priority

Tests with higher priority, not lower priority are started first.

2 years agoMerge pull request #32666 from DaanDeMeyer/mkosi-network
Daan De Meyer [Wed, 15 May 2024 05:30:04 +0000 (07:30 +0200)] 
Merge pull request #32666 from DaanDeMeyer/mkosi-network

test: Add TEST-85-NETWORK to run systemd-networkd-tests.py

2 years agoFinalize for v256~rc2 v256-rc2
Luca Boccassi [Tue, 14 May 2024 23:29:01 +0000 (00:29 +0100)] 
Finalize for v256~rc2

2 years agoMerge pull request #32830 from yuwata/home-skel
Luca Boccassi [Tue, 14 May 2024 23:26:15 +0000 (01:26 +0200)] 
Merge pull request #32830 from yuwata/home-skel

home: fix ownership of files copied from skelton directory

2 years agotest: add tests for "homectl --skel" 32830/head
Yu Watanabe [Tue, 14 May 2024 21:34:43 +0000 (06:34 +0900)] 
test: add tests for "homectl --skel"

2 years agoTEST-21-DFUZZER: Fix script name
Daan De Meyer [Tue, 14 May 2024 18:52:28 +0000 (20:52 +0200)] 
TEST-21-DFUZZER: Fix script name

2 years agohome: fix ownership of files copied from skelton directory
Yu Watanabe [Tue, 14 May 2024 21:19:42 +0000 (06:19 +0900)] 
home: fix ownership of files copied from skelton directory

Fixes #32808.

2 years agocore,vconsole-setup: treat locking failure as non-fatal
Zbigniew Jędrzejewski-Szmek [Tue, 14 May 2024 18:00:48 +0000 (20:00 +0200)] 
core,vconsole-setup: treat locking failure as non-fatal

Locking of the tty device and then /dev/console was added to synchronize
vconsole-setup with other writers to the console. But it turns out that often
the locking doesn't work and we carved out various cases where we ignore
failure:
- lack of permissions (in the user manager)
- missing device node

It turns out that there's at least one more failure mode: we get -EIO when the
console is (mis-)configured to point to an invalid device. E.g. in
rhbug#2273069 the reporter has a VM in Proxmox without a virtual console
configured and has 'console=tty console=ttyS0' on the kernel cmdline. I
couldn't reproduce this under libvirt, but failure with EIO has been reported
by at least four users in #30501.

Note that in systemd-vconsole-setup we report this is a hard failure, while
in the manager, we only do a debug line. So it's possible that the failure
also occured there, causing the rest of the setup of the tty to be skipped
without further notice.

Ignore the locking failure, since there's just too many ways it can fail. If we
proceed without a lock, we're back to the situation before we started locking,
which wasn't too bad. OTOH, skipping setup of the console is problematic for
users, and it seems better to try to do the setup without locking.

Fixes https://github.com/systemd/systemd/issues/30501,
https://bugzilla.redhat.com/show_bug.cgi?id=2273069.

2 years agotest: Enable TEST-54-CREDS on mkosi
Daan De Meyer [Tue, 14 May 2024 20:14:27 +0000 (22:14 +0200)] 
test: Enable TEST-54-CREDS on mkosi

2 years agotest: Add TEST-85-NETWORK to run systemd-networkd-tests.py 32666/head
Daan De Meyer [Mon, 6 May 2024 13:23:24 +0000 (15:23 +0200)] 
test: Add TEST-85-NETWORK to run systemd-networkd-tests.py

This adds a testsuite unit to run systemd-networkd-tests.py. This is
mkosi only for now as python is not available in the images set up
by the bash framework. We give the test a lower priority as it takes
a while to run so we want to start it as soon as possible.

2 years agotest: Allow using TEST_MATCH_TESTCASE with systemd-networkd-tests.py
Daan De Meyer [Tue, 14 May 2024 13:22:06 +0000 (15:22 +0200)] 
test: Allow using TEST_MATCH_TESTCASE with systemd-networkd-tests.py

2 years agomkosi: Disable journald rate-limiting
Daan De Meyer [Mon, 13 May 2024 19:19:14 +0000 (21:19 +0200)] 
mkosi: Disable journald rate-limiting

2 years agoMerge pull request #32817 from YHNdnzj/core-varlink
Luca Boccassi [Tue, 14 May 2024 20:40:01 +0000 (22:40 +0200)] 
Merge pull request #32817 from YHNdnzj/core-varlink

core/core-varlink: trivial cleanups

2 years agopo: Update translation files
Weblate [Tue, 14 May 2024 20:06:31 +0000 (22:06 +0200)] 
po: Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/
Translation: systemd/main

2 years agoMerge pull request #32816 from bluca/chores
Luca Boccassi [Tue, 14 May 2024 20:07:40 +0000 (22:07 +0200)] 
Merge pull request #32816 from bluca/chores

Chores for RC2

2 years agotest: Enable TEST-82-SOFTREBOOT on mkosi
Daan De Meyer [Tue, 14 May 2024 18:08:00 +0000 (20:08 +0200)] 
test: Enable TEST-82-SOFTREBOOT on mkosi

2 years agomkosi: Restore job for F40
Zbigniew Jędrzejewski-Szmek [Tue, 14 May 2024 19:02:40 +0000 (21:02 +0200)] 
mkosi: Restore job for F40

This partially reverts ecf8468dd4abbf006cb607d023018edee51c851d.
dist-git was made compatible again with F40.

2 years agoMerge pull request #32812 from DaanDeMeyer/test
Daan De Meyer [Tue, 14 May 2024 18:50:38 +0000 (20:50 +0200)] 
Merge pull request #32812 from DaanDeMeyer/test

test: Only add tpm2.target dependency to TEST-70-TPM2.service

2 years agosysusers: simplify meson config
Zbigniew Jędrzejewski-Szmek [Mon, 13 May 2024 16:53:51 +0000 (18:53 +0200)] 
sysusers: simplify meson config

There were two parts, for templated and non-templated files, and
they were more different than they should be.

2 years agomkosi: Update fedora to latest
Daan De Meyer [Mon, 13 May 2024 13:17:06 +0000 (15:17 +0200)] 
mkosi: Update fedora to latest

We drop the Fedora 40 job as the latest rawhide spec introduced
dependencies that are not available in Fedora 40.

2 years agocore/exec-credential: downgrade warning about missing cred to debug
Zbigniew Jędrzejewski-Szmek [Tue, 14 May 2024 14:19:31 +0000 (16:19 +0200)] 
core/exec-credential: downgrade warning about missing cred to debug

Follow-up for 6b34871f5d3b0729ef125d79dfe2d493f3b52b40.

The general idea is that the list of credentials to load can and will specify
credentials which actually aren't provided, so a warning is too much. Let's
downgrade this to "info". If it turns out to be too noisy, we can downgrade
further in the future.

2 years agotest: rename file with stub functions 32818/head
Zbigniew Jędrzejewski-Szmek [Tue, 14 May 2024 15:59:09 +0000 (17:59 +0200)] 
test: rename file with stub functions

icmp6-util-linux.c sounds like a specialized implementation of the functions in
icmp6-util.c. But it's just a set of stub versions used in tests. Rename the
file to make this more obvious.

2 years agolibsystemd-network: use normal style for error checking
Zbigniew Jędrzejewski-Szmek [Tue, 14 May 2024 16:51:57 +0000 (18:51 +0200)] 
libsystemd-network: use normal style for error checking

We generally use a flat list. The switch stmt was generating excessive
indentation.

2 years agolibsystemd-network: check size of icmpv6 packets
Zbigniew Jędrzejewski-Szmek [Tue, 14 May 2024 16:43:29 +0000 (18:43 +0200)] 
libsystemd-network: check size of icmpv6 packets

Coverity was complaining that we use the received packet size as a loop bound
without checking. This is indeed a bit iffy, because depending on how the host
is configured, the packet could be rather large. Let's refuse anything more
than the standard size early to prevent suspicious activity.

Resolves coverity CID#1534892, CID#1543949.

2 years agolibsystemd-network: remove double initialization
Zbigniew Jędrzejewski-Szmek [Tue, 14 May 2024 16:04:31 +0000 (18:04 +0200)] 
libsystemd-network: remove double initialization

2 years agocore/varlink: make manager_setup_varlink_server static 32817/head
Mike Yuan [Tue, 14 May 2024 16:41:06 +0000 (00:41 +0800)] 
core/varlink: make manager_setup_varlink_server static

Follow-up for 6906c028e83b77b35eaaf87b27d0fe5c6e1984b7

Also, use correct log level for varlink_server_add_interface_many().

2 years agocore/varlink: use FOREACH_ELEMENT more
Mike Yuan [Tue, 14 May 2024 16:44:13 +0000 (00:44 +0800)] 
core/varlink: use FOREACH_ELEMENT more

2 years agotree-wide: 'allows to' -> 'allows one to'
Luca Boccassi [Tue, 14 May 2024 13:38:37 +0000 (14:38 +0100)] 
tree-wide: 'allows to' -> 'allows one to'

As flagged by Lintian

2 years agoTEST-64-UDEV-STORAGE: Fix drive ID 32812/head
Daan De Meyer [Tue, 14 May 2024 16:23:59 +0000 (18:23 +0200)] 
TEST-64-UDEV-STORAGE: Fix drive ID

2 years agoUpdate translation files 32816/head
Luca Boccassi [Tue, 14 May 2024 16:12:04 +0000 (17:12 +0100)] 
Update translation files

ninja -C build systemd-pot
ninja -C build systemd-update-po

2 years agoUpdate syscalls table
Luca Boccassi [Tue, 14 May 2024 16:01:08 +0000 (17:01 +0100)] 
Update syscalls table

ninja -C build update-syscall-tables update-syscall-header

2 years agoUpdate hwdb
Luca Boccassi [Tue, 14 May 2024 16:00:29 +0000 (17:00 +0100)] 
Update hwdb

ninja -C build update-hwdb

2 years agoNEWS: update contributors list
Luca Boccassi [Tue, 14 May 2024 15:58:11 +0000 (16:58 +0100)] 
NEWS: update contributors list

2 years agocgroup-util: allow cg_read_pid() to skip unmapped (zero) pids
Timo Rothenpieler [Sun, 28 Apr 2024 14:27:06 +0000 (16:27 +0200)] 
cgroup-util: allow cg_read_pid() to skip unmapped (zero) pids

2 years agotest: Only add tpm2.target dependency to TEST-70-TPM2.service
Daan De Meyer [Tue, 14 May 2024 13:35:59 +0000 (15:35 +0200)] 
test: Only add tpm2.target dependency to TEST-70-TPM2.service

Let's not add the dependency unless required.

2 years agolibsystemd-network: skip dhcp server test in case of EAFNOSUPPORT
Radoslav Kolev [Tue, 14 May 2024 07:25:49 +0000 (10:25 +0300)] 
libsystemd-network: skip dhcp server test in case of EAFNOSUPPORT

We want to eanble running tests as part of the build, but
our builds run in VMs with networking disabled.

2 years agoMerge pull request #32804 from YHNdnzj/bootspec-modernization
Mike Yuan [Tue, 14 May 2024 12:55:52 +0000 (20:55 +0800)] 
Merge pull request #32804 from YHNdnzj/bootspec-modernization

shared/bootspec: some fixes/modernizations

2 years agoMerge pull request #32766 from DaanDeMeyer/test
Daan De Meyer [Tue, 14 May 2024 12:45:35 +0000 (14:45 +0200)] 
Merge pull request #32766 from DaanDeMeyer/test

Various test improvements

2 years agotest: Run TEST-64-UDEV-STORAGE with mkosi 32766/head
Daan De Meyer [Sun, 12 May 2024 19:27:58 +0000 (21:27 +0200)] 
test: Run TEST-64-UDEV-STORAGE with mkosi

We add a configure script for each subtest to add the required
qemu arguments.

Co-authored-by: Richard Maw <richard.maw@codethink.co.uk>
2 years agomkosi: Mask mdmonitor and isc-dhcp-server services
Daan De Meyer [Tue, 14 May 2024 07:11:51 +0000 (09:11 +0200)] 
mkosi: Mask mdmonitor and isc-dhcp-server services

They always fail and do not ship with proper units so we can't
disable them with presets so we mask them instead.

2 years agoTEST-64-UDEV-STORAGE: Skip LVM subtests on Ubuntu
Daan De Meyer [Mon, 13 May 2024 17:08:42 +0000 (19:08 +0200)] 
TEST-64-UDEV-STORAGE: Skip LVM subtests on Ubuntu

These fail for unknown reasons on Ubuntu. Until someone from Ubuntu
who cares can figure out why, let's skip these tests on Ubuntu.

2 years agoTEST-64-UDEV-STORAGE: Bump timeout for testcase_simultaneous_events_1
Daan De Meyer [Mon, 13 May 2024 15:00:11 +0000 (17:00 +0200)] 
TEST-64-UDEV-STORAGE: Bump timeout for testcase_simultaneous_events_1

The timeout is reliably hit when running tests in mkosi.

2 years agoTEST-64-UDEV-STORAGE: Skip btrfs_basic if btrfs module is not available
Daan De Meyer [Mon, 13 May 2024 14:58:23 +0000 (16:58 +0200)] 
TEST-64-UDEV-STORAGE: Skip btrfs_basic if btrfs module is not available

2 years agoTEST-64-UDEV-STORAGE: Check for tgt and tgtd services
Daan De Meyer [Mon, 13 May 2024 13:08:07 +0000 (15:08 +0200)] 
TEST-64-UDEV-STORAGE: Check for tgt and tgtd services

On Debian/Ubuntu, the unit is named tgt.service instead of tgtd.service,
so let's make sure we take that into account.

On CentOS, tgtd.service is not available, so let's skip the test if we
can't find the service.

2 years agoTEST-64-UDEV-STORAGE: Add missing udevadm settle
Daan De Meyer [Mon, 13 May 2024 13:06:50 +0000 (15:06 +0200)] 
TEST-64-UDEV-STORAGE: Add missing udevadm settle

Otherwise we try to do the check before the udev queue is empty which
will make it fail.

2 years agoTEST-64-UDEV-STORAGE: Use virtio-scsi-pci instead of ahci
Daan De Meyer [Mon, 13 May 2024 13:04:16 +0000 (15:04 +0200)] 
TEST-64-UDEV-STORAGE: Use virtio-scsi-pci instead of ahci

The debian cloud kernel does not support ahci, so let's use
virtio-scsi-pci everywhere instead.

2 years agoTEST-64-UDEV-STORAGE: Use ID based paths
Daan De Meyer [Sun, 12 May 2024 19:26:41 +0000 (21:26 +0200)] 
TEST-64-UDEV-STORAGE: Use ID based paths

2 years agotest: Ignore configure scripts in minimal images
Daan De Meyer [Sun, 12 May 2024 13:16:37 +0000 (15:16 +0200)] 
test: Ignore configure scripts in minimal images

These are always aimed at the system image so ignore any specified
configure scripts in the minimal images.

2 years agotest: Add cmdline field to configure extra kernel command line args
Daan De Meyer [Sun, 12 May 2024 09:13:58 +0000 (11:13 +0200)] 
test: Add cmdline field to configure extra kernel command line args

Configuring extra cmdline arguments as a list is much nicer than
having to pass the --kernel-command-line-extra argument manually.

2 years agotest: Generate basic testsuite services with meson
Daan De Meyer [Sun, 12 May 2024 08:50:47 +0000 (10:50 +0200)] 
test: Generate basic testsuite services with meson

Most of these are identical, let's just generate from a meson
template.

2 years agoTEST-46-HOMED: Simplify service unit
Daan De Meyer [Tue, 14 May 2024 07:20:21 +0000 (09:20 +0200)] 
TEST-46-HOMED: Simplify service unit

Let's remove the unneeded NotifyAccess=all and start the socket
and service in the test itself instead of via the service unit. This
makes the test unit identical to the other test units which will allow
us to autogenerate it in a later commit.

2 years agoTEST-06-SELINUX: Simplify auto-relabeling
Daan De Meyer [Mon, 13 May 2024 10:36:40 +0000 (12:36 +0200)] 
TEST-06-SELINUX: Simplify auto-relabeling

Let's ship a .autorelabel file so we can get rid of
firstboot-autorelabel.service.

2 years agotest: Rename mkosi_args to mkosi-args
Daan De Meyer [Sun, 12 May 2024 20:01:19 +0000 (22:01 +0200)] 
test: Rename mkosi_args to mkosi-args

2 years agotest: Disable tests via 'enabled' field
Daan De Meyer [Sat, 11 May 2024 18:22:10 +0000 (20:22 +0200)] 
test: Disable tests via 'enabled' field

This allows doing other stuff with the test without actually defining
the test, such as generating a service unit automatically.

2 years agotest: Simplify argument/variable names
Daan De Meyer [Sat, 11 May 2024 17:40:03 +0000 (19:40 +0200)] 
test: Simplify argument/variable names

2 years agotest: Rename testsuite-XX units to match test name
Daan De Meyer [Sat, 11 May 2024 17:17:13 +0000 (19:17 +0200)] 
test: Rename testsuite-XX units to match test name

Having these named differently than the test itself mostly creates
unecessary confusion and makes writing logic against the tests harder
so let's rename the testsuite-xx units and scripts to just use the
test name itself.

2 years agotest: Rework integration test definitions
Daan De Meyer [Sat, 11 May 2024 13:55:54 +0000 (15:55 +0200)] 
test: Rework integration test definitions

Let's make this behave more like all the rest of the meson stuff.
This also is the first step to making it a bit more flexible so we
can define integration tests in different ways as will be seen in
the next commits.

2 years agoTEST-01-BASIC: Drop logic to run test without install-tests=true
Daan De Meyer [Mon, 13 May 2024 09:26:58 +0000 (11:26 +0200)] 
TEST-01-BASIC: Drop logic to run test without install-tests=true

We don't support this for any other tests either so let's drop the
support for running TEST-01-BASIC without installing as well to make
the upcoming commit easier to implement.

2 years agomkosi: Update to latest
Daan De Meyer [Sun, 12 May 2024 21:06:07 +0000 (23:06 +0200)] 
mkosi: Update to latest

2 years agocore: Imply DefaultDependencies=no for credential mounts
Daan De Meyer [Tue, 14 May 2024 08:25:33 +0000 (10:25 +0200)] 
core: Imply DefaultDependencies=no for credential mounts

Currently, on soft-reboot, /run/credentials/@system is unmounted
because it has DefaultDependencies=yes and as such will have
Conflicts=umount.target and Before=umount.target. Let's make sure
credential mounts survive soft-reboot by implying DefaultDependencies=no
for credential mounts.

2 years agoshared/bootspec: use FOREACH_ARRAY more 32804/head
Mike Yuan [Tue, 14 May 2024 07:49:54 +0000 (15:49 +0800)] 
shared/bootspec: use FOREACH_ARRAY more

2 years agoshared/bootspec: use isempty where appropriate
Mike Yuan [Tue, 14 May 2024 07:49:21 +0000 (15:49 +0800)] 
shared/bootspec: use isempty where appropriate

2 years agoshared/bootspec: use path_make_absolute where appropriate
Mike Yuan [Tue, 14 May 2024 07:48:15 +0000 (15:48 +0800)] 
shared/bootspec: use path_make_absolute where appropriate

2 years agoshared/bootspec: inline iterator var
Mike Yuan [Tue, 14 May 2024 07:48:50 +0000 (15:48 +0800)] 
shared/bootspec: inline iterator var

Also, do not bump 'line' until the end of the loop.
Otherwise, log_syntax() below logs about the wrong
line number.

2 years agoshared/bootspec: add missing assertions
Mike Yuan [Tue, 14 May 2024 07:50:09 +0000 (15:50 +0800)] 
shared/bootspec: add missing assertions

2 years agosd-event: increase test-event timeout to 120s
Radoslav Kolev [Tue, 14 May 2024 07:39:29 +0000 (10:39 +0300)] 
sd-event: increase test-event timeout to 120s

The test-event test seems to be taking quite a bit more time than
the other 'simple tests', which usually complete in < 1s. In case
of a slower or loaded machine the default 30s timeout is not enough.

2 years agoman: fix typo
Yu Watanabe [Tue, 14 May 2024 09:12:05 +0000 (18:12 +0900)] 
man: fix typo

Follow-up for 7df0297ac5aa784209d4c719c87fdd707a9f34cf.

2 years agodlfcn-util: fix typo
Yu Watanabe [Tue, 14 May 2024 09:10:42 +0000 (18:10 +0900)] 
dlfcn-util: fix typo

Follow-up for 2f6bd11c1a0147f6bd24bce3ed00c3d91c0884e6.

2 years agoTODO: fix typo
Yu Watanabe [Tue, 14 May 2024 09:08:23 +0000 (18:08 +0900)] 
TODO: fix typo

Follow-up for 84bdf71592be032fa4100fb7b0ed0a9345942ece.

2 years agobootctl: fix crash when parsing addon without .cmdline section
Luca Boccassi [Mon, 13 May 2024 23:26:55 +0000 (00:26 +0100)] 
bootctl: fix crash when parsing addon without .cmdline section

Follow-up for 706ca67d3074b2a405ee8fe5de307416e4915b9f

2 years agoupdate TODO
Lennart Poettering [Mon, 13 May 2024 22:40:13 +0000 (16:40 -0600)] 
update TODO

2 years agonetwork: IPv6 Compliance RFC4862: Address Lifetime Expiry (Hosts Only) [v6LC.3.2.2]
Matt Muggeridge [Mon, 13 May 2024 20:30:22 +0000 (06:30 +1000)] 
network: IPv6 Compliance RFC4862: Address Lifetime Expiry (Hosts Only) [v6LC.3.2.2]

RFC 4862 Section 5.5.3, bullet e, sub-bullet 3 applies to existing
addresses, i.e. when address_get() returns success. If the address is
new (i.e. address_get() fails), then we should not be adding 2 hours to
the lifetime_valid_usec. Instead, use the valid_lifetime from the RA's
Prefix Information Option.

This change allows v6LC.3.2.2 to pass. Also verified all v6LC3.2.* tests
pass. This covers all the v6LC tests from Group2: Router Advertisement
Processing and Address Lifetime.

Fixes #32652.

2 years agonetwork: IPv6 Compliance: Router Advertisement Processing, Reachable Time [v6LC.2...
Matt Muggeridge [Mon, 13 May 2024 21:50:51 +0000 (07:50 +1000)] 
network: IPv6 Compliance: Router Advertisement Processing, Reachable Time [v6LC.2.2.15] (#32792)

Previously, RA option fields were being ignored when the Router Lifetime
value was zero. Remove this logic to be compliant with RFC4861.

Extract from: https://www.ietf.org/rfc/rfc4861.html#section-4.2, p.21,
first paragraph:

    The Router Lifetime applies only to
    the router's usefulness as a default router; it
    does not apply to information contained in other
    message fields or options.

This affected IPv6 Conformance test:
    v6LC.2.2.15: Router Advertisement Processing, Reachable Time.

Fixes #31842.

Co-authored-by: Matt Muggeridge <Matt.Muggeridge@hpe.com>
2 years agocurl-glue: catch libcurl attempting to change timeout handler when we destroy a curl...
Lennart Poettering [Sat, 11 May 2024 11:45:44 +0000 (13:45 +0200)] 
curl-glue: catch libcurl attempting to change timeout handler when we destroy a curl context on exit

If we destroy both an event loop and a curl contect object at the same
time, then we get into this weird situation where curl wants us to
reconfigure a timout event source right before destruction, which
sd-event will refuse however, since it is already being shutdown.

Hence, catch that and simply don't bother adjusting the timeout, since
we cannot get back from there anyway.

2 years agomachined: return recognizable error when we try to register the same machine name...
Lennart Poettering [Sat, 11 May 2024 17:54:54 +0000 (19:54 +0200)] 
machined: return recognizable error when we try to register the same machine name twice

2 years agocore/service: remove unnecessary reset of notify_access_override
Mike Yuan [Thu, 9 May 2024 16:29:37 +0000 (00:29 +0800)] 
core/service: remove unnecessary reset of notify_access_override

This already gets reset in service_enter_dead()
and service_start().

2 years agovarlink: rename vsockCid → vSockCid field
Lennart Poettering [Sat, 11 May 2024 17:52:19 +0000 (19:52 +0200)] 
varlink: rename vsockCid → vSockCid field