]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
3 years agotest: allow overriding $QEMU_MEM when running w/ ASan 23791/head
Frantisek Sumsal [Tue, 21 Jun 2022 10:09:35 +0000 (12:09 +0200)] 
test: allow overriding $QEMU_MEM when running w/ ASan

3 years agotest: make the shutdown routine a bit more "robust"
Frantisek Sumsal [Tue, 21 Jun 2022 08:20:12 +0000 (10:20 +0200)] 
test: make the shutdown routine a bit more "robust"

Replace the call to the `end.service` with `systemctl poweroff`, since
it seems to cause issues no matter what `--job-mode=` is used:

```
[  129.070993] testsuite-21.sh[380]: ++ systemctl start --job-mode=flush end.service
[  129.154985] testsuite-21.sh[912]: Failed to start end.service: Transaction for end.service/start is destructive (sysinit.target has 'stop' job queued, but 'start' is included in transaction).
[  129.159636] testsuite-21.sh[912]: See system logs and 'systemctl status end.service' for details.
```

Also, add a "safety net" which bypasses the manager and does the
poweroff directly, since sometimes the D-Bus call performed by
`systemctl` might timeout (as the manager might be still processing data
from the fuzzing):

```
[  115.776778] sh[894]: + systemctl poweroff --no-block
[  166.164242] testsuite-21.sh[893]: Failed to start transient service unit: Connection timed out
[  166.269289] sh[894]: Call to PowerOff failed: Connection timed out
```

3 years agotest: drop the at_exit() coredump check
Frantisek Sumsal [Tue, 21 Jun 2022 08:13:48 +0000 (10:13 +0200)] 
test: drop the at_exit() coredump check

since we don't truncate the journal anymore.

3 years agotest: make dfuzzer less verbose
Frantisek Sumsal [Tue, 21 Jun 2022 08:04:03 +0000 (10:04 +0200)] 
test: make dfuzzer less verbose

Otherwise it oversaturates the journal, which in some cases can't keep
up with the load of messages (due to the performance penalty caused by
sanitizers), and gets killed by a watchdog.

3 years agotest: always force a new image for dfuzzer
Frantisek Sumsal [Tue, 21 Jun 2022 08:01:30 +0000 (10:01 +0200)] 
test: always force a new image for dfuzzer

Otherwise we might end up with an image containing broken service
symlinks and other things, which break certain parts of the test.

3 years agopkgconfig,rpm: expose vars for user-tmpfiles.d location
Zbigniew Jędrzejewski-Szmek [Mon, 20 Jun 2022 13:06:09 +0000 (15:06 +0200)] 
pkgconfig,rpm: expose vars for user-tmpfiles.d location

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2098553.

3 years agotest: use saved process PID instead of %%
Frantisek Sumsal [Mon, 20 Jun 2022 10:27:39 +0000 (12:27 +0200)] 
test: use saved process PID instead of %%

As the `%%` specifier might fail if the current job (i.e. the last
background job) already finished:

```
[   61.692196] testsuite-04.sh[656]: ++ systemd-id128 new
[   61.705407] testsuite-04.sh[263]: + ID=912cb8f8ef304153a123f772bb0fe9e0
[   61.706318] testsuite-04.sh[657]: + systemd-cat -t 912cb8f8ef304153a123f772bb0fe9e0 bash -c 'echo parent; (echo child) & wait'
[   61.720940] testsuite-04.sh[263]: + PID=657
[   61.721126] testsuite-04.sh[263]: + wait %%
[   61.723014] testsuite-04.sh[263]: /usr/lib/systemd/tests/testdata/units/testsuite-04.sh: line 96: wait: %%: no such job
```

3 years agoMerge pull request #22547 from mrc0mmand/dfuzzer
Evgeny Vereshchagin [Sun, 19 Jun 2022 23:42:09 +0000 (02:42 +0300)] 
Merge pull request #22547 from mrc0mmand/dfuzzer

test: fuzz our dbus interfaces with dfuzzer

3 years agotest: skip TEST-21-DFUZZER without ASan 22547/head
Frantisek Sumsal [Sun, 19 Jun 2022 08:39:12 +0000 (10:39 +0200)] 
test: skip TEST-21-DFUZZER without ASan

as the test is quite time consuming and it yields more useful reports
when the target app is built with sanitizers.

3 years agotest: fuzz our dbus interfaces with dfuzzer
Frantisek Sumsal [Mon, 13 Dec 2021 19:50:28 +0000 (20:50 +0100)] 
test: fuzz our dbus interfaces with dfuzzer

3 years agotest: make masking of supplementary services configurable
Frantisek Sumsal [Wed, 16 Feb 2022 19:29:14 +0000 (20:29 +0100)] 
test: make masking of supplementary services configurable

3 years agolocale: drop unnecessary allocation
Yu Watanabe [Sat, 18 Jun 2022 02:06:46 +0000 (11:06 +0900)] 
locale: drop unnecessary allocation

Fixes a bug introduced by 3d36b5d7e7b191fca7c5c65dbab94d99cf5f0230.

Fixes #23777.

3 years agoMerge pull request #23771 from mrc0mmand/test-tweaks
Yu Watanabe [Sat, 18 Jun 2022 01:45:22 +0000 (10:45 +0900)] 
Merge pull request #23771 from mrc0mmand/test-tweaks

A couple of test-output-related tweaks

3 years agonetworkctl: fix output of "status": replace "Queue Length" by "Number of Queues"
Marc Kleine-Budde [Fri, 17 Jun 2022 17:10:51 +0000 (19:10 +0200)] 
networkctl: fix output of "status": replace "Queue Length" by "Number of Queues"

Commit 0307afc681e1 ("networkctl: add support to display Transmit/Recieve queue
length (#12633)") added the display of the number of RX and TX Queues to the
output of `networkctl status $DEV`. However the row description says "Queue
Length".

This patch fixes the output by replacing "Queue Length" by "Number of Queues".

Fixes: 0307afc681e1 ("networkctl: add support to display Transmit/Recieve queue length (#12633)")
3 years agoadd program name to log line
Philipp Gortan [Fri, 17 Jun 2022 21:26:54 +0000 (23:26 +0200)] 
add program name to log line

3 years agocryptenroll: fix typo in manpage
Foster Snowhill [Fri, 17 Jun 2022 22:31:38 +0000 (00:31 +0200)] 
cryptenroll: fix typo in manpage

3 years agotest: check journal directly instead of capturing console output 23771/head
Frantisek Sumsal [Fri, 17 Jun 2022 15:29:22 +0000 (17:29 +0200)] 
test: check journal directly instead of capturing console output

3 years agotest: run the custom check hooks before common checks
Frantisek Sumsal [Fri, 17 Jun 2022 15:28:13 +0000 (17:28 +0200)] 
test: run the custom check hooks before common checks

since we delete the guest journals as part of the save_journal() step in
check_result_common(), making journal inaccessible from the custom check
hooks.

3 years agotest: pass the initdir to check_result_{qemu,nspawn} hooks
Frantisek Sumsal [Fri, 18 Feb 2022 13:10:15 +0000 (14:10 +0100)] 
test: pass the initdir to check_result_{qemu,nspawn} hooks

3 years agotest: fix a couple of issues found by shellcheck
Frantisek Sumsal [Fri, 17 Jun 2022 13:28:17 +0000 (15:28 +0200)] 
test: fix a couple of issues found by shellcheck

3 years agotest: don't flush debug logs to the console
Frantisek Sumsal [Fri, 17 Jun 2022 13:06:59 +0000 (15:06 +0200)] 
test: don't flush debug logs to the console

Let's keep the debug logs in the journal, while logging only
testsute-*.sh stdout/stderr to the console (ba7abf7). This should make
the test output log a bit more readable and potentially the tests itself
a bit faster by avoiding console oversaturation.

Also, it should significantly reduce the size of artifacts kept by CIs.

3 years agotest: always wrap useradd/userdel when running w/ ASan
Frantisek Sumsal [Fri, 17 Jun 2022 12:47:10 +0000 (14:47 +0200)] 
test: always wrap useradd/userdel when running w/ ASan

since they dlopen() PAM modules, including systemd ones.

3 years agotest: make the busy loop in TEST-02 less verbose
Frantisek Sumsal [Fri, 17 Jun 2022 12:44:49 +0000 (14:44 +0200)] 
test: make the busy loop in TEST-02 less verbose

as it unnecessarily clogs the logs.

3 years agoMerge pull request #23756 from yuwata/analyze-seccomp-filter
Luca Boccassi [Fri, 17 Jun 2022 08:58:14 +0000 (09:58 +0100)] 
Merge pull request #23756 from yuwata/analyze-seccomp-filter

analyze: fix seccomp filter handling in security command

3 years agomeson: Reorder cflags for sd-boot
Jan Janssen [Thu, 16 Jun 2022 19:53:30 +0000 (21:53 +0200)] 
meson: Reorder cflags for sd-boot

Currently, -Wall and -Wextra override previously passed flags like
-Wno-unused-parameter. This reorders them to be passed before any
optional flags. -Wsign-compare is part of -Wextra and therefore dropped.
-nostdlib is a link-stage flag and dropped as it is already part of
efi_ldflags.

3 years agotest: send stdout/stderr of testsuite units to journal & console
Frantisek Sumsal [Thu, 16 Jun 2022 20:16:53 +0000 (22:16 +0200)] 
test: send stdout/stderr of testsuite units to journal & console

to make debugging in CIs slightly easier.

3 years agotest: add syscall filter tests for analyze security 23756/head
Yu Watanabe [Wed, 15 Jun 2022 18:21:28 +0000 (03:21 +0900)] 
test: add syscall filter tests for analyze security

3 years agoseccomp-util: make @known include @obsolete
Yu Watanabe [Wed, 15 Jun 2022 18:18:44 +0000 (03:18 +0900)] 
seccomp-util: make @known include @obsolete

@known is generated from syscall-list.txt, which generated from kernel
headers. So, some syscalls in @obsolete may not be listed in
syscall-list.txt.

3 years agoanalyze-security: always save syscall name
Yu Watanabe [Wed, 15 Jun 2022 16:23:20 +0000 (01:23 +0900)] 
analyze-security: always save syscall name

This reverts dd51e725df9aec2847482131ef601e0215b371a0 and fixes bugs
introduced by 1624114d74f55ad9791b7624b08d89d2339a68b3.

Previously,
- On online scan, the syscall filter was a string Hashmap, but it
  might contain syscall name with errno or error action. Hence, we need
  to drop the errno or error action in the string.
- On offline scan, the syscall filter was a Hashmap of syscall ID, so
  hashmap_contains() with syscall name did not work. We need to convert
  syscall IDs to syscall names.
- If hashmap_contains() in syscall_names_in_filter() is true, then
  the syscall is allowed when the list is an allow-list, and vice versa.
  Hence, the condition in syscall_names_in_filter() was errnously
  inverted by dd51e725df9aec2847482131ef601e0215b371a0.

This makes syscalls are always stored with its name, instead of ID,
and also correct the condition.

Fixes #23663.

3 years agoset: introduce set_put_strndup()
Yu Watanabe [Wed, 15 Jun 2022 16:20:20 +0000 (01:20 +0900)] 
set: introduce set_put_strndup()

Note, if `n != SIZE_MAX`, we cannot check the existence of the specified
string in the set without duplicating the string. And, set_consume() also
checks the existence of the string. Hence, it is not necessary to call
set_contains() if `n != SIZE_MAX`.

3 years agocore/dbus-execute: drop unnecessary flag
Yu Watanabe [Wed, 15 Jun 2022 16:14:30 +0000 (01:14 +0900)] 
core/dbus-execute: drop unnecessary flag

The code block is called only when the list was empty, and the newly
requested list is allow-list. Hence, invert_flag is always zero here.

3 years agocore/dbus-execute: do not append denied syscalls in allow-list
Yu Watanabe [Wed, 15 Jun 2022 16:13:58 +0000 (01:13 +0900)] 
core/dbus-execute: do not append denied syscalls in allow-list

Follow-up for 68acc1afbe5cec50da1ffdc411dadda504e4caf5.

Before the commit, SystemCallFilter bus property provides only allowed
syscalls if ExecContext.syscall_filter is an allow-list, and vice versa.

After the commit, if the list is allow-list, it contains allowed
syscalls with value `-1`, and denied syscalls with non-negative values.

To keep the backward compatibility, denied syscalls must be dropped in
SystemCallFilter bus property.

3 years agoMerge pull request #23741 from mrc0mmand/more-asan-tweaks
Yu Watanabe [Thu, 16 Jun 2022 03:10:56 +0000 (12:10 +0900)] 
Merge pull request #23741 from mrc0mmand/more-asan-tweaks

test: wrap certain uninstrumented binaries to make them work w/ ASan

3 years agonspawn: fix UID map string
Yu Watanabe [Wed, 15 Jun 2022 13:32:40 +0000 (22:32 +0900)] 
nspawn: fix UID map string

We send/recv the set of payload uid, host uid, payload gid, host gid.
Hence, the index must be incremented with 4, instead of 2.

Fixes #23664.

3 years agoRFC 6762 section 7.1: a Multicast DNS querier SHOULD NOT include records in the
Vishal Chillara Srinivas [Wed, 15 Jun 2022 12:46:06 +0000 (18:16 +0530)] 
RFC 6762 section 7.1: a Multicast DNS querier SHOULD NOT include records in the
Known-Answer list whose remaining TTL is less than half of their original TTL

3 years agoresolve: mark mDNS RRs in the Additional Records section as cacheable
Vishal Chillara Srinivas [Tue, 31 May 2022 14:30:47 +0000 (20:00 +0530)] 
resolve: mark mDNS RRs in the Additional Records section as cacheable

RFC 6762 does not restrict caching of records in the Additional section.
Caching can improve resolve efficiency.

3 years agotest: don't wrap binaries built with ASan 23741/head
Frantisek Sumsal [Wed, 15 Jun 2022 17:43:11 +0000 (19:43 +0200)] 
test: don't wrap binaries built with ASan

since they should handle loading other instrumented libraries without
issues.

3 years agotest: drop all LD_PRELOAD-related ASan workarounds
Frantisek Sumsal [Wed, 15 Jun 2022 10:32:51 +0000 (12:32 +0200)] 
test: drop all LD_PRELOAD-related ASan workarounds

since they shouldn't be necessary anymore, as we tweak the "problematic"
binaries on per-binary basis.

3 years agotest: wrap binaries using systemd DSOs when running w/ ASan
Frantisek Sumsal [Tue, 14 Jun 2022 20:54:39 +0000 (22:54 +0200)] 
test: wrap binaries using systemd DSOs when running w/ ASan

Let's detect & wrap binaries which are linked against systemd DSOs and
we're running under ASan, since otherwise running such binaries ends
with:

```
==633==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
```

3 years agotree-wide: fix typo
Yu Watanabe [Wed, 15 Jun 2022 05:50:34 +0000 (14:50 +0900)] 
tree-wide: fix typo

3 years agoMerge pull request #23733 from sshedi/cid-1469711
Yu Watanabe [Wed, 15 Jun 2022 03:03:24 +0000 (12:03 +0900)] 
Merge pull request #23733 from sshedi/cid-1469711

homework: initialize we_detached

3 years agoMerge pull request #23709 from yuwata/test-hostname-locale
Yu Watanabe [Wed, 15 Jun 2022 03:00:22 +0000 (12:00 +0900)] 
Merge pull request #23709 from yuwata/test-hostname-locale

test: import hostname and locale tests from debian/ubuntu test suite

3 years agoRevert "test: fix TEST-70 under sanitizers"
Frantisek Sumsal [Tue, 14 Jun 2022 20:56:58 +0000 (22:56 +0200)] 
Revert "test: fix TEST-70 under sanitizers"

This reverts commit 47d81bc61315bae917276f978f39f200cf31e106.

3 years agoman: Add some punctuation; remove double spaces.
adrian5 [Tue, 14 Jun 2022 17:42:59 +0000 (19:42 +0200)] 
man: Add some punctuation; remove double spaces.

3 years agosd-journal: check retval of sd_id128_from_string call 23733/head
Shreenidhi Shedi [Tue, 14 Jun 2022 04:58:37 +0000 (10:28 +0530)] 
sd-journal: check retval of sd_id128_from_string call

Fixes: CID#1469712
CID 1469712 (#1 of 1): Unused value (UNUSED_VALUE)
returned_value: Assigning value from sd_id128_from_string(word + 2, &boot_id) to r here,
but that stored value is overwritten before it can be used.

3 years agohomework: initialize we_detached
Shreenidhi Shedi [Mon, 13 Jun 2022 08:57:51 +0000 (14:27 +0530)] 
homework: initialize we_detached

Fixes: CID#1469711
CID 1469711 (#1 of 1): Uninitialized scalar variable (UNINIT)
14. uninit_use: Using uninitialized value we_detached.

3 years agotest: use trap RETURN 23709/head
Yu Watanabe [Tue, 14 Jun 2022 12:08:04 +0000 (21:08 +0900)] 
test: use trap RETURN

3 years agotest: move "do" at the end of line
Yu Watanabe [Tue, 14 Jun 2022 12:06:06 +0000 (21:06 +0900)] 
test: move "do" at the end of line

3 years agotest: insert space in for loop
Yu Watanabe [Tue, 14 Jun 2022 12:05:10 +0000 (21:05 +0900)] 
test: insert space in for loop

3 years agotest: import localed tests from debian/ubuntu test suite
Yu Watanabe [Tue, 14 Jun 2022 00:14:00 +0000 (09:14 +0900)] 
test: import localed tests from debian/ubuntu test suite

3 years agotest: install C.UTF-8 and English locales
Yu Watanabe [Tue, 14 Jun 2022 00:13:00 +0000 (09:13 +0900)] 
test: install C.UTF-8 and English locales

3 years agotest: install libxkbcommon and x11 keymaps
Yu Watanabe [Tue, 14 Jun 2022 00:12:00 +0000 (09:12 +0900)] 
test: install libxkbcommon and x11 keymaps

3 years agotest: introduce inst_recursive() helper function
Yu Watanabe [Tue, 14 Jun 2022 00:11:00 +0000 (09:11 +0900)] 
test: introduce inst_recursive() helper function

3 years agotest: add one more path to search keymaps
Yu Watanabe [Tue, 14 Jun 2022 00:10:00 +0000 (09:10 +0900)] 
test: add one more path to search keymaps

Now it also supports split-usr.

3 years agolocalectl: use Table to show status
Yu Watanabe [Tue, 14 Jun 2022 00:09:00 +0000 (09:09 +0900)] 
localectl: use Table to show status

3 years agolocale: rename keymap-util.[ch] -> localed-util.[ch]
Yu Watanabe [Tue, 14 Jun 2022 00:08:00 +0000 (09:08 +0900)] 
locale: rename keymap-util.[ch] -> localed-util.[ch]

As the file contains not only keymap related functions.

3 years agolocale-setup: merge locale handling in PID1 and localed
Yu Watanabe [Tue, 14 Jun 2022 00:07:00 +0000 (09:07 +0900)] 
locale-setup: merge locale handling in PID1 and localed

3 years agolocale-util: align locale entries
Yu Watanabe [Tue, 14 Jun 2022 00:06:00 +0000 (09:06 +0900)] 
locale-util: align locale entries

3 years agolocale-util: check if enumerated locales are valid
Yu Watanabe [Tue, 14 Jun 2022 00:05:00 +0000 (09:05 +0900)] 
locale-util: check if enumerated locales are valid

3 years agolocale-util: fix memleak on failure
Yu Watanabe [Tue, 14 Jun 2022 00:04:00 +0000 (09:04 +0900)] 
locale-util: fix memleak on failure

3 years agotest: import hostnamed tests from debian/ubuntu test suite
Yu Watanabe [Tue, 14 Jun 2022 00:03:00 +0000 (09:03 +0900)] 
test: import hostnamed tests from debian/ubuntu test suite

3 years agotest: support debian/ubuntu specific timezone config file
Yu Watanabe [Tue, 14 Jun 2022 00:02:00 +0000 (09:02 +0900)] 
test: support debian/ubuntu specific timezone config file

3 years agotest: drop unnecessary --no-pager option
Yu Watanabe [Tue, 14 Jun 2022 00:01:00 +0000 (09:01 +0900)] 
test: drop unnecessary --no-pager option

3 years agotest: introduce assert_not_in() helper function
Yu Watanabe [Tue, 14 Jun 2022 00:00:00 +0000 (09:00 +0900)] 
test: introduce assert_not_in() helper function

This also silence assertions, and replace grep with bash's regular
expression match.

3 years agopstore: Run after modules are loaded
Alexander Graf [Thu, 9 Jun 2022 14:20:43 +0000 (16:20 +0200)] 
pstore: Run after modules are loaded

The systemd-pstore service takes pstore files on boot and transfers them
to disk. It only does it once on boot and only if it finds any. The typical
location of the pstore on modern systems is the UEFI variable store.

Most distributions ship with CONFIG_EFI_VARS_PSTORE=m. That means, the
UEFI variable store is only available on boot after the respective module
is loaded.

In most situations, the pstore service gets loaded before the UEFI pstore,
so we don't get to transfer logs. Instead, they accumulate, filling up the
pstore over time, potentially breaking the UEFI variable store.

Let's add a service dependency on any kernel module that can provide a
pstore to ensure we only scan for pstate after we can actually see pstate.

I have seen live occurences of systems breaking because we did not erase
the pstates and ran out of UEFI nvram space.

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

3 years agohwdb: analyzers: remove generic "STM Device in DFU Mode"
Jan Luebbe [Mon, 13 Jun 2022 14:40:18 +0000 (16:40 +0200)] 
hwdb: analyzers: remove generic "STM Device in DFU Mode"

The USB ID v0483pDF11 is used by the ROM code in many STMicroelectronics
devices (for firmware download) and not just signal analyzers.

3 years agosysctl: increase log severity on failed write
Christian Göttsche [Mon, 13 Jun 2022 14:01:04 +0000 (16:01 +0200)] 
sysctl: increase log severity on failed write

Increase the log severity in case of writing to a non existent sysctl
parameter as this can either be caused by a misspelling or a kernel mis-
configuration, e.g. in case YAMA does not get loaded due to a incomplete
lsm= override:

    systemd-sysctl[354]: Couldn't write '1' to 'kernel/yama/ptrace_scope', ignoring: No such file or directory

3 years agopo: Translated using Weblate (Estonian)
H A [Tue, 14 Jun 2022 00:18:52 +0000 (02:18 +0200)] 
po: Translated using Weblate (Estonian)

Currently translated at 70.8% (134 of 189 strings)

Co-authored-by: H A <contact+fedora@hen.ee>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/et/
Translation: systemd/main

3 years agonetwork: l2tp: initialize a to NULL
Shreenidhi Shedi [Sun, 12 Jun 2022 18:06:37 +0000 (23:36 +0530)] 
network: l2tp: initialize a to NULL

Fixes: CID#1475788
3 years agoMerge pull request #23707 from yuwata/dns_service_split
Zbigniew Jędrzejewski-Szmek [Sun, 12 Jun 2022 09:37:20 +0000 (11:37 +0200)] 
Merge pull request #23707 from yuwata/dns_service_split

dns-domain: fix buffer-overflow

3 years agoMerge pull request #23714 from mrc0mmand/networkd-testsuite-tweaks
Yu Watanabe [Sun, 12 Jun 2022 04:16:30 +0000 (13:16 +0900)] 
Merge pull request #23714 from mrc0mmand/networkd-testsuite-tweaks

A couple of assorted tweaks for the systemd-networkd test suite

3 years agomeson: add build targets for libudev, libsystemd and pkg-config
Luca Boccassi [Sat, 11 Jun 2022 17:34:08 +0000 (18:34 +0100)] 
meson: add build targets for libudev, libsystemd and pkg-config

Mirror install tags with the same names and content

3 years agopo: Translated using Weblate (Estonian)
H A [Sat, 11 Jun 2022 23:19:53 +0000 (01:19 +0200)] 
po: Translated using Weblate (Estonian)

Currently translated at 69.8% (132 of 189 strings)

Co-authored-by: H A <contact+fedora@hen.ee>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/et/
Translation: systemd/main

3 years agotest-network: drop unnecessary `global` 23714/head
Frantisek Sumsal [Sat, 11 Jun 2022 16:06:38 +0000 (18:06 +0200)] 
test-network: drop unnecessary `global`

`global` is needed only when assigning a new value to the global
variable; it's not necessary when modifying a mutable object (in our
case we just append items to the global list).

3 years agotest-network: explicitly set encoding when open()ing text files
Frantisek Sumsal [Sat, 11 Jun 2022 16:03:28 +0000 (18:03 +0200)] 
test-network: explicitly set encoding when open()ing text files

3 years agotest-network: make use of f-strings in couple more places
Frantisek Sumsal [Sat, 11 Jun 2022 15:54:59 +0000 (17:54 +0200)] 
test-network: make use of f-strings in couple more places

3 years agotest-network: override networkctl bin w/ valgrind/sanitizers
Frantisek Sumsal [Sat, 11 Jun 2022 15:47:52 +0000 (17:47 +0200)] 
test-network: override networkctl bin w/ valgrind/sanitizers

3 years agoMerge pull request #23708 from yuwata/update-kernel-headers
Luca Boccassi [Sat, 11 Jun 2022 09:18:37 +0000 (10:18 +0100)] 
Merge pull request #23708 from yuwata/update-kernel-headers

Update kernel headers

3 years agoshared/linux: update kernel headers to 5.19-rc1 23708/head
Yu Watanabe [Fri, 10 Jun 2022 21:42:24 +0000 (06:42 +0900)] 
shared/linux: update kernel headers to 5.19-rc1

3 years agobasic/linux: update kernel headers to 5.19-rc1
Yu Watanabe [Fri, 10 Jun 2022 21:40:00 +0000 (06:40 +0900)] 
basic/linux: update kernel headers to 5.19-rc1

3 years agodns-domain: reduce indentation in dns_service_split() 23707/head
Yu Watanabe [Fri, 10 Jun 2022 20:48:35 +0000 (05:48 +0900)] 
dns-domain: reduce indentation in dns_service_split()

3 years agodns-domain: rename function arguments
Yu Watanabe [Fri, 10 Jun 2022 20:28:26 +0000 (05:28 +0900)] 
dns-domain: rename function arguments

3 years agodns-domain: make each label nul-terminated
Yu Watanabe [Fri, 10 Jun 2022 20:51:03 +0000 (05:51 +0900)] 
dns-domain: make each label nul-terminated

dns_label_unescape() does not nul-terminate the buffer if it does not
have enough space. Hence, if a lable is enough long, then strjoin()
triggers buffer-overflow.

Fixes #23705.

3 years agoMerge pull request #23691 from medhefgo/efi-clang
Yu Watanabe [Fri, 10 Jun 2022 20:01:24 +0000 (05:01 +0900)] 
Merge pull request #23691 from medhefgo/efi-clang

efi: Add parse_number8/16

3 years agosystemctl: add `edit` verb to arguments' help text
Elias Probst [Fri, 10 Jun 2022 19:15:11 +0000 (21:15 +0200)] 
systemctl: add `edit` verb to arguments' help text

The arguments `--global`, `--runtime` and `--root` also affect the
`edit` verb.

3 years agoMerge pull request #23701 from medhefgo/boot-mem
Yu Watanabe [Fri, 10 Jun 2022 19:29:27 +0000 (04:29 +0900)] 
Merge pull request #23701 from medhefgo/boot-mem

boot: Use memcpy/memset provided by firmware

3 years agoboot: use efi_memcpy inplace of memcpy
Shreenidhi Shedi [Fri, 10 Jun 2022 10:09:50 +0000 (15:39 +0530)] 
boot: use efi_memcpy inplace of memcpy

`efi_memcpy` does some validations before referencing pointers, it is
the safer option for this case.

Fixes: CID#1489876
3 years agoshared/condition: accept size suffixes for ConditionMemory
Zbigniew Jędrzejewski-Szmek [Fri, 10 Jun 2022 12:55:00 +0000 (14:55 +0200)] 
shared/condition: accept size suffixes for ConditionMemory

Fixes #23697.

3 years agoMerge pull request #23687 from yuwata/dns-domain-trivial-cleanups
Luca Boccassi [Fri, 10 Jun 2022 18:50:22 +0000 (19:50 +0100)] 
Merge pull request #23687 from yuwata/dns-domain-trivial-cleanups

dns-domain: trivial cleanups

3 years agoMerge pull request #23584 from yuwata/test-login
Frantisek Sumsal [Fri, 10 Jun 2022 14:50:35 +0000 (14:50 +0000)] 
Merge pull request #23584 from yuwata/test-login

test: import logind test from debian/ubuntu test suite

3 years agoMerge pull request #23690 from yuwata/test-sd-device
Frantisek Sumsal [Fri, 10 Jun 2022 14:50:01 +0000 (14:50 +0000)] 
Merge pull request #23690 from yuwata/test-sd-device

test: several tweaks for test-sd-device

3 years agoboot: Use memcpy/memset provided by firmware 23701/head
Jan Janssen [Fri, 10 Jun 2022 13:29:39 +0000 (15:29 +0200)] 
boot: Use memcpy/memset provided by firmware

These are significantly faster and safe us from rolling our own
optimized versions.

3 years agoboot: Mark memcmp/memcpy/memset aliases as used
Jan Janssen [Fri, 10 Jun 2022 13:20:01 +0000 (15:20 +0200)] 
boot: Mark memcmp/memcpy/memset aliases as used

The compiler may emit calls to these but also optimize the function away
somehow, breaking at link stage. Marking them as used prevents this.

3 years agodocs/CONTRIBUTING: ask people to send a ping on stalled reviews
Zbigniew Jędrzejewski-Szmek [Fri, 10 Jun 2022 12:08:40 +0000 (14:08 +0200)] 
docs/CONTRIBUTING: ask people to send a ping on stalled reviews

A few related changes: be explicit that 'main' is the branch we're referring
to. There was a case recently of somebody rebasing on 'master' by mistake.
It's better to be explicit, since 'main' is still not the default for git
(AFAIK).

Also, github seems to send mails about force-pushes, so drop that as a
justification. Commenting about changes that were done is useful even if
github were to send a notification.

And finally, $subject. We do that ourselves, but outside contributors might not
know that that's expected.

3 years agoefi-string: Remove one more |= for bool
Jan Janssen [Fri, 10 Jun 2022 07:32:34 +0000 (09:32 +0200)] 
efi-string: Remove one more |= for bool

This one was missed in #23589.

3 years agoMerge pull request #23683 from keszybz/status-format
Zbigniew Jędrzejewski-Szmek [Fri, 10 Jun 2022 12:11:53 +0000 (14:11 +0200)] 
Merge pull request #23683 from keszybz/status-format

Default to default-status-unit-format=name in developer mode

3 years agomeson: add experimental bpf-gcc compiler support
James Hilliard [Wed, 8 Jun 2022 10:13:42 +0000 (10:13 +0000)] 
meson: add experimental bpf-gcc compiler support

Not fully working but should make it easier to clean up remaining
issues.

3 years agoMerge pull request #23689 from yuwata/test-timedate
Zbigniew Jędrzejewski-Szmek [Fri, 10 Jun 2022 11:56:48 +0000 (13:56 +0200)] 
Merge pull request #23689 from yuwata/test-timedate

test: import timedated test from debian/ubuntu test suite

3 years agodocs: desaturate dark-mode background color
Benjamin Franzke [Fri, 3 Jun 2022 20:44:42 +0000 (22:44 +0200)] 
docs: desaturate dark-mode background color

The documentations dark-mode background color as
added in #23417 was perceived to be too purple-y [1]
and is therefore replaced by a desaturated black
that is derived from the systemd brand-black using
12% less HSL saturation.

[1] https://github.com/systemd/systemd/pull/23417#issuecomment-1146323820

3 years agomeson: use status-unit-format-default=name in developer mode 23683/head
Zbigniew Jędrzejewski-Szmek [Thu, 9 Jun 2022 18:33:29 +0000 (20:33 +0200)] 
meson: use status-unit-format-default=name in developer mode

I think developers are particularly unlikely to find the descriptions
useful, and would benefit from being able to copy&paste unit names.
Let's make this choice automatically.