]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agocore/bpf-firewall: make bpf_firewall_supported() always set unsupported reason when... 21591/head
Yu Watanabe [Wed, 1 Dec 2021 12:07:22 +0000 (21:07 +0900)] 
core/bpf-firewall: make bpf_firewall_supported() always set unsupported reason when BPF_FIREWALL_UNSUPPORTED is returned

Otherwise, log_unit_full_errno() in emit_bpf_firewall_warning() will
trigger an assertion.

4 years agocore/cgroup: propagate errors on detecting supported features
Yu Watanabe [Wed, 1 Dec 2021 12:37:17 +0000 (21:37 +0900)] 
core/cgroup: propagate errors on detecting supported features

4 years agocore/restrict-netif: make restrict_network_interfaces_supported() return negative...
Yu Watanabe [Wed, 1 Dec 2021 12:34:37 +0000 (21:34 +0900)] 
core/restrict-netif: make restrict_network_interfaces_supported() return negative errno only when critical error

Other errors are handled as the functionality is not supported.

This also drops unnecessary SYNTHETIC_ERRNO().

4 years agotest: run commands with debug level logs in TEST-65-ANALYZE 21583/head
Luca Boccassi [Tue, 30 Nov 2021 23:49:58 +0000 (23:49 +0000)] 
test: run commands with debug level logs in TEST-65-ANALYZE

4 years agocgroup: don't emit BPF firewall warning when manager is in test mode
Luca Boccassi [Tue, 30 Nov 2021 23:49:33 +0000 (23:49 +0000)] 
cgroup: don't emit BPF firewall warning when manager is in test mode

Support for BPF might not have been checked, since it's not necessary
in test mode (eg: running offline analysis of units). This causes an
assert:

Assertion '(_error) != 0' failed at src/core/bpf-firewall.c:914, function emit_bpf_firewall_warning(). Aborting.

Export SYSTEMD_LOG_LEVEl=debug in TEST-65-ANALYZE is enough to trigger
this assert while doing an offline analysis of a unit that has some
firewall/network restrictions set.

Skip the warning if the manager is in test mode.

4 years agoci: temporarily set -Wno-deprecated-declarations in Packit
Zbigniew Jędrzejewski-Szmek [Tue, 2 Nov 2021 13:37:19 +0000 (14:37 +0100)] 
ci: temporarily set -Wno-deprecated-declarations in Packit

to suppress OpenSSL 3.0 deprecation warnings (until a proper solution is
deployed): RSA_free, EC_KEY_free, RSA_set0_key, RSA_size, EVP_PKEY_assign,
EC_KEY_set_group, and others are deprecated.

4 years agoresolved: do not use BN_dup() unnecessarilly
Zbigniew Jędrzejewski-Szmek [Tue, 2 Nov 2021 09:45:20 +0000 (10:45 +0100)] 
resolved: do not use BN_dup() unnecessarilly

Suggested in https://github.com/systemd/systemd/pull/21170#discussion_r738696794

4 years agoport string_hashsum from libgcrypt to openssl^gcrypt
Zbigniew Jędrzejewski-Szmek [Wed, 27 Oct 2021 13:39:48 +0000 (15:39 +0200)] 
port string_hashsum from libgcrypt to openssl^gcrypt

This allows resolved and importd to be built without libgcrypt.

Note that we now say either 'cryptographic library' or 'cryptolib'.

Co-authored-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
4 years agobasic/openssl-util: Add sha256 hash wrapper
Kevin Kuehler [Fri, 11 Dec 2020 00:08:11 +0000 (16:08 -0800)] 
basic/openssl-util: Add sha256 hash wrapper

4 years agoresolve: Port nsec3 code to openssl^gcrypt
Kevin Kuehler [Fri, 11 Dec 2020 00:08:30 +0000 (16:08 -0800)] 
resolve: Port nsec3 code to openssl^gcrypt

Co-authored-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
4 years agotest-network: re-arrange DHCP6-PD subnet IDs to test searching free subnet ID 21585/head
Yu Watanabe [Wed, 1 Dec 2021 11:34:48 +0000 (20:34 +0900)] 
test-network: re-arrange DHCP6-PD subnet IDs to test searching free subnet ID

4 years agotest-network: add testcases for uplink interface detection for RADV with DHCPv6-PD
Yu Watanabe [Wed, 1 Dec 2021 06:08:00 +0000 (15:08 +0900)] 
test-network: add testcases for uplink interface detection for RADV with DHCPv6-PD

4 years agonetwork: dhcp6-pd: exclude all explicitly specified subnet IDs when searching free IDs
Yu Watanabe [Wed, 1 Dec 2021 10:43:40 +0000 (19:43 +0900)] 
network: dhcp6-pd: exclude all explicitly specified subnet IDs when searching free IDs

When the upstream link gained a lease, then several downstream links may
not appear yet. Previously, the explicitly specified subnet ID for a
downstream link which appears later may be already assigned to an
interface which does not request specific subnet ID.

To avoid such situation, this makes all specified IDs are excluded when
searching free IDs.

As a side effect, we can avoid the second call of
dhcp6_pd_distribute_prefix().

4 years agonetwork: dhcp6-pd: introduce dhcp6_pd_is_uplink()
Yu Watanabe [Wed, 1 Dec 2021 10:24:22 +0000 (19:24 +0900)] 
network: dhcp6-pd: introduce dhcp6_pd_is_uplink()

This also merges dhcp6_pd_resolve_uplink() with dhcp6_pd_find_uplink()

4 years agonetwork: dhcp6: make UplinkInterface=:self take effect only when DHCPv6PrefixDelegati...
Yu Watanabe [Wed, 1 Dec 2021 05:48:51 +0000 (14:48 +0900)] 
network: dhcp6: make UplinkInterface=:self take effect only when DHCPv6PrefixDelegation= is enabled

4 years agonetwork: radv: use the uplink interface used in DHCPv6-PD
Yu Watanabe [Wed, 1 Dec 2021 05:37:26 +0000 (14:37 +0900)] 
network: radv: use the uplink interface used in DHCPv6-PD

4 years agodocs: document that systemd closes console during normal runtime
Arvid E. Picciani [Wed, 1 Dec 2021 08:21:04 +0000 (09:21 +0100)] 
docs: document that systemd closes console during normal runtime

fixes #21451

Signed-off-by: Arvid E. Picciani <aep@exys.org>
4 years agocore: add Condition[Memory/CPU/IO]Pressure
Luca Boccassi [Wed, 17 Nov 2021 10:00:12 +0000 (10:00 +0000)] 
core: add Condition[Memory/CPU/IO]Pressure

By default checks PSI on /proc/pressure, and causes a unit to be skipped
if the threshold is above the given configuration for the avg300
measurement.
Also allow to pass a custom timespan, and a particular slice unit to
check under.

Fixes #20139

4 years agoMerge pull request #21581 from keszybz/really-random-fixlets
Yu Watanabe [Wed, 1 Dec 2021 03:54:00 +0000 (12:54 +0900)] 
Merge pull request #21581 from keszybz/really-random-fixlets

Really random fixlets

4 years agoMerge pull request #21564 from yuwata/errno-eagain-eintr
Yu Watanabe [Wed, 1 Dec 2021 03:52:27 +0000 (12:52 +0900)] 
Merge pull request #21564 from yuwata/errno-eagain-eintr

tree-wide: introduce ERRNO_IS_TRANSIENT() and use it

4 years agoMerge pull request #21536 from medhefgo/test
Yu Watanabe [Wed, 1 Dec 2021 03:52:10 +0000 (12:52 +0900)] 
Merge pull request #21536 from medhefgo/test

test: Introduce TEST_RET macro

4 years agoMerge pull request #21288 from loongarch64/la64/main
Yu Watanabe [Wed, 1 Dec 2021 03:51:48 +0000 (12:51 +0900)] 
Merge pull request #21288 from loongarch64/la64/main

Add support for the LoongArch architecture.

4 years agoMerge pull request #21553 from yuwata/network-wireguard-add-routes-to-allowed-ips
Luca Boccassi [Tue, 30 Nov 2021 23:30:31 +0000 (23:30 +0000)] 
Merge pull request #21553 from yuwata/network-wireguard-add-routes-to-allowed-ips

network: wireguard: add routes to AllowedIPs=

4 years agoanalyze: add inspect-elf verb to parse package metadata 21454/head
Luca Boccassi [Wed, 17 Nov 2021 01:45:07 +0000 (01:45 +0000)] 
analyze: add inspect-elf verb to parse package metadata

Parses and prints package metadata from executables, libraries and core files

$ systemd-analyze inspect-elf /tmp/core ../fsverity-utils/fsverityb /bin/bash --json=off --no-pager
__________________________
           path: /tmp/core
        elfType: coredump
elfArchitecture: AMD x86-64

    module name: /tmp/crash
           type: deb
           name: hello
        version: 1.0
   architecture: amd64
             os: debian
      osVersion: 11
        buildId: b33541096a09c29a0ba4ec5c69364a2711b7c269

    module name: /usr/lib/x86_64-linux-gnu/libc-2.31.so
           type: deb
           name: hello
        version: 1.0
   architecture: amd64
             os: debian
      osVersion: 11
        buildId: 54eef5ce96cf37cb175b0d93186836ca1caf470c

    module name: /usr/lib/x86_64-linux-gnu/ld-2.31.so
           type: deb
           name: hello
        version: 1.0
   architecture: amd64
             os: debian
      osVersion: 11
        buildId: 32438eb3b034da54caf58c7a65446639f7cfe274
__________________________________________________________________
           path: /home/luca/git/systemd/../fsverity-utils/fsverity
        elfType: executable
elfArchitecture: AMD x86-64

           type: deb
           name: fsverity-utils
        version: 1.3-1
   architecture: amd64
             os: debian
   debugInfoUrl: https://debuginfod.debian.net
        buildId: 05b899e6ee0d3653e20458719b202ed3ca8d566f
_________________________
           path: /bin/bash
        elfType: executable
elfArchitecture: AMD x86-64

        buildId: 4fef260f60e257d2dbd4126bf8add83837aea190
$
$ systemd-analyze inspect-elf /tmp/core ../fsverity-utils/fsverity /bin/bash /tmp/core.test-condition.1000.f9b9a84a9fd1482c9702d6afa6f6934b.37640.1637083078000000 --json=pretty --no-pager
{
"elfType" : "coredump",
"elfArchitecture" : "AMD x86-64",
"/home/bluca/git/fsverity-utils/fsverity" : {
"type" : "deb",
"name" : "fsverity-utils",
"version" : "1.3-1",
"buildId" : "7c895ecd2a271f93e96268f479fdc3c64a2ec4ee"
},
"/home/bluca/git/fsverity-utils/libfsverity.so.0" : {
"type" : "deb",
"name" : "fsverity-utils",
"version" : "1.3-1",
"buildId" : "b5e428254abf14237b0ae70ed85fffbb98a78f88"
}
}
{
"elfType" : "executable",
"elfArchitecture" : "AMD x86-64",
"/home/bluca/git/systemd/../fsverity-utils/fsverity" : {
"type" : "deb",
"name" : "fsverity-utils",
"version" : "1.3-1",
"buildId" : "7c895ecd2a271f93e96268f479fdc3c64a2ec4ee"
}
}
{
"elfType" : "executable",
"elfArchitecture" : "AMD x86-64",
"/bin/bash" : {
"buildId" : "3313b4cb119dcce16927a9b6cc61dcd97dfc4d59"
}
}
{
"elfType" : "coredump",
"elfArchitecture" : "AMD x86-64"
}

4 years agoelf-util: add function to parse metadata out of ELF objects
Luca Boccassi [Thu, 18 Nov 2021 00:03:48 +0000 (00:03 +0000)] 
elf-util: add function to parse metadata out of ELF objects

Parse the packaging metadata from an ELF object, if any, and
print a pretty table following the spec defined at:
https://systemd.io/COREDUMP_PACKAGE_METADATA/

4 years agoresolve: Port dnskey verification by ds to openssl^gcrypt
Kevin Kuehler [Fri, 11 Dec 2020 00:08:28 +0000 (16:08 -0800)] 
resolve: Port dnskey verification by ds to openssl^gcrypt

Co-authored-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
4 years agoresolve: Port dnssec verify from gcrypt to openssl^gcrypt
Kevin Kuehler [Fri, 11 Dec 2020 00:08:26 +0000 (16:08 -0800)] 
resolve: Port dnssec verify from gcrypt to openssl^gcrypt

Co-authored-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
4 years agoresolved: split out function to hash signature
Zbigniew Jędrzejewski-Szmek [Thu, 21 Oct 2021 14:00:08 +0000 (16:00 +0200)] 
resolved: split out function to hash signature

dnssec_verify_rrset() is just too long.

4 years agoresolved: split out function to generate signature
Zbigniew Jędrzejewski-Szmek [Thu, 28 Oct 2021 12:03:44 +0000 (14:03 +0200)] 
resolved: split out function to generate signature

dnssec_verify_rrset() is just too long.

4 years agoresolve: Add coverage for dnssec ecdsa (rfc6605)
Kevin Kuehler [Fri, 11 Dec 2020 00:08:23 +0000 (16:08 -0800)] 
resolve: Add coverage for dnssec ecdsa (rfc6605)

4 years agoimport: port importd from libgcrypt to openssl^gcrypt
Zbigniew Jędrzejewski-Szmek [Tue, 2 Nov 2021 08:58:04 +0000 (09:58 +0100)] 
import: port importd from libgcrypt to openssl^gcrypt

This is heavily based on Kevin Kuehler's work, but the logic is also
significantly changed: instead of a straighforward port to openssl, both
versions of the code are kept, and at compile time we pick one or the other.

The code is purposefully kept "dumb" — the idea is that the libgcrypt codepaths
are only temporary and will be removed after everybody upgrades to openssl 3.
Thus, a separate abstraction layer is not introduced. Instead, very simple
ifdefs are used to select one or the other. If we added an abstraction layer,
we'd have to remove it again afterwards, and it don't think it makes sense to
do that for a temporary solution.

Co-authored-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
# Conflicts:
# meson.build

4 years agomeson: add config setting to select between openssl and gcrypt
Zbigniew Jędrzejewski-Szmek [Tue, 2 Nov 2021 08:44:12 +0000 (09:44 +0100)] 
meson: add config setting to select between openssl and gcrypt

This is not pretty, but it is supposed to be only a temporary measure.

4 years agorepart: port to our home-grown hmac_sha256
Kevin Kuehler [Wed, 20 Oct 2021 10:21:18 +0000 (12:21 +0200)] 
repart: port to our home-grown hmac_sha256

This reduces dependencies. The speed of the code here is uimportant, because we
hash only a tiny amount of input data.

Debian and Ubuntu currently build without repart, see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976959
> repart requires openssl and so far I tried to avoid linking against
> both gnutls and openssl.

Co-authored-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
4 years agotmpfiles: 'st' may have been used uninitialized 21581/head
Zbigniew Jędrzejewski-Szmek [Tue, 23 Nov 2021 14:05:58 +0000 (15:05 +0100)] 
tmpfiles: 'st' may have been used uninitialized

4 years agoman: prettify line number handling in python example
Zbigniew Jędrzejewski-Szmek [Sun, 28 Nov 2021 11:30:52 +0000 (12:30 +0100)] 
man: prettify line number handling in python example

This way the 'line_number' variable contains the actual line number as we think
of it, instead of adjusting it on output.

4 years agotest-sizeof: show stack and heap randomization
Zbigniew Jędrzejewski-Szmek [Fri, 26 Nov 2021 09:28:18 +0000 (10:28 +0100)] 
test-sizeof: show stack and heap randomization

It's useful to reassure yourself those those things actually work ;)

4 years agoMerge pull request #21580 from bluca/core_fork
Zbigniew Jędrzejewski-Szmek [Tue, 30 Nov 2021 20:49:53 +0000 (21:49 +0100)] 
Merge pull request #21580 from bluca/core_fork

Switch coredump ELF parsing to fork+dlopen

4 years agotest-network: add tests for creating routes to wireguard's AllowedIPs= 21553/head
Yu Watanabe [Mon, 29 Nov 2021 07:49:24 +0000 (16:49 +0900)] 
test-network: add tests for creating routes to wireguard's AllowedIPs=

4 years agonetwork: wireguard: automatically configure routes to addresses specified in AllowedIPs=
Yu Watanabe [Mon, 29 Nov 2021 07:36:42 +0000 (16:36 +0900)] 
network: wireguard: automatically configure routes to addresses specified in AllowedIPs=

Closes #14176.

4 years agonetwork: route: expose route_hash_ops
Yu Watanabe [Mon, 29 Nov 2021 07:35:46 +0000 (16:35 +0900)] 
network: route: expose route_hash_ops

4 years agonetwork/wireguard: drop unnecessary .in6 specifier
Yu Watanabe [Mon, 29 Nov 2021 06:13:03 +0000 (15:13 +0900)] 
network/wireguard: drop unnecessary .in6 specifier

This should not change any behavior, as the size of the IPv4 address is
smaller than IPv6.

4 years agonetwork: route: read RTA_TABLE attribute to get route table
Yu Watanabe [Mon, 29 Nov 2021 10:38:24 +0000 (19:38 +0900)] 
network: route: read RTA_TABLE attribute to get route table

If the table of a route is larger than 255, then the value is stored in
RTA_TABLE attribute. But the attribute is not supported by old kernels.
So, first try to read the value from RTA_TABLE attribute, then fallback
to the value in the message header.

4 years agonetwork: route: use typesafe function
Yu Watanabe [Mon, 29 Nov 2021 10:38:03 +0000 (19:38 +0900)] 
network: route: use typesafe function

4 years agooomd: use type suffix instead of casting
Zbigniew Jędrzejewski-Szmek [Tue, 30 Nov 2021 17:42:32 +0000 (18:42 +0100)] 
oomd: use type suffix instead of casting

The end result is the same.

4 years agonetwork: address: drop deprecated temporary address
Yu Watanabe [Tue, 30 Nov 2021 06:52:54 +0000 (15:52 +0900)] 
network: address: drop deprecated temporary address

Fixes #19838.

4 years agoTODO: update dlopen todo list 21580/head
Luca Boccassi [Wed, 24 Nov 2021 20:26:19 +0000 (20:26 +0000)] 
TODO: update dlopen todo list

4 years agoelf-util: switch libelf/libdw to dlopen()
Luca Boccassi [Mon, 22 Nov 2021 11:11:21 +0000 (11:11 +0000)] 
elf-util: switch libelf/libdw to dlopen()

In order to avoid inflating the dependency list for the core
library, use dlopen when inspecting elfs, since it's only
used in two non-core executables.

4 years agomeson: remove libdw dependency from pstore
Luca Boccassi [Wed, 24 Nov 2021 20:23:02 +0000 (20:23 +0000)] 
meson: remove libdw dependency from pstore

systemd-pstore does not use any symbol from libdw, and never did,
but the dependency was listed since the beginning

4 years agoelf-util: add stub for builds without libdw
Luca Boccassi [Sun, 21 Nov 2021 17:31:20 +0000 (17:31 +0000)] 
elf-util: add stub for builds without libdw

4 years agoelf-util: split out helper to parse build-id
Luca Boccassi [Thu, 18 Nov 2021 00:51:41 +0000 (00:51 +0000)] 
elf-util: split out helper to parse build-id

4 years agocoredump: move elf parsing utilities to src/shared/elf-util
Luca Boccassi [Wed, 17 Nov 2021 01:44:33 +0000 (01:44 +0000)] 
coredump: move elf parsing utilities to src/shared/elf-util

4 years agocoredump: always log on failure in parse_core()
Luca Boccassi [Wed, 24 Nov 2021 20:13:44 +0000 (20:13 +0000)] 
coredump: always log on failure in parse_core()

4 years agocoredump: make the buffer optional when analyzing a core file
Luca Boccassi [Wed, 17 Nov 2021 01:27:57 +0000 (01:27 +0000)] 
coredump: make the buffer optional when analyzing a core file

Allow later usage when we only want to fetch the JSON packaging metadata

4 years agocoredump: analyze object with libdwelf in forked process
Luca Boccassi [Sun, 21 Nov 2021 17:05:28 +0000 (17:05 +0000)] 
coredump: analyze object with libdwelf in forked process

Parsing objects is risky as data could be malformed or malicious,
so avoid doing that from the main systemd-coredump process and
instead fork another process, and set it to avoid generating
core files itself.

4 years agocoredump: use _cleanup_ pattern
Luca Boccassi [Mon, 29 Nov 2021 11:31:00 +0000 (11:31 +0000)] 
coredump: use _cleanup_ pattern

Note that c.f needs to be closed _before_ taking or freeing
the buf pointer, as it might be invalidated

4 years agocoredump: flush accumulating buffer after parsing core file
Luca Boccassi [Mon, 29 Nov 2021 10:23:49 +0000 (10:23 +0000)] 
coredump: flush accumulating buffer after parsing core file

4 years agocoredump: check return of dwarf_getscopes
Luca Boccassi [Tue, 30 Nov 2021 02:01:53 +0000 (02:01 +0000)] 
coredump: check return of dwarf_getscopes

4 years agoMerge pull request #21578 from bluca/json_spec
Zbigniew Jędrzejewski-Szmek [Tue, 30 Nov 2021 15:36:36 +0000 (16:36 +0100)] 
Merge pull request #21578 from bluca/json_spec

docs: clarify JSON terms in COREDUMP_PACKAGE_METADATA

4 years agogpt: update the gpt test case for LoongArch 21288/head
Xiaotian Wu [Mon, 19 Apr 2021 13:03:32 +0000 (21:03 +0800)] 
gpt: update the gpt test case for LoongArch

4 years agoarchitecture: Add support for the LoongArch architecture
Wu Xiaotian [Tue, 1 Sep 2020 04:13:18 +0000 (12:13 +0800)] 
architecture: Add support for the LoongArch architecture

4 years agosysusers: avoid creating spurious "nobody" group
Rasmus Villemoes [Tue, 30 Nov 2021 11:50:19 +0000 (12:50 +0100)] 
sysusers: avoid creating spurious "nobody" group

On distros using Debian's base-passwd, the name of the group with gid 65534 is
nogroup. Currently, systemd-sysusers creates a spurious "nobody" group

  systemd-sysusers[243]: Creating group nobody with gid 996

That's both confusing and redundant, as the nobody user still has primary group
65534 aka nogroup, and the nobody group simply goes completely unused.

So explicitly specify the primary group of the nobody user, and add a line
ensuring that that group exists.

This is not a problem for Debian (or Ubuntu) itself, as they add their own
version of basic.conf in their systemd build logic. But it appears on for
example Yocto/OpenEmbedded.

4 years agoMerge pull request #21573 from keszybz/one-more-table-sort
Luca Boccassi [Tue, 30 Nov 2021 14:52:08 +0000 (14:52 +0000)] 
Merge pull request #21573 from keszybz/one-more-table-sort

One more table sort and man page updates

4 years agodocs: clarify ELF note usage in COREDUMP_PACKAGE_METADATA 21578/head
Luca Boccassi [Tue, 30 Nov 2021 14:42:43 +0000 (14:42 +0000)] 
docs: clarify ELF note usage in COREDUMP_PACKAGE_METADATA

4 years agolibsystemd: ignore both EINTR and EAGAIN 21564/head
Yu Watanabe [Mon, 29 Nov 2021 18:33:55 +0000 (03:33 +0900)] 
libsystemd: ignore both EINTR and EAGAIN

4 years agotree-wide: use ERRNO_IS_TRANSIENT()
Yu Watanabe [Mon, 29 Nov 2021 19:07:24 +0000 (04:07 +0900)] 
tree-wide: use ERRNO_IS_TRANSIENT()

4 years agoerrno-util: introduce ERRNO_IS_TRANSIENT()
Yu Watanabe [Mon, 29 Nov 2021 18:39:35 +0000 (03:39 +0900)] 
errno-util: introduce ERRNO_IS_TRANSIENT()

4 years agoask-password: fix error handling
Yu Watanabe [Tue, 30 Nov 2021 14:05:15 +0000 (23:05 +0900)] 
ask-password: fix error handling

ERRNO_IS_NOT_SUPPORTED() also matches positive values.
Fortunately, lookup_key() does not return positive values.

4 years agosd-dhcp6-client: fix error handling
Yu Watanabe [Tue, 30 Nov 2021 08:58:40 +0000 (17:58 +0900)] 
sd-dhcp6-client: fix error handling

4 years agoMerge pull request #21559 from jcg190701/main
Yu Watanabe [Tue, 30 Nov 2021 13:34:21 +0000 (22:34 +0900)] 
Merge pull request #21559 from jcg190701/main

fix ConditionDirectoryNotEmpty when it comes to a Non-directory file

4 years agobasic/architecture: sort and reindent one more table 21573/head
Zbigniew Jędrzejewski-Szmek [Tue, 30 Nov 2021 08:24:45 +0000 (09:24 +0100)] 
basic/architecture: sort and reindent one more table

No idea why I didn't do this one in the previous round.

4 years agoman: fix typo
Zbigniew Jędrzejewski-Szmek [Thu, 28 Oct 2021 13:55:00 +0000 (15:55 +0200)] 
man: fix typo

Follow-up for c896eb7ad65f4dbe968fdf01fa51e9ef4d2d11ed.

4 years agoman: add missing plural and reorder sentence
Zbigniew Jędrzejewski-Szmek [Thu, 28 Oct 2021 13:47:53 +0000 (15:47 +0200)] 
man: add missing plural and reorder sentence

We shouldn't explain what a value does before listing valid values…

Follow-up for 4f1ac4a38d1adf08f849af1a61c7a248932d8e13.

4 years agodocs: clarify JSON terms in COREDUMP_PACKAGE_METADATA
Luca Boccassi [Tue, 30 Nov 2021 12:36:16 +0000 (12:36 +0000)] 
docs: clarify JSON terms in COREDUMP_PACKAGE_METADATA

4 years agotree-wide: fix typo
Yu Watanabe [Tue, 30 Nov 2021 09:26:17 +0000 (18:26 +0900)] 
tree-wide: fix typo

4 years agoMerge pull request #21568 from yuwata/network-fix-json-format
Luca Boccassi [Tue, 30 Nov 2021 09:13:03 +0000 (09:13 +0000)] 
Merge pull request #21568 from yuwata/network-fix-json-format

network: fix json format

4 years agofix ConditionPathIsReadWrite when path does not exist. 21559/head
jiangchuangang [Tue, 30 Nov 2021 07:25:27 +0000 (15:25 +0800)] 
fix ConditionPathIsReadWrite when path does not exist.

4 years agoman: fix copy-and-paste mistake
Yu Watanabe [Tue, 30 Nov 2021 08:23:54 +0000 (17:23 +0900)] 
man: fix copy-and-paste mistake

4 years agofix ConditionDirectoryNotEmpty when it comes to a Non-directory file
jiangchuangang [Mon, 29 Nov 2021 14:30:37 +0000 (22:30 +0800)] 
fix ConditionDirectoryNotEmpty when it comes to a Non-directory file

4 years agotest-network: add more basic tests for network json formats 21568/head
Yu Watanabe [Mon, 29 Nov 2021 23:12:28 +0000 (08:12 +0900)] 
test-network: add more basic tests for network json formats

4 years agonetwork: json: add missing initialization
Yu Watanabe [Tue, 30 Nov 2021 01:03:05 +0000 (10:03 +0900)] 
network: json: add missing initialization

Fixes CID#1466513.

4 years agojson: make JSON_BUILD_PAIR_IN_ADDR_NON_NULL or friends handle NULL gracefully
Yu Watanabe [Mon, 29 Nov 2021 23:04:54 +0000 (08:04 +0900)] 
json: make JSON_BUILD_PAIR_IN_ADDR_NON_NULL or friends handle NULL gracefully

Fixes #21567.

4 years agosystemctl: display how long a systemd service will run (#21494)
Amir Omidi [Tue, 30 Nov 2021 00:24:18 +0000 (19:24 -0500)] 
systemctl: display how long a systemd service will run (#21494)

4 years agoMerge pull request #21532 from yuwata/network-json-more
Zbigniew Jędrzejewski-Szmek [Mon, 29 Nov 2021 20:26:56 +0000 (21:26 +0100)] 
Merge pull request #21532 from yuwata/network-json-more

network: add more json entries

4 years agoMerge pull request #21541 from bluca/analyze_security_profile
Zbigniew Jędrzejewski-Szmek [Mon, 29 Nov 2021 20:23:34 +0000 (21:23 +0100)] 
Merge pull request #21541 from bluca/analyze_security_profile

analyze: add --profile switch to security verb

4 years agosd-boot: Fix assert failure in random-seed.c
Jan Janssen [Mon, 29 Nov 2021 14:42:26 +0000 (15:42 +0100)] 
sd-boot: Fix assert failure in random-seed.c

Fixes: #21556
4 years agounit: add jobs that were skipped because of ratelimit back to run_queue
Michal Sekletar [Thu, 25 Nov 2021 17:28:25 +0000 (18:28 +0100)] 
unit: add jobs that were skipped because of ratelimit back to run_queue

Assumption in edc027b was that job we first skipped because of active
ratelimit is still in run_queue. Hence we trigger the queue and dispatch
it in the next iteration. Actually we remove jobs from run_queue in
job_run_and_invalidate() before we call unit_start(). Hence if we want
to attempt to run the job again in the future we need to add it back
to run_queue.

Fixes #21458

4 years agoByte order to host before using the lifetime
Nacho Barrientos [Mon, 29 Nov 2021 13:17:55 +0000 (14:17 +0100)] 
Byte order to host before using the lifetime

I've seen this in `NetworkManager-1.34.0-0.3.el8.x86_64` (latest in CentOS
Stream 8 at the time of writing this message) which does not use the latest
Systemd but probably the code base is the same (see
https://github.com/NetworkManager/NetworkManager/commit/51f93e00a23fbd09f5ad96da6290bf4ca737d46a).

Before the patch:

```
libsystemd: eth0: DHCPv6 client: T1 expires in 34y 3w 6d 45min 31s
libsystemd: eth0: DHCPv6 client: T2 expires in 54y 5month 3w 3d 23h 20min 35s
```

After the patch:

```
libsystemd: eth0: DHCPv6 client: T1 expires in 3d 7h 58min 3s
libsystemd: eth0: DHCPv6 client: T2 expires in 5d 2h 26min 50s
```

same box (x86_64 system) and same DHCPv6 server.

This regression has likely been introduced by 8a8955507af363c31297bbc5df79852db4ad39d6.

4 years agoAdd missing greater than/less than tab on some HP
Marco Scardovi [Mon, 29 Nov 2021 08:53:56 +0000 (09:53 +0100)] 
Add missing greater than/less than tab on some HP

Some HP keyboards (like https://h30434.www3.hp.com/t5/image/serverpage/image-id/203235i01AD626584587DA1?v=v2) have <> between AltGr and left arrow. This add the fix and make it working again

4 years agosd-boot: Use non-failing allocators everywhere else 21307/head
Jan Janssen [Wed, 17 Nov 2021 10:11:23 +0000 (11:11 +0100)] 
sd-boot: Use non-failing allocators everywhere else

4 years agosd-boot: Simplify path creation
Jan Janssen [Mon, 15 Nov 2021 11:48:47 +0000 (12:48 +0100)] 
sd-boot: Simplify path creation

4 years agosd-boot: Make stra_to_path/stra_to_str non-failing
Jan Janssen [Mon, 15 Nov 2021 11:31:48 +0000 (12:31 +0100)] 
sd-boot: Make stra_to_path/stra_to_str non-failing

4 years agosd-boot: Use non-failing allocators in boot.c
Jan Janssen [Mon, 15 Nov 2021 11:28:18 +0000 (12:28 +0100)] 
sd-boot: Use non-failing allocators in boot.c

4 years agosd-boot: Add non-failing allocators
Jan Janssen [Mon, 15 Nov 2021 11:25:04 +0000 (12:25 +0100)] 
sd-boot: Add non-failing allocators

4 years agosd-boot: Always add TextInputEx to wait queue if available 21264/head
Jan Janssen [Mon, 8 Nov 2021 15:27:21 +0000 (16:27 +0100)] 
sd-boot: Always add TextInputEx to wait queue if available

4 years agosd-boot: Add LTO support
Jan Janssen [Wed, 10 Nov 2021 12:30:23 +0000 (13:30 +0100)] 
sd-boot: Add LTO support

4 years agosd-boot: Let compiler figure out libgcc location
Jan Janssen [Mon, 29 Nov 2021 13:27:48 +0000 (14:27 +0100)] 
sd-boot: Let compiler figure out libgcc location

Since we now let the compiler call the linker for us, we can just
rely on it to find the right (static) libgcc to use.

4 years agosd-boot: Let the compiler invoke the linker for us
Jan Janssen [Mon, 8 Nov 2021 12:43:55 +0000 (13:43 +0100)] 
sd-boot: Let the compiler invoke the linker for us

For LTO to work, the linker has to be called with some magic sauce arguments.
And the easiest way to get those is to just let the compiler to the job for us.

4 years agoMerge pull request #21534 from yuwata/udev-accept-longer-hw-address
Zbigniew Jędrzejewski-Szmek [Mon, 29 Nov 2021 13:00:52 +0000 (14:00 +0100)] 
Merge pull request #21534 from yuwata/udev-accept-longer-hw-address

udev/net: accept longer HW address

4 years agoMerge pull request #21531 from keszybz/log2-tables
Zbigniew Jędrzejewski-Szmek [Mon, 29 Nov 2021 12:58:49 +0000 (13:58 +0100)] 
Merge pull request #21531 from keszybz/log2-tables

Optimize log2 tables

4 years agoMerge pull request #21537 from medhefgo/boot-sbat
Zbigniew Jędrzejewski-Szmek [Mon, 29 Nov 2021 10:30:25 +0000 (11:30 +0100)] 
Merge pull request #21537 from medhefgo/boot-sbat

meson: Default to sbat-distro=auto