]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
3 months agoci(lint): temporarily disable ShellCheck for bash-completion 31511/head
Jan Macku [Tue, 27 Feb 2024 14:33:36 +0000 (15:33 +0100)] 
ci(lint): temporarily disable ShellCheck for bash-completion

This commit should be reverted once bash completion is in better shape when it comes to ShellCheck.

3 months agofix(SC2148): add ShellCheck directive to bash completion scripts
Jan Macku [Tue, 27 Feb 2024 13:54:49 +0000 (14:54 +0100)] 
fix(SC2148): add ShellCheck directive to bash completion scripts

3 months agoci(lint): exclude zsh completion from ShellCheck
Jan Macku [Tue, 27 Feb 2024 13:26:52 +0000 (14:26 +0100)] 
ci(lint): exclude zsh completion from ShellCheck

zsh is not supported by ShellCheck

3 months agozsh/_journalctl: complete -g, --case-sensitive, 'help' (pseudo-)facility
Štěpán Němec [Tue, 27 Feb 2024 13:36:57 +0000 (14:36 +0100)] 
zsh/_journalctl: complete -g, --case-sensitive, 'help' (pseudo-)facility

3 months agoupdate TODO
Lennart Poettering [Tue, 27 Feb 2024 13:40:31 +0000 (14:40 +0100)] 
update TODO

3 months agosysext: fix typo
Yu Watanabe [Tue, 27 Feb 2024 04:28:02 +0000 (13:28 +0900)] 
sysext: fix typo

3 months agoMerge pull request #31000 from flatcar-hub/krnowak/mutable-overlays
Luca Boccassi [Mon, 26 Feb 2024 16:17:11 +0000 (16:17 +0000)] 
Merge pull request #31000 from flatcar-hub/krnowak/mutable-overlays

systemd-sysext: Implement optional mutability for extensions

3 months agoMerge pull request #31458 from poettering/vmspawn-ptyfwd
Luca Boccassi [Mon, 26 Feb 2024 15:44:50 +0000 (15:44 +0000)] 
Merge pull request #31458 from poettering/vmspawn-ptyfwd

vmspawn: implement TTY logic via ptyfwd

3 months agoMerge pull request #31480 from rpigott/dnssec-maxwork
Luca Boccassi [Mon, 26 Feb 2024 12:26:36 +0000 (12:26 +0000)] 
Merge pull request #31480 from rpigott/dnssec-maxwork

resolved: limit the number of signature validations in a transaction

3 months agonetwork: fix use-after-free in {address,route}_remove_and_cancel()
Yu Watanabe [Mon, 26 Feb 2024 03:09:52 +0000 (12:09 +0900)] 
network: fix use-after-free in {address,route}_remove_and_cancel()

Fixes #31485.

3 months agonspawn: hide ^] hint unless we are interactive mode 31458/head
Lennart Poettering [Fri, 23 Feb 2024 11:30:19 +0000 (12:30 +0100)] 
nspawn: hide ^] hint unless we are interactive mode

The hotkey only works in interactive mode hence don't mislead users
about it.

3 months agovmspawn: use our own ptyfwd code for the console of a VM
Lennart Poettering [Fri, 23 Feb 2024 11:20:55 +0000 (12:20 +0100)] 
vmspawn: use our own ptyfwd code for the console of a VM

Let's make systemd-nspawn use our own ptyfwd logic to handle the TTY by
default.

This adds a new setting --console=, inspired by nspawn's setting of the
same name. If --console=interactive= is used, then we'll do the TTY
dance on our own via ptyfwd, and thus get tinting, our usual hotkey
handling and similar.

Since qemu's own console is useful too, let's keep it around via
--console=native.

FInally, replace the --qemu-gui switch by --console=gui.

3 months agopretty-print: make tinting a bit less aggressive
Lennart Poettering [Fri, 23 Feb 2024 11:20:04 +0000 (12:20 +0100)] 
pretty-print: make tinting a bit less aggressive

3 months agorun: use sd_event_set_signal_exit() at one more place
Lennart Poettering [Fri, 23 Feb 2024 11:19:43 +0000 (12:19 +0100)] 
run: use sd_event_set_signal_exit() at one more place

3 months agonetwork/ndisc: rename Network.ipv6_accept_ra -> Network.ndisc
Yu Watanabe [Fri, 23 Feb 2024 03:41:24 +0000 (12:41 +0900)] 
network/ndisc: rename Network.ipv6_accept_ra -> Network.ndisc

These settings are leated to sd-ndisc and Neighbor Discovery protocol.
Let's use more suitable name.

3 months agoFix: Chuwi UBook X (CWI535) screen rotation matrix
Alexander Zavyalov [Mon, 26 Feb 2024 06:15:02 +0000 (14:15 +0800)] 
Fix: Chuwi UBook X (CWI535) screen rotation matrix

3 months agoukify: Use VERSION_TAG instead of GIT_VERSION
Daan De Meyer [Fri, 23 Feb 2024 15:39:18 +0000 (16:39 +0100)] 
ukify: Use VERSION_TAG instead of GIT_VERSION

GIT_VERSION isn't actually available so use VERSION_TAG instead which
is available.

3 months agoresolved: reduce the maximum nsec3 iterations to 100 31480/head
Ronan Pigott [Sun, 25 Feb 2024 07:23:32 +0000 (00:23 -0700)] 
resolved: reduce the maximum nsec3 iterations to 100

According to RFC9267, the 2500 value is not helpful, and in fact it can
be harmful to permit a large number of iterations. Combined with limits
on the number of signature validations, I expect this will mitigate the
impact of maliciously crafted domains designed to cause excessive
cryptographic work.

3 months agoresolved: limit the number of signature validations in a transaction
Ronan Pigott [Sun, 25 Feb 2024 01:21:24 +0000 (18:21 -0700)] 
resolved: limit the number of signature validations in a transaction

It has been demonstrated that tolerating an unbounded number of dnssec
signature validations is a bad idea. It is easy for a maliciously
crafted DNS reply to contain as many keytag collisions as desired,
causing us to iterate every dnskey and signature combination in vain.

The solution is to impose a maximum number of validations we will
tolerate. While collisions are not hard to craft, I still expect they
are unlikely in the wild so it should be safe to pick fairly small
values.

Here two limits are imposed: one on the maximum number of invalid
signatures encountered per rrset, and another on the total number of
validations performed per transaction.

3 months agoMerge pull request #31490 from yuwata/network-varlink-cleanups
Yu Watanabe [Mon, 26 Feb 2024 06:12:12 +0000 (15:12 +0900)] 
Merge pull request #31490 from yuwata/network-varlink-cleanups

network/varlink: several trivial cleanups

3 months agovarlink/network: reindent methods 31490/head
Yu Watanabe [Mon, 26 Feb 2024 04:42:01 +0000 (13:42 +0900)] 
varlink/network: reindent methods

3 months agonetwork/varlink: downgrade log level about failure in getting netns ID
Yu Watanabe [Mon, 26 Feb 2024 02:30:34 +0000 (11:30 +0900)] 
network/varlink: downgrade log level about failure in getting netns ID

3 months agoformat-table: replace "(size_t) -1" with SIZE_MAX
Yu Watanabe [Mon, 26 Feb 2024 01:37:32 +0000 (10:37 +0900)] 
format-table: replace "(size_t) -1" with SIZE_MAX

3 months agoMerge pull request #31440 from yuwata/sd-ndisc-sd-radv-cleanups
Luca Boccassi [Sun, 25 Feb 2024 13:07:53 +0000 (13:07 +0000)] 
Merge pull request #31440 from yuwata/sd-ndisc-sd-radv-cleanups

sd-ndisc,sd-radv: several trivial cleanups

3 months agoin-addr-util: introduce in{4,6}_addr_is_multicast()
Yu Watanabe [Fri, 23 Feb 2024 04:12:57 +0000 (13:12 +0900)] 
in-addr-util: introduce in{4,6}_addr_is_multicast()

3 months agoicmp6-util: make icmp6_receive() refuse packets without IPv6 sender address
Yu Watanabe [Thu, 22 Feb 2024 05:28:52 +0000 (14:28 +0900)] 
icmp6-util: make icmp6_receive() refuse packets without IPv6 sender address

Previously, the function supports packets without IPv6 sender address
for unit tests. However, now unit tests use their own version of
icmp6_receive(). Hence, let's make the check more strict.

3 months agosd-ndisc: make callback takes arbitrary type of message
Yu Watanabe [Wed, 14 Feb 2024 11:38:12 +0000 (20:38 +0900)] 
sd-ndisc: make callback takes arbitrary type of message

No functional change. Preparation for supporting Neighbor Advertisement
message.

3 months agonetwork/ndisc: drop all configurations without lifetime on stop
Yu Watanabe [Fri, 23 Feb 2024 03:02:46 +0000 (12:02 +0900)] 
network/ndisc: drop all configurations without lifetime on stop

As we call ndisc_drop_outdated() with USEC_INFINITY on stop.

3 months agodocs: update link for Arch Linux bugtracker
Mike Yuan [Sun, 25 Feb 2024 04:48:49 +0000 (12:48 +0800)] 
docs: update link for Arch Linux bugtracker

3 months agoMerge pull request #31472 from YHNdnzj/systemctl-pidref
Mike Yuan [Sat, 24 Feb 2024 22:54:14 +0000 (06:54 +0800)] 
Merge pull request #31472 from YHNdnzj/systemctl-pidref

systemctl: generalize GetUnitByPIDFD handling

3 months agonetwork: use FOREACH_STRING()
Yu Watanabe [Sat, 24 Feb 2024 05:25:54 +0000 (14:25 +0900)] 
network: use FOREACH_STRING()

3 months agodocs/CODING_STYLE: fix typo (CLONE_VORK -> VFORK)
Mike Yuan [Sat, 24 Feb 2024 05:26:19 +0000 (13:26 +0800)] 
docs/CODING_STYLE: fix typo (CLONE_VORK -> VFORK)

3 months agosystemctl-show: use lookup_unit_by_pidref too 31472/head
Mike Yuan [Sat, 24 Feb 2024 01:39:32 +0000 (09:39 +0800)] 
systemctl-show: use lookup_unit_by_pidref too

Follow-up for e0e7bc8223c3f28fcb48db9f0f003d9f03ca46d7

This allows us to pin the process locally when GetUnitByPIDFD
is not available, just like what we have been doing for
'systemctl whoami'. Also, fix looking up remote pid.
We can't use pidfd for those.

3 months agosystemctl: generalize GetUnitByPIDFD handling
Mike Yuan [Sat, 24 Feb 2024 01:01:22 +0000 (09:01 +0800)] 
systemctl: generalize GetUnitByPIDFD handling

3 months agosystemctl-util: use strv_free_and_replace at one more place
Mike Yuan [Sat, 24 Feb 2024 00:55:33 +0000 (08:55 +0800)] 
systemctl-util: use strv_free_and_replace at one more place

3 months agoFallback from pidfd_open on permission errors too
Luca Boccassi [Fri, 23 Feb 2024 21:09:11 +0000 (21:09 +0000)] 
Fallback from pidfd_open on permission errors too

Skip using pidfds if we get a permission denied error.
This can happen with an old policy and a new kernel that uses the
new pidfs filesystem to back pidfds, instead of anonymous inodes,
as the existing policy denies access.

This is already the case for most uses of pidfd_open, like pidref,
but not on these two. Fix them.

3 months agotest: split out {dump,verify}_ra_message() 31440/head
Yu Watanabe [Sun, 18 Feb 2024 17:21:31 +0000 (02:21 +0900)] 
test: split out {dump,verify}_ra_message()

Then, let's not modify the global object.

3 months agosd-radv: several cleanups
Yu Watanabe [Sun, 18 Feb 2024 03:45:48 +0000 (12:45 +0900)] 
sd-radv: several cleanups

- split out radv_setup_recv_event(),
- slightly update log messages,
- use DIV_ROUND_UP(),
- use structured initializer more.

No functional change, just preparation for later commits.

3 months agosd-ndisc: several trivial cleanups
Yu Watanabe [Wed, 14 Feb 2024 06:59:38 +0000 (15:59 +0900)] 
sd-ndisc: several trivial cleanups

- update several log messages,
- use event_reset_time_relative(),
- split out ndisc_setup_recv_event() and ndisc_setup_timer().

No functional change, just refactoring and preparation for later commits.

3 months agoicmp6-util: merge icmp6_bind_router_{solicitation,advertisement}() into icmp6_bind()
Yu Watanabe [Wed, 14 Feb 2024 07:45:55 +0000 (16:45 +0900)] 
icmp6-util: merge icmp6_bind_router_{solicitation,advertisement}() into icmp6_bind()

No functional change, just refactoring.

3 months agohwdb: Add support for Elgato Stream Deck Plus
Georges Basile Stavracas Neto [Fri, 23 Feb 2024 23:04:12 +0000 (20:04 -0300)] 
hwdb: Add support for Elgato Stream Deck Plus

Add support for the following device:

 - ID 0fd9:0084 Elgato Systems GmbH Stream Deck Plus

3 months agodocs: fix typo
Yu Watanabe [Sat, 24 Feb 2024 02:30:39 +0000 (11:30 +0900)] 
docs: fix typo

3 months agoefi: de-inline xmalloc to fix build failure with gcc 12.2 and -O2
Luca Boccassi [Thu, 22 Feb 2024 14:23:06 +0000 (14:23 +0000)] 
efi: de-inline xmalloc to fix build failure with gcc 12.2 and -O2

With meson build --werror --buildtype=plain -Dc_args=" -O2" the build fails:

../src/boot/efi/stub.c: In function ‘load_addons.constprop’:03:06
../src/boot/efi/stub.c:475:40: error: using a dangling pointer to ‘p’ [-Werror=dangling-pointer=]03:06
  475 |                         dt_bases[n_dt] = xmemdup((uint8_t*)loaded_addon->ImageBase + addrs[UNIFIED_SECTION_DTB],03:06
      |                         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~03:06
  476 |                                                  dt_sizes[n_dt]);03:06
      |                                                  ~~~~~~~~~~~~~~~03:06
In file included from ../src/boot/efi/stub.c:20:03:06
../src/boot/efi/util.h:33:15: note: ‘p’ declared here03:06
   33 |         void *p;03:06
      |               ^

De-inline the function and initialize p to make gcc happy.

3 months agoMerge pull request #31464 from poettering/vmspawn-limit-bank
Luca Boccassi [Fri, 23 Feb 2024 22:04:44 +0000 (22:04 +0000)] 
Merge pull request #31464 from poettering/vmspawn-limit-bank

vmspawn: disable all TPM PCR banks, except for SHA256

3 months agoptyfwd: optionally prefix window title with colored dot
Lennart Poettering [Fri, 23 Feb 2024 14:54:22 +0000 (15:54 +0100)] 
ptyfwd: optionally prefix window title with colored dot

in uid0/systemd-run/nspawn we already set a window title with a colorful
unicode dot indicating the changed privileges/execution context. This typically
gets overriden by the shell inside the environment however.

Let's tweak this a bit: when we see the window title OSC ANSI sequence
passing through, let's patch in the unicode dot as a prefix to the
title.

This is super pretty, since it makes sure root sessions via 0ad are
really easily recognizable as such, because the window title carries an
🔴 red dot as prefix then.

3 months agoMerge pull request #31465 from xypron/detect-virt
Luca Boccassi [Fri, 23 Feb 2024 20:50:51 +0000 (20:50 +0000)] 
Merge pull request #31465 from xypron/detect-virt

Detect virtualization on RISC-V

3 months agoman/systemd-sysext.xml: document mutable extensions 31000/head
Thilo Fromm [Fri, 16 Feb 2024 18:29:12 +0000 (19:29 +0100)] 
man/systemd-sysext.xml: document mutable extensions

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
3 months agosignal-util: imply sentinel -1 in sigprocmask_many() + sigset_add_many() args list
Lennart Poettering [Fri, 23 Feb 2024 14:03:49 +0000 (15:03 +0100)] 
signal-util: imply sentinel -1 in sigprocmask_many() + sigset_add_many() args list

3 months agosignal-util: use RET_NERRNO() + RET_GATHER() more
Lennart Poettering [Fri, 23 Feb 2024 13:53:53 +0000 (14:53 +0100)] 
signal-util: use RET_NERRNO() + RET_GATHER() more

3 months agodetect-virt: allow detection via SMBIOS on RISC-V 31465/head
Heinrich Schuchardt [Fri, 23 Feb 2024 16:29:20 +0000 (17:29 +0100)] 
detect-virt: allow detection via SMBIOS on RISC-V

SMBIOS support in QEMU for RISC-V is merged upstream.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
3 months agoupdate TODO 31464/head
Lennart Poettering [Fri, 23 Feb 2024 16:25:38 +0000 (17:25 +0100)] 
update TODO

3 months agovmspawn: disable all PCR banks but SHA256
Lennart Poettering [Fri, 23 Feb 2024 16:23:06 +0000 (17:23 +0100)] 
vmspawn: disable all PCR banks but SHA256

By default swtpm runs with four banks: SHA1, SHA256, SHA384, SHA512.
This means all data that is part of the boot will be hashed four times,
which slows everything down.

Let's restrict things to SHA256 only, which is the one that really
matters. SHA1 is no up to today's standards anyway, and noone really
consumes the other two, hence no point in enabling this.

To disable the banks we need to call swtpm_setup with --pcr-banks. Do
so.

3 months agovmspawn: drop "const" from string we free
Lennart Poettering [Fri, 23 Feb 2024 16:22:34 +0000 (17:22 +0100)] 
vmspawn: drop "const" from string we free

I am a bit surprised this compiled at all...

3 months agodetect-virt: allow detection via device-tree on RISC-V
Heinrich Schuchardt [Fri, 23 Feb 2024 16:25:59 +0000 (17:25 +0100)] 
detect-virt: allow detection via device-tree on RISC-V

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
3 months agoMerge pull request #31455 from keszybz/restore-docs-urls
Lennart Poettering [Fri, 23 Feb 2024 14:59:44 +0000 (15:59 +0100)] 
Merge pull request #31455 from keszybz/restore-docs-urls

Restore docs urls

3 months agoMerge pull request #31456 from poettering/tpm1.2-no-more
Lennart Poettering [Fri, 23 Feb 2024 13:52:20 +0000 (14:52 +0100)] 
Merge pull request #31456 from poettering/tpm1.2-no-more

sd-stub: drop any support for TPM 1.2

3 months agossh-generator: add mention of ssh.authorized_keys.root to man page
Sam Leonard [Fri, 23 Feb 2024 12:04:08 +0000 (12:04 +0000)] 
ssh-generator: add mention of ssh.authorized_keys.root to man page

3 months agoupdate TODO
Lennart Poettering [Fri, 23 Feb 2024 12:20:19 +0000 (13:20 +0100)] 
update TODO

3 months agoMerge pull request #31411 from poettering/build-path
Luca Boccassi [Fri, 23 Feb 2024 11:57:42 +0000 (11:57 +0000)] 
Merge pull request #31411 from poettering/build-path

userdbd,homed,importd,sysupdate,pid1: make it easier to run daemons that have callouts from build dir

3 months agoupdate TODO
Lennart Poettering [Fri, 23 Feb 2024 10:09:08 +0000 (11:09 +0100)] 
update TODO

3 months agoupdate TODO 31456/head
Lennart Poettering [Fri, 23 Feb 2024 10:08:14 +0000 (11:08 +0100)] 
update TODO

3 months agoMerge pull request #31352 from DaanDeMeyer/versioning
Zbigniew Jędrzejewski-Szmek [Fri, 23 Feb 2024 10:07:56 +0000 (11:07 +0100)] 
Merge pull request #31352 from DaanDeMeyer/versioning

Rework meson-vcs-tag.sh

3 months agosd-stub: drop any support for TPM 1.2
Lennart Poettering [Fri, 23 Feb 2024 09:52:16 +0000 (10:52 +0100)] 
sd-stub: drop any support for TPM 1.2

TPM 1.2 is obsolete, and doesn't really provide much security guarantees
given it's build around SHA1 which is not up to today's standards.

The rest of systemd's TPM codebase never supported TPM 1.2 hence let's
drop this partial support in sd-stub too. It has created problems after
all (sd-stub reported the measuements and userspace assumed these were
for TPM2), without bringing any benefits (given that the measurements we
make are not consumed by us anyway, unlike those for TPM 2.0)

let's cut off this old support.

3 months agosd-dhcp,sd-ndisc: drop mistakenly set copyright
Yu Watanabe [Fri, 23 Feb 2024 04:16:23 +0000 (13:16 +0900)] 
sd-dhcp,sd-ndisc: drop mistakenly set copyright

Follow-ups for
  6efa51f8621cf6a44c5d8472aa50142e19452c7f (sd-dhcp-client-id.h),
  97c3506dcd6e16fd285ce383f8fea992e923aa17 (sd-dhcp-duid.h),
  461dbb2fa97b5c03b19462bf0f462c9f96a59f1b (sd-dhcp-option.h),
  dd8ab4a2060ed1dd0ccf1044f221750bd193cd85 (sd-dhcp-server-lease.h),
  ca34b434812f30989aa7d181e7e433815cb70dda (sd-ndisc-protocol.h and sd-ndisc-router.h).

3 months agodocs: drop .md suffixes again 31455/head
Zbigniew Jędrzejewski-Szmek [Fri, 23 Feb 2024 08:56:00 +0000 (09:56 +0100)] 
docs: drop .md suffixes again

3 months agoRevert "docs: use collections to structure the data"
Zbigniew Jędrzejewski-Szmek [Fri, 23 Feb 2024 08:48:47 +0000 (09:48 +0100)] 
Revert "docs: use collections to structure the data"

This reverts commit 5e8ff010a1436d33bbf3c108335af6e0b4ff7a2a.

This broke all the URLs, we can't have that. (And actually, we probably don't
_want_ to make the change either. It's nicer to have all the pages in one
directory, so one doesn't have to figure out to which collection the page
belongs.)

3 months agoci(freezer): use GitHub Markdown magic for messages
Jan Macku [Fri, 23 Feb 2024 08:05:35 +0000 (09:05 +0100)] 
ci(freezer): use GitHub Markdown magic for messages

It should make messages easier to notice.

GitHub docs: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts

3 months agoudev: Add /dev/media/by-path symlinks for media controllers
Max Staudt [Thu, 22 Feb 2024 08:47:36 +0000 (17:47 +0900)] 
udev: Add /dev/media/by-path symlinks for media controllers

Add persistent symlinks for media controller ("mediaX") devices, based
on their ID_PATH udev properties.

For example, if the uvcvideo driver creates /dev/media0, a persistent
name may be:
/dev/media/by-path/pci-0000:04:00.3-usb-0:1:1.0-media-controller

Persistent links are a handy tool to make scripts self-documenting
during development or in tests, as well as less error prone in case of
devices changing enumeration order. For media controllers, one can
alternatively scan through all of them and look for a matching bus_info
in their struct media_device_info, but the links are much handier when
drafting something by hand.

A similar pattern already exists for Video4Linux /dev/videoX devices,
see 60-persistent-v4l.rules for those.

3 months agonetwork: introduce per-interface IP forwarding settings
Yu Watanabe [Tue, 20 Feb 2024 21:20:45 +0000 (06:20 +0900)] 
network: introduce per-interface IP forwarding settings

This deprecates IPForward= setting, which unconditionally controled
the global setting, even though it is a setting in .network file.

Instead, this introduces new IPv4Forwarding= and IPv6Forwarding=
settings both in .network and networkd.conf.
If these settings are specified in a .network file, then the
per-interface forwarding setting will be configured.
If specified in networkd.conf, then the global IP forwarding setting will
be configured.

Closes #30648.

3 months agoREADME: mention fq_codel
zzywysm [Thu, 22 Feb 2024 18:03:06 +0000 (13:03 -0500)] 
README: mention fq_codel

In 2014, systemd started choosing fq_codel as the default_qdisc in order to fight internet bufferbloat.

https://github.com/systemd/systemd/commit/e6c253e363dee77ef7e5c5f44c4ca55cded3fd47
https://github.com/systemd/systemd/commit/fa98c99ea7f7c5bec3962fa52f4d3496a9777024

While the subsequent change made this change no longer trigger warnings if fq_codel wasn't present, it is still recommended to have this enabled.  Add the necessary kernel configuration to the documentation.

3 months agoMerge pull request #31441 from yuwata/sd-ndisc-fix-timer
Luca Boccassi [Thu, 22 Feb 2024 18:48:43 +0000 (18:48 +0000)] 
Merge pull request #31441 from yuwata/sd-ndisc-fix-timer

sd-ndisc: disable timer event source only when a valid RA received

3 months agotest: Extend systemd-sysext tests to cover the mutability feature
Krzesimir Nowak [Thu, 15 Feb 2024 14:40:55 +0000 (15:40 +0100)] 
test: Extend systemd-sysext tests to cover the mutability feature

3 months agosysext: Add --mutable mode flag
Krzesimir Nowak [Thu, 15 Feb 2024 14:16:08 +0000 (15:16 +0100)] 
sysext: Add --mutable mode flag

The flag takes "auto" or "import" or a boolean value.

"auto" causes systemd-sysext to make a decision about mutability of the merged
hierarchy based on existence of the upper directory in
`/var/lib/extensions.mutable/${hierarchy}`.

"import" causes the existing upper dir to be actually used as another lower
dir, which results in read-only merged hierarchy.

True value makes systemd-sysext to create the upper dir if it's missing and to
make the merged hierarchy mutable.

False value makes systemd-sysext to ignore upper dir completely, and create a
read-only merged hierarchy.

The default is false value.

3 months agosysext: Add minimal support for optional mutability for extensions
Krzesimir Nowak [Thu, 15 Feb 2024 16:46:08 +0000 (17:46 +0100)] 
sysext: Add minimal support for optional mutability for extensions

systemd-sysext will check if /var/lib/extensions.mutable/${hierarchy} exists
and use it as an overlayfs upperdir for storing writes. This allows having
mutable hierarchy after merging the extension images.

The implementation is following a proposed update to the Extension Images
specification at https://github.com/uapi-group/specifications/pull/78.

3 months agosysext: Refactor the merge hierarchy code
Krzesimir Nowak [Thu, 15 Feb 2024 14:12:24 +0000 (15:12 +0100)] 
sysext: Refactor the merge hierarchy code

Divide the merge_hierarchy function into code that:

- determines the lower directories for overlayfs

  - determination of lower directories was further split into top, middle and
    bottom directories:

    - bottom - possibly the hierarchy itself

    - middle - hierarchies from extensions

    - top - metadata directory

- mounts the overlayfs using determined directories

- writes information to the metadata directory

- makes the merged hierarchy read-only

3 months agotest: Initial systemd-sysext tests
Krzesimir Nowak [Thu, 15 Feb 2024 14:32:43 +0000 (15:32 +0100)] 
test: Initial systemd-sysext tests

The follow-up commit will refactor some code in systemd-sysext, so add some
tests to make sure that things didn't break. The tests will be later extended
with cases for new features added.

3 months agosysext: Factor out adding overlayfs option
Krzesimir Nowak [Thu, 15 Feb 2024 14:01:20 +0000 (15:01 +0100)] 
sysext: Factor out adding overlayfs option

We will use it later when adding workdir and upperdir options for overlayfs
mount operation.

3 months agosysext: Do not log failed unmount error again
Krzesimir Nowak [Thu, 15 Feb 2024 13:59:19 +0000 (14:59 +0100)] 
sysext: Do not log failed unmount error again

umount_verbose is already doing it for us.

3 months agomount-util: Add a helper for remounting a bind mount
Krzesimir Nowak [Tue, 23 Jan 2024 09:44:23 +0000 (10:44 +0100)] 
mount-util: Add a helper for remounting a bind mount

3 months agoMerge pull request #31445 from keszybz/slow-tests
Luca Boccassi [Thu, 22 Feb 2024 14:14:23 +0000 (14:14 +0000)] 
Merge pull request #31445 from keszybz/slow-tests

Mark more tests as slow

3 months agoMerge pull request #31414 from poettering/bsod-tweaks
Luca Boccassi [Thu, 22 Feb 2024 12:48:38 +0000 (12:48 +0000)] 
Merge pull request #31414 from poettering/bsod-tweaks

bsod: some small bsod tweaks

3 months agodocs: fix typo in page name
Zbigniew Jędrzejewski-Szmek [Thu, 22 Feb 2024 12:01:17 +0000 (13:01 +0100)] 
docs: fix typo in page name

Fixup for 163e2c8346933b13a783ad179129bcc713649e78.

3 months agoMerge pull request #31432 from poettering/vmspawn-qemu-rename
Luca Boccassi [Thu, 22 Feb 2024 11:04:45 +0000 (11:04 +0000)] 
Merge pull request #31432 from poettering/vmspawn-qemu-rename

vmspawn: drop "qemu" word from most switches

3 months agoMerge pull request #31178 from neighbourhoodie/add-old-website-content
Zbigniew Jędrzejewski-Szmek [Thu, 22 Feb 2024 11:04:29 +0000 (12:04 +0100)] 
Merge pull request #31178 from neighbourhoodie/add-old-website-content

Migrate the content of the old website

3 months agotest-nss-hosts: treat negative host lookup as slow 31445/head
Zbigniew Jędrzejewski-Szmek [Thu, 22 Feb 2024 10:35:07 +0000 (11:35 +0100)] 
test-nss-hosts: treat negative host lookup as slow

The negative lookup can be quite slow. On my local network, skipping
this test saves about half of the runtime of test-nss-hosts.

3 months agotest-ukify: skip signing in tests when slow tests are disabled
Zbigniew Jędrzejewski-Szmek [Thu, 22 Feb 2024 10:26:53 +0000 (11:26 +0100)] 
test-ukify: skip signing in tests when slow tests are disabled

I have a large initrd (built with mkosi-initrd) and the test-ukify takes 30 s.
Let's use the usual approach of skipping the slowests tests.

(pytest has marks, and it would be nicer to mark tests with pytest.mark.slow,
and then use "-m 'not slow'" in the meson test invocation. But markers must be
pre-registered, otherwise pytest emits a warning. There are a few ways to
register markers, but they all require "project configuration", but because of
how we invoke pytest, this is hard to do. So let's just use an environment
variable.)

3 months agodocs: use collections to structure the data 31178/head
hulkoba [Tue, 30 Jan 2024 11:57:10 +0000 (12:57 +0100)] 
docs: use collections to structure the data

3 months agodocs: add distributions and mastodon
hulkoba [Mon, 29 Jan 2024 12:20:19 +0000 (13:20 +0100)] 
docs: add distributions and mastodon

3 months agodocs: add Manuals and Documentation for Users and Administrators
hulkoba [Mon, 29 Jan 2024 11:55:10 +0000 (12:55 +0100)] 
docs: add Manuals and Documentation for Users and Administrators

3 months agodocs: add documentation for developers
Mariano Giménez [Tue, 23 Jan 2024 16:44:31 +0000 (17:44 +0100)] 
docs: add documentation for developers

3 months agoadd related packages links
Mariano Giménez [Tue, 23 Jan 2024 15:25:38 +0000 (16:25 +0100)] 
add related packages links

3 months agoadd The systemd for Developers Series pages
Mariano Giménez [Tue, 23 Jan 2024 14:51:29 +0000 (15:51 +0100)] 
add The systemd for Developers Series pages

3 months agoadd administrators blog series links to extra_pages.json
Mariano Giménez [Tue, 23 Jan 2024 11:17:17 +0000 (12:17 +0100)] 
add administrators blog series links to extra_pages.json

3 months agoadd videos and presentations
Mariano Giménez [Tue, 23 Jan 2024 09:38:32 +0000 (10:38 +0100)] 
add videos and presentations

3 months agoadd publications to extra_pages.json
Mariano Giménez [Tue, 23 Jan 2024 08:58:17 +0000 (09:58 +0100)] 
add publications to extra_pages.json

3 months agosd-ndisc: actually refuse RA message from null address 31441/head
Yu Watanabe [Thu, 22 Feb 2024 05:33:29 +0000 (14:33 +0900)] 
sd-ndisc: actually refuse RA message from null address

3 months agosd-ndisc: disable timer event source only when a valid RA received
Yu Watanabe [Thu, 22 Feb 2024 04:59:57 +0000 (13:59 +0900)] 
sd-ndisc: disable timer event source only when a valid RA received

Fixes #31439.

3 months agoMerge pull request #31409 from ssahani/macvlan
Yu Watanabe [Thu, 22 Feb 2024 03:40:54 +0000 (12:40 +0900)] 
Merge pull request #31409 from ssahani/macvlan

netdev: macvlan - Allow to set the broadcast queueing threshold

3 months agotest-network: add test for macvlan BroadcastQueueMulticastLength= and BroadcastQueueT... 31409/head
Susant Sahani [Thu, 22 Feb 2024 00:45:41 +0000 (09:45 +0900)] 
test-network: add test for macvlan BroadcastQueueMulticastLength= and BroadcastQueueThreashold=

3 months agotest-network: use assertIn()
Yu Watanabe [Thu, 22 Feb 2024 00:46:45 +0000 (09:46 +0900)] 
test-network: use assertIn()