]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
3 years agohome: fix heap-use-after-free 21769/head
Yu Watanabe [Tue, 14 Dec 2021 06:38:12 +0000 (15:38 +0900)] 
home: fix heap-use-after-free

`bus_home_emit_remove()` may be called from manager_free() -> home_free().
In that case, manager->bus is already unref()ed.

Fixes #21767.

3 years agohome: clear Manager::bus, ::event, ::homes_by_xxx and so on
Yu Watanabe [Tue, 14 Dec 2021 10:37:27 +0000 (19:37 +0900)] 
home: clear Manager::bus, ::event, ::homes_by_xxx and so on

`home_free()` may try to call some dbus or event related functions.
To prevent that, set those variables NULL.

3 years agopolkit: make bus_verify_polkit_async_registry_free() return Hashmap* with NULL
Yu Watanabe [Tue, 14 Dec 2021 10:36:34 +0000 (19:36 +0900)] 
polkit: make bus_verify_polkit_async_registry_free() return Hashmap* with NULL

3 years agowait-online: also use address state even when operational state is below degraded
Yu Watanabe [Mon, 13 Dec 2021 11:14:06 +0000 (20:14 +0900)] 
wait-online: also use address state even when operational state is below degraded

Closes #21706.

3 years agoshell-completion: Add completion for systemd-analyze critical-chain
Nishal Kulkarni [Tue, 14 Dec 2021 08:43:13 +0000 (14:13 +0530)] 
shell-completion: Add completion for systemd-analyze critical-chain

systemd-analyze critical-chain accepts an optional unit argument,
however currently there's no shell-completion for it
This change provides unit name completion for both bash and zsh.

Closes: #20927
3 years agoFix loading of graphs
acsfer [Tue, 14 Dec 2021 06:25:00 +0000 (07:25 +0100)] 
Fix loading of graphs

3 years agoboot, meson: allow statically linked build
Robert Scheck [Sun, 12 Dec 2021 00:27:03 +0000 (01:27 +0100)] 
boot, meson: allow statically linked build

Build option "link-boot-shared" to build a statically linked bootctl and
systemd-bless-boot by using

  -Dlink-boot-shared=false

on systems with full systemd stack except bootctl and systemd-bless-boot,
such as CentOS/RHEL 9.

3 years agoman: do not install sd-boot man pages when -Dgnu-efi=false is set
Davide Cavalca [Mon, 13 Dec 2021 17:27:20 +0000 (09:27 -0800)] 
man: do not install sd-boot man pages when -Dgnu-efi=false is set

3 years agoman: how to unset CPUQuota=
Sho Iizuka [Mon, 13 Dec 2021 13:53:36 +0000 (22:53 +0900)] 
man: how to unset CPUQuota=

This description will help users who are trying to reset the already configured
CPUQuota= by trying incorrect ways such as CPUQuota=0 or CPUQUota=infinity.

3 years agoMerge pull request #21752 from keszybz/man-creds
Luca Boccassi [Mon, 13 Dec 2021 19:43:37 +0000 (19:43 +0000)] 
Merge pull request #21752 from keszybz/man-creds

Small improvements to systemd-creds output and man page

3 years agoman: make systemd-creds man page a bit easier to read 21752/head
Zbigniew Jędrzejewski-Szmek [Sun, 12 Dec 2021 17:56:07 +0000 (18:56 +0100)] 
man: make systemd-creds man page a bit easier to read

3 years agoshared/creds: print debugging information when something goes wrong
Zbigniew Jędrzejewski-Szmek [Sun, 12 Dec 2021 17:55:36 +0000 (18:55 +0100)] 
shared/creds: print debugging information when something goes wrong

3 years agobuild(deps): bump actions/upload-artifact from 2.2.4 to 2.3.0
dependabot[bot] [Mon, 13 Dec 2021 09:16:09 +0000 (09:16 +0000)] 
build(deps): bump actions/upload-artifact from 2.2.4 to 2.3.0

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2.2.4 to 2.3.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/27121b0bdffd731efa15d66772be8dc71245d074...da838ae9595ac94171fa2d4de5a2f117b3e7ac32)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoMerge pull request #21749 from nabijaczleweli/bashpsko
Luca Boccassi [Mon, 13 Dec 2021 11:11:39 +0000 (11:11 +0000)] 
Merge pull request #21749 from nabijaczleweli/bashpsko

Shebang bash via env

3 years agobuild(deps): bump github/codeql-action from 1.0.25 to 1.0.26
dependabot[bot] [Mon, 13 Dec 2021 09:16:01 +0000 (09:16 +0000)] 
build(deps): bump github/codeql-action from 1.0.25 to 1.0.26

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1.0.25 to 1.0.26.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/546b30f35ae5a3db0e0be1843008c2224f71c3b0...5f532563584d71fdef14ee64d17bafb34f751ce5)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agotest: bump timeout for TEST-50-DISSECT and TEST-67-INTEGRITY
Luca Boccassi [Sun, 12 Dec 2021 23:42:58 +0000 (23:42 +0000)] 
test: bump timeout for TEST-50-DISSECT and TEST-67-INTEGRITY

TEST-67-INTEGRITY times out quite often, and when it passes
it does so a few seconds short of the timeout. It's a slow
qemu test, so bump the timeout.
TEST-50-DISSECT has been reported to fail in the same way
on Debian's infrastructure, again narrowly failing or passing
just short of the timeout.

3 years agoman: reorder item
Zbigniew Jędrzejewski-Szmek [Sun, 12 Dec 2021 16:44:45 +0000 (17:44 +0100)] 
man: reorder item

We said that recovery keys are "similar to regular passphrases"
before intorducing "regular passphrases".

3 years agoman/sd-run: /bin/bash -> bash in -t example 21749/head
наб [Sun, 12 Dec 2021 19:30:26 +0000 (20:30 +0100)] 
man/sd-run: /bin/bash -> bash in -t example

sd-run already does PATH lookup via find_executable_full()

3 years agoman/sd-notify: /bin/bash -> /bin/sh, read -> read -r in example
наб [Sun, 12 Dec 2021 19:28:39 +0000 (20:28 +0100)] 
man/sd-notify: /bin/bash -> /bin/sh, read -> read -r in example

3 years agoChange all fixed-path bash shebangs to /u/b/env bash outside test/
наб [Sun, 12 Dec 2021 19:27:04 +0000 (20:27 +0100)] 
Change all fixed-path bash shebangs to /u/b/env bash outside test/

3 years agoDisable exporting D-Bus Introspection XML if cross-compiling
igo95862 [Sat, 11 Dec 2021 10:59:17 +0000 (13:59 +0300)] 
Disable exporting D-Bus Introspection XML if cross-compiling

This is a soft disable. Passing `dbus-interfaces-dir` build option
will with path or 'yes' enable exports again even when cross
compiling. (maybe your environment will allow to execute
cross compiled binaries)

3 years agoEnable /dev/sgx_vepc access for the group 'sgx'
Jarkko Sakkinen [Sat, 11 Dec 2021 04:39:59 +0000 (06:39 +0200)] 
Enable /dev/sgx_vepc access for the group 'sgx'

Enable /dev/sgx_vepc access for the group 'sgx', which allows KVM-backed VMs
to host Intel Software Guard eXtension (SGX) enclaves. The upcoming QEMU
6.2 uses /dev/sgx_vepc to reserve portions of Enclave Page Cache (EPC) for
VMs. EPC is the reserved physical memory used for hosting enclaves.

3 years agoMerge pull request #21614 from medhefgo/boot-bcd
Zbigniew Jędrzejewski-Szmek [Sun, 12 Dec 2021 08:18:26 +0000 (09:18 +0100)] 
Merge pull request #21614 from medhefgo/boot-bcd

boot: Add BCD store parser

3 years agomeson: Drop meson version compare for fuzz test
Jan Janssen [Sat, 11 Dec 2021 22:08:20 +0000 (23:08 +0100)] 
meson: Drop meson version compare for fuzz test

We are depending on meson >= 0.53.2 now, so this check can be dropped.

3 years agotest: Add BCD unit test 21614/head
Jan Janssen [Fri, 10 Dec 2021 10:55:38 +0000 (11:55 +0100)] 
test: Add BCD unit test

3 years agoboot: Remove unused memmem_safe
Jan Janssen [Thu, 2 Dec 2021 12:16:33 +0000 (13:16 +0100)] 
boot: Remove unused memmem_safe

3 years agoboot: Add BCD store parser
Jan Janssen [Thu, 2 Dec 2021 12:07:23 +0000 (13:07 +0100)] 
boot: Add BCD store parser

This replaces the memmem-based approach of finding a suitable title
for the windows boot manager with one that actually parses the BCD
store. It's probably faster but more importantly, it's more correct.

The memmem approach may detect stale title strings that are still
in the file but unused due to the way registry hives are updated.
This approach also allows us to detect if the BCD store is multi-boot
so that we can fall back on the generic one instead.

3 years agoboot: Make OFFSETOF lowercase
Jan Janssen [Fri, 10 Dec 2021 09:53:35 +0000 (10:53 +0100)] 
boot: Make OFFSETOF lowercase

This is more in line with the userspace offsetof.

3 years agoboot: Add strncasecmpa helper function
Jan Janssen [Thu, 2 Dec 2021 12:06:07 +0000 (13:06 +0100)] 
boot: Add strncasecmpa helper function

3 years agomeson: Fix gnu-efi detection for clang
Jan Janssen [Sat, 11 Dec 2021 12:47:21 +0000 (13:47 +0100)] 
meson: Fix gnu-efi detection for clang

The gnu-efi headers emit some warnings in clang when not compiled with
-ffreestanding. This is normally not an issue for has_header_symbol()
unless meson is run with CFLAGS="-Werror". Note that this differs
from the --werror option, which does not get passed to clang.

Work around this by adding some compile args to the has_header_symbol()
invocation.

3 years agoMerge pull request #21664 from yuwata/network-tunnel-cleanups 21709/head
Zbigniew Jędrzejewski-Szmek [Sat, 11 Dec 2021 16:17:40 +0000 (17:17 +0100)] 
Merge pull request #21664 from yuwata/network-tunnel-cleanups

network: several cleanups for tunnel device

3 years agoMerge pull request #21570 from AdrianVovk/stub-global-creds
Zbigniew Jędrzejewski-Szmek [Sat, 11 Dec 2021 14:59:10 +0000 (15:59 +0100)] 
Merge pull request #21570 from AdrianVovk/stub-global-creds

stub: Load credentials from \loader\credentials\*.cred

3 years agonamespace: allow overriding /run with a TemporaryFileSystem=
Topi Miettinen [Tue, 7 Dec 2021 20:34:17 +0000 (22:34 +0200)] 
namespace: allow overriding /run with a TemporaryFileSystem=

Lower priority of RUN, so that TMPFS and especially the mount flags given with
`TemporaryFileSystem=` are used.

This allows making `/run` private with drop-ins such as:
```
[Service]
BindReadOnlyPaths=/run/systemd:/run/systemd:norbind
TemporaryFileSystem=/run:nodev,noexec,nosuid,rw,size=32k,nr_inodes=10,mode=0755
```

3 years agoMerge pull request #21727 from medhefgo/ld
Zbigniew Jędrzejewski-Szmek [Sat, 11 Dec 2021 14:55:35 +0000 (15:55 +0100)] 
Merge pull request #21727 from medhefgo/ld

ci: Build test with different linkers

3 years agoMerge pull request #20598 from tomty89/order_noauto
Zbigniew Jędrzejewski-Szmek [Sat, 11 Dec 2021 13:06:38 +0000 (14:06 +0100)] 
Merge pull request #20598 from tomty89/order_noauto

fstab-generator, core/mount: Avoid special fs target before dependency only if nofail is used

3 years agoMerge pull request #21731 from yuwata/test-62-bpf-framework
Luca Boccassi [Sat, 11 Dec 2021 10:46:46 +0000 (10:46 +0000)] 
Merge pull request #21731 from yuwata/test-62-bpf-framework

test: fix TEST-62

3 years agomeson: Auto detect efi-ld 21727/head
Jan Janssen [Sat, 11 Dec 2021 10:29:30 +0000 (11:29 +0100)] 
meson: Auto detect efi-ld

3 years agoci: Build test with different linkers
Jan Janssen [Fri, 10 Dec 2021 17:28:33 +0000 (18:28 +0100)] 
ci: Build test with different linkers

3 years agotest: add missing section for Description= 21731/head
Yu Watanabe [Sat, 11 Dec 2021 02:55:03 +0000 (11:55 +0900)] 
test: add missing section for Description=

3 years agotest: fix grepping fixed string starts from hyphen
Yu Watanabe [Sat, 11 Dec 2021 02:54:01 +0000 (11:54 +0900)] 
test: fix grepping fixed string starts from hyphen

Follow-up for 85445fba22b2f81853a3f018ed1f28864cef37fc.

Fixes #21718.

3 years agonetwork-generator: support link6 network configuration
Jonas Jelten [Fri, 10 Dec 2021 23:12:08 +0000 (00:12 +0100)] 
network-generator: support link6 network configuration

this just brings up an interface in order to have IPv6 link local
connectivity.

3 years agoExport systemd-networkd D-Bus XML introspection
igo95862 [Fri, 10 Dec 2021 16:22:23 +0000 (19:22 +0300)] 
Export systemd-networkd D-Bus XML introspection

3 years agostub: Load credentials from \loader\credentials\*.cred 21570/head
Adrian Vovk [Wed, 8 Dec 2021 02:21:40 +0000 (21:21 -0500)] 
stub: Load credentials from \loader\credentials\*.cred

Some types of credentials that a user would want to pass
into the initrd do not depend on the specific kernel/initrd
version. For instance, this can include SSH keys, rootfs
encryption keys, dm-integrity keys, and so on. This
introduces a directory where such credentials can be placed
so that any kernel image will load them

3 years agoMerge pull request #21722 from yuwata/bpf-framework
Zbigniew Jędrzejewski-Szmek [Fri, 10 Dec 2021 16:18:24 +0000 (17:18 +0100)] 
Merge pull request #21722 from yuwata/bpf-framework

build: include BPF_FRAMEWORK in version string

3 years agoMerge pull request #21708 from mrc0mmand/mkosi-ci-improvements
Frantisek Sumsal [Fri, 10 Dec 2021 13:50:55 +0000 (13:50 +0000)] 
Merge pull request #21708 from mrc0mmand/mkosi-ci-improvements

ci: check for failed services after boot

3 years agotest: addresses shell check warning 21722/head
Yu Watanabe [Fri, 10 Dec 2021 11:07:35 +0000 (20:07 +0900)] 
test: addresses shell check warning

This fixes the following warning:
-----
In /github/workspace/test/units/testsuite-62.sh line 39:
KERNEL_MINOR="${KERNEL_VERSION#$KERNEL_MAJOR.}"
                               ^-----------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.

Did you mean:
KERNEL_MINOR="${KERNEL_VERSION#"$KERNEL_MAJOR".}"

3 years agotest: skip TEST-62 if bpf-framework is not supported
Yu Watanabe [Fri, 10 Dec 2021 10:51:23 +0000 (19:51 +0900)] 
test: skip TEST-62 if bpf-framework is not supported

Fixes #21718.

3 years agobuild: include BPF_FRAMEWORK tag in version string
Yu Watanabe [Fri, 10 Dec 2021 10:50:51 +0000 (19:50 +0900)] 
build: include BPF_FRAMEWORK tag in version string

3 years agomeson: use subdir_done() to reduce indent
Yu Watanabe [Fri, 10 Dec 2021 10:50:16 +0000 (19:50 +0900)] 
meson: use subdir_done() to reduce indent

3 years agonetwork: rename SetupState to AdministrativeState
LaserEyess [Fri, 10 Dec 2021 00:28:31 +0000 (19:28 -0500)] 
network: rename SetupState to AdministrativeState

This is more consistent with the terminology used elsewhere. In
particular it is consistent with the name of the property exposed over
dbus for the link state.

3 years agoci: run mkosi in a wrapper 21708/head
Frantisek Sumsal [Thu, 9 Dec 2021 17:03:50 +0000 (18:03 +0100)] 
ci: run mkosi in a wrapper

So we can mitigate (to some degree) the reoccurring "dissect timeout"
issue:

```
Run sudo python3 -m mkosi boot systemd.unit=mkosi-check-and-shutdown.service !quiet systemd.log_level=debug systemd.log_target=console udev.log_level=info systemd.default_standard_output=journal+console
Failed to dissect image '/home/runner/work/systemd/systemd/image.raw': Connection timed out
Error: Process completed with exit code 1.
```

3 years agoci: check for failed services after boot
Frantisek Sumsal [Wed, 8 Dec 2021 18:31:25 +0000 (19:31 +0100)] 
ci: check for failed services after boot

This should, hopefully, catch issues like systemd/systemd#21671
automagically.

3 years agoExport D-Bus interfaces to /usr/share/dbus-1/interfaces
igo95862 [Sat, 24 Jul 2021 07:30:42 +0000 (10:30 +0300)] 
Export D-Bus interfaces to /usr/share/dbus-1/interfaces

Pass -Ddbus-interfaces-dir=no to meson to disable export

Interfaces from:
org.freedesktop.home1
org.freedesktop.hostname1
org.freedesktop.import1
org.freedesktop.locale1
org.freedesktop.LogControl1
org.freedesktop.login1
org.freedesktop.machine1
org.freedesktop.oom1
org.freedesktop.portable1
org.freedesktop.resolve1
org.freedesktop.systemd1
org.freedesktop.timedate1

3 years agomeson: exclude .gitattributes when using install_subdir
Luca Boccassi [Thu, 9 Dec 2021 22:16:19 +0000 (22:16 +0000)] 
meson: exclude .gitattributes when using install_subdir

It picks the whole content of the directory by default, but we don't
want to install .gitattributes files. Add it to all invocations, not
just the ones on subdirs with .gitattributes, so that we don't regress
in the future.

Fixes #21715

3 years agoman: fix typo
Yu Watanabe [Thu, 9 Dec 2021 18:52:45 +0000 (03:52 +0900)] 
man: fix typo

3 years agojournalctl: have -f and -e imply no-value -b
наб [Thu, 9 Dec 2021 19:03:55 +0000 (20:03 +0100)] 
journalctl: have -f and -e imply no-value -b

Both of these take multiple seconds, best-case, to get the last few
entries, but do so instantly with -b

3 years agoshared: avoid x86_64-specific size assertion on x32
Mike Gilbert [Thu, 9 Dec 2021 20:26:33 +0000 (15:26 -0500)] 
shared: avoid x86_64-specific size assertion on x32

Fixes: https://github.com/systemd/systemd/issues/21713
3 years agoman: let's not say we link to raw .rst file v250-rc2
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 18:21:55 +0000 (19:21 +0100)] 
man: let's not say we link to raw .rst file

3 years agoprocess-util: Fix memory leak
Daan De Meyer [Thu, 9 Dec 2021 14:46:13 +0000 (15:46 +0100)] 
process-util: Fix memory leak

3 years agoNEWS: final update before -rc1 v250-rc1
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 14:15:58 +0000 (15:15 +0100)] 
NEWS: final update before -rc1

3 years agoMerge pull request #21704 from keszybz/news-250-2
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 14:10:24 +0000 (15:10 +0100)] 
Merge pull request #21704 from keszybz/news-250-2

Adjust news and version numbers for v250-rc1

3 years agosystemctl: add shutdown --show option
Ludwig Nussel [Wed, 8 Dec 2021 11:48:35 +0000 (12:48 +0100)] 
systemctl: add shutdown --show option

Shows the scheduled shutdown action and time if there's one.

3 years agonetwork: dhcp: make IPServiceType= accept "none" to disable tos in the outgoing packet
Yu Watanabe [Thu, 9 Dec 2021 11:25:12 +0000 (20:25 +0900)] 
network: dhcp: make IPServiceType= accept "none" to disable tos in the outgoing packet

Fixes #9874.

3 years agoMerge pull request #21700 from keszybz/v250-hwdb
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 14:05:19 +0000 (15:05 +0100)] 
Merge pull request #21700 from keszybz/v250-hwdb

Update hwdb

3 years agomkosi: Build Fedora 35 images
Daan De Meyer [Thu, 9 Dec 2021 11:35:23 +0000 (12:35 +0100)] 
mkosi: Build Fedora 35 images

3 years agonetwork: sd-ipv4ll and sd-ipv4acd only support ethernet interfaces
Yu Watanabe [Thu, 9 Dec 2021 07:38:02 +0000 (16:38 +0900)] 
network: sd-ipv4ll and sd-ipv4acd only support ethernet interfaces

The deny list in link_ipv4ll_enabled() are mostly non-ethernet type,
whose link->iftype are not ARPHRD_ETHER, e.g. ARPHRD_NONE for bareudp,
ARPHRD_WIREGURAD for wireguard, ARPHRD_GRE for gre, and so on.

Only the exception is vrf, which is ARPHRD_ETHER, but seems not to
support ARP.

3 years agoMerge pull request #21697 from keszybz/run-more-inodes
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 14:04:16 +0000 (15:04 +0100)] 
Merge pull request #21697 from keszybz/run-more-inodes

Allow more inodes in /dev and /tmp

3 years agomeson: bump numbers for v250-rc1 21704/head
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 12:33:39 +0000 (13:33 +0100)] 
meson: bump numbers for v250-rc1

3 years agoNEWS: add contributors
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 12:31:11 +0000 (13:31 +0100)] 
NEWS: add contributors

3 years agoMerge pull request #21696 from keszybz/openssl-suppress-warnings
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 12:25:14 +0000 (13:25 +0100)] 
Merge pull request #21696 from keszybz/openssl-suppress-warnings

Suppress openssl-3.0 warnings

3 years agoNEWS: fix crucial cultural misappropriation
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 11:53:15 +0000 (12:53 +0100)] 
NEWS: fix crucial cultural misappropriation

3 years agomeson: add missing final newline in jinja2 outputs
Zbigniew Jędrzejewski-Szmek [Wed, 8 Dec 2021 17:00:35 +0000 (18:00 +0100)] 
meson: add missing final newline in jinja2 outputs

I think this might be caused by trim_blocks=True. We were
missing the final newline everywhere.

3 years agoman: bump Fedora version to 35
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 11:43:34 +0000 (12:43 +0100)] 
man: bump Fedora version to 35

Fedora-Cloud-Base-35-1.2.x86_64.qcow2 is again the latest version.

3 years agoNEWS: adjust wording and reorder by category
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 11:30:52 +0000 (12:30 +0100)] 
NEWS: adjust wording and reorder by category

Also wrap stuff to 80 columns, fix some spelling mistakes, and remove some
repetitions in phrasing.

3 years agoMerge pull request #21692 from yuwata/network-wireguard-allow-to-start-ndisc-or-radv
Yu Watanabe [Thu, 9 Dec 2021 10:53:58 +0000 (19:53 +0900)] 
Merge pull request #21692 from yuwata/network-wireguard-allow-to-start-ndisc-or-radv

network: wireguard: allow to start ndisc or radv

3 years agoNEWS: add more entries for v250
Yu Watanabe [Thu, 9 Dec 2021 10:40:28 +0000 (19:40 +0900)] 
NEWS: add more entries for v250

3 years agoNEWS file additions
Daan De Meyer [Thu, 9 Dec 2021 10:28:13 +0000 (11:28 +0100)] 
NEWS file additions

3 years agoBump the max number of inodes for /tmp to a million too 21697/head
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 09:20:46 +0000 (10:20 +0100)] 
Bump the max number of inodes for /tmp to a million too

Fixes #21626. (The bug report talks about /run, but the issue is actually with
/tmp.) People use /tmp for various things that fit in memory, e.g. unpacking
packages, and 400k is not much. Let's raise is a bit.

3 years agohwdb: update for v250 21700/head
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 10:05:15 +0000 (11:05 +0100)] 
hwdb: update for v250

As usual, there are mostly additions of new entries, and some spelling
correction and company renames, no big removals.

3 years agohwdb: ninja -C build update-hwdb-autosuspend
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 10:00:56 +0000 (11:00 +0100)] 
hwdb: ninja -C build update-hwdb-autosuspend

3 years agoRevert "ci: temporarily set -Wno-deprecated-declarations in Packit" 21696/head
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 09:01:58 +0000 (10:01 +0100)] 
Revert "ci: temporarily set -Wno-deprecated-declarations in Packit"

This reverts commit 684e0a560514f9aaf02813f3f6c4a017400c9d51.

The warnigs are not suppressed in the C code.

3 years agoopenssl: supress warnings about functions deprecated by openssl 3.0
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 08:54:02 +0000 (09:54 +0100)] 
openssl: supress warnings about functions deprecated by openssl 3.0

We get warnings for RSA_free(), EC_KEY_free(), EC_KEY_new(), etc. Those
functions are now deprecated and we're supposed to use the new "EVP API" that
is all the rage in openssl 3.0.

With some effort I converted dnssec_rsa_verify_raw() to use the new API.  The
code is significantly longer and, if anything, less readable. The EC code is
more complicated and I assume that the EVP API version will be even more
complex. It is possiblet that I'm missing some way to call the new functions in
a better way, but the documentation is abysmal, so it's really hard to figure
out the best way. Of course there are almost no examples, and the ones that are
there are not terribly useful and are also stubs that don't do interesting
things, don't implement error handling, or memory cleanup. I'll submit my
conversion draft as a separate PR. Maybe somebody who knows openssl better
will pick it up and write a proper solution.

For now, let's just use the existing code, but suppress the warnings. The
new version just came out, so it's unlikely that the deprecated functions will
be removed any time soon.

Fixes #21666.

3 years agoBump the max number of inodes for /dev to a million
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 09:09:17 +0000 (10:09 +0100)] 
Bump the max number of inodes for /dev to a million

4c733d3046942984c5f73b40c3af39cc218c103f shows that 95k can be used easily on a large
system. Let's bump it up even more so that we have some "breathing room".

3 years agoMerge pull request #21691 from yuwata/network-route-prefix-length
Zbigniew Jędrzejewski-Szmek [Thu, 9 Dec 2021 08:24:36 +0000 (09:24 +0100)] 
Merge pull request #21691 from yuwata/network-route-prefix-length

network: route: several tiny cleanups

3 years agolibsystemd-network: ignore -ENETDOWN or friends in recv()
Yu Watanabe [Wed, 8 Dec 2021 19:30:54 +0000 (04:30 +0900)] 
libsystemd-network: ignore -ENETDOWN or friends in recv()

And this makes most errors in io events ignored.

3 years agonetwork: refuse empty or numeric route table names
Yu Watanabe [Wed, 8 Dec 2021 20:50:01 +0000 (05:50 +0900)] 
network: refuse empty or numeric route table names

3 years agodoc: fix typo
Yu Watanabe [Thu, 9 Dec 2021 07:02:23 +0000 (16:02 +0900)] 
doc: fix typo

3 years agonetwork: wireguard: allow to run NDisc and RADV when IPv6LL address is manually confi... 21692/head
Yu Watanabe [Thu, 9 Dec 2021 06:43:57 +0000 (15:43 +0900)] 
network: wireguard: allow to run NDisc and RADV when IPv6LL address is manually configured

Fixes #17380.

3 years agonetwork: address: add scope in debugging logs
Yu Watanabe [Thu, 9 Dec 2021 06:28:06 +0000 (15:28 +0900)] 
network: address: add scope in debugging logs

3 years agonetwork: address: also adjust scope when address is link local address
Yu Watanabe [Thu, 9 Dec 2021 06:23:32 +0000 (15:23 +0900)] 
network: address: also adjust scope when address is link local address

But again only when Scope= is not explicitly specified.

3 years agonetwork: address: do not adjust user specified scope
Yu Watanabe [Thu, 9 Dec 2021 06:18:34 +0000 (15:18 +0900)] 
network: address: do not adjust user specified scope

This reverts cd1caf30c0bd0d0c6e8df7610c614f52a7345c40.

I cannot remember why such change was made.
At least, the kernel does not refuse to set IPv4 localhost address with
non-host scope, e.g. global.

3 years agonetwork: route: mask lower bits of destination or source prefix 21691/head
Yu Watanabe [Wed, 8 Dec 2021 22:01:47 +0000 (07:01 +0900)] 
network: route: mask lower bits of destination or source prefix

Let's gracefully handle user's misconfiguration, e.g.
Destination=192.168.0.1/24

3 years agonetwork: json: add src address when its prefix length is non-zero
Yu Watanabe [Wed, 8 Dec 2021 21:56:26 +0000 (06:56 +0900)] 
network: json: add src address when its prefix length is non-zero

This should not change anything. Just for consistency with
route_set_netlink_message(), which sets RTA_SRC attribute when prefix
length is non-zero.

3 years agonetwork: route: show prefix length of the source in debugging logs
Yu Watanabe [Wed, 8 Dec 2021 21:51:29 +0000 (06:51 +0900)] 
network: route: show prefix length of the source in debugging logs

Similar fix to b489d6a26e44d430a997e756ac81767f6e646976.

3 years agobootctl: optionally install .signed efi file
Дамјан Георгиевски [Mon, 29 Nov 2021 21:44:01 +0000 (22:44 +0100)] 
bootctl: optionally install .signed efi file

if /usr/lib/systemd/boot/efi/systemd-bootx64.efi.signed exists
install that instead of /usr/lib/systemd/boot/efi/systemd-bootx64.efi

the idea is that SecureBoot tooling can create the efi.signed file
whenever /usr/lib/systemd/boot/efi/systemd-bootx64.efi from the package
is updated.

3 years agoMerge pull request #21686 from yuwata/network-wlan-fix-reconfigure
Yu Watanabe [Wed, 8 Dec 2021 20:57:12 +0000 (05:57 +0900)] 
Merge pull request #21686 from yuwata/network-wlan-fix-reconfigure

network: do not reconfigure wireless interface when previously not connected to any APs

3 years agoMerge pull request #21637 from nabijaczleweli/EBA
Daan De Meyer [Wed, 8 Dec 2021 20:15:38 +0000 (20:15 +0000)] 
Merge pull request #21637 from nabijaczleweli/EBA

kernel-install: export BOOT_ROOT instead of hacking it in hooks, note KERNEL_INSTALL_* ABI

3 years agoMerge pull request #21678 from keszybz/sysusers-work
Yu Watanabe [Wed, 8 Dec 2021 19:35:50 +0000 (04:35 +0900)] 
Merge pull request #21678 from keszybz/sysusers-work

Make it easier to figure out what sysusers is doing and why

3 years agostub: Properly null-terminate filenames in pack_cpio_one
Adrian Vovk [Wed, 8 Dec 2021 02:01:46 +0000 (21:01 -0500)] 
stub: Properly null-terminate filenames in pack_cpio_one

Previously, mangle_filename would write the null terminator, but
then wouldn't increment the pointer. Thus, the pad4 call that comes
immediately after mangle_filename would trample over the null
terminator that mangle_filename wrote. Since the padding is all
0s, this happened to work for the filenames it was tested for

However, in some cases, this would cause the pointer to be a different
position than predicted. Basically, the predicted size would be one
byte bigger than the actual size (the missing null terminator). Usually,
this disappeared into the alignment padding at the end of the buffer,
but if the buffer was already unexpectedly aligned (b/c it was a byte
shorter than expected), this would cause assertion failures.

Also, the c_namesize field in the cpio header was incorrect. It
didn't include the null terminator, as required by the spec.

3 years agonetwork: do not reconfigure wireless interface when previously not connected to any APs 21686/head
Yu Watanabe [Wed, 8 Dec 2021 18:04:21 +0000 (03:04 +0900)] 
network: do not reconfigure wireless interface when previously not connected to any APs

Follow-up for 6706ce2fd2a13df0ae5e469b72d688eaf643dac4.

Fixes #21685.