]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
2 years agotest: add test for trailing invalid byte at the end 28138/head
Yu Watanabe [Thu, 29 Jun 2023 16:14:00 +0000 (01:14 +0900)] 
test: add test for trailing invalid byte at the end

2 years agosd-dhcp6-lease: ignore invalid byte(s) at the end of the packet
Philipp Kern [Fri, 23 Jun 2023 08:39:52 +0000 (10:39 +0200)] 
sd-dhcp6-lease: ignore invalid byte(s) at the end of the packet

Oracle Cloud sends malformed DHCPv6 replies that have an invalid
byte at the end, which cannot be parsed as an option code.

networkd currently can cope with the invalid option (it is ignored),
but the whole packet is ignored altogether because of the additional
null at the end.

It's better to be liberal in what we accept and actually assign an
address, given that the reply contains a valid IA_NA.

Fixes #28183.

2 years agoNEWS: various fixes
Joerg Behrmann [Thu, 29 Jun 2023 12:07:54 +0000 (14:07 +0200)] 
NEWS: various fixes

2 years agomkosi: Enable Incremental= mode by default
Daan De Meyer [Thu, 29 Jun 2023 11:35:03 +0000 (13:35 +0200)] 
mkosi: Enable Incremental= mode by default

Since mkosi is now smart enough to drop the caches when the list of
packages changes, let's enable Incremental= mode by default to ensure
a good experience for anyone new to hacking on systemd with mkosi.

2 years agotest: use correct path for systemd-battery-check
Frantisek Sumsal [Thu, 29 Jun 2023 08:06:48 +0000 (10:06 +0200)] 
test: use correct path for systemd-battery-check

Follow-up to #28185.

2 years agoupdate TODO
Lennart Poettering [Thu, 29 Jun 2023 08:34:27 +0000 (10:34 +0200)] 
update TODO

2 years agonetwork: Add `IgnoreDdontFragment=` option for Fragmentation control (#28131)
Yuxiang Zhu [Thu, 29 Jun 2023 10:11:52 +0000 (18:11 +0800)] 
network: Add `IgnoreDdontFragment=` option for Fragmentation control (#28131)

From `ip-link(8)`:
> [no]ignore-df - enables/disables IPv4 DF
                      suppression on this tunnel.  Normally datagrams
                      that exceed the MTU will be fragmented; the
                      presence of the DF flag inhibits this, resulting
                      instead in an ICMP Unreachable (Fragmentation
                      Required) message.  Enabling this attribute causes
                      the DF flag to be ignored.

If this option is enabled for a GRE/GRETAP tunnel, the `DF` flag in the outer IP header
will not inherit the inner IP header's `DF` flag.

This is useful to transfer packets that exceed the MTU of the underlay
network.

2 years agoman: Extend journalctl color information
Alexander Krabler [Tue, 27 Jun 2023 16:45:33 +0000 (18:45 +0200)] 
man: Extend journalctl color information

Add sentence about colored warning messages in journalctl.

2 years agobattery-check: several follow-ups
Yu Watanabe [Wed, 28 Jun 2023 17:43:17 +0000 (02:43 +0900)] 
battery-check: several follow-ups

Follow-ups for e3d4148d50909119c4e9327e6ad96d3ca7f4661a.

- add reference to initrd-battery-check.service in man page, and move
  its section from 1 to 8,
- add link to man page in help message,
- introduce ERRNO_IS_NO_PLYMOUTH(),
- propagate error in battery_check_send_plymouth_message(),
- rename battery_check_send_plymouth_message() -> plymouth_send_message(),
- return earlier when the first battery level check passed to reduce
  indentation,
- fix potential use of invalid fd on battery restored,
- do not use emoji for /dev/console,
- add simple test (mostly for coverity),

etc, etc...

2 years agomeson: first try dependency(), then fallback to find_library()
Yu Watanabe [Mon, 26 Jun 2023 19:53:13 +0000 (04:53 +0900)] 
meson: first try dependency(), then fallback to find_library()

This also drops the fallback for libacl, libcap, libcrypt, and libgcrypt,
as recent Ubuntu (at least, 20.04 LTS and newer) and Debian (at least, buster
and newer) have relevant .pc files.

Fixes #28161.

2 years agoNEWS: various fixes/additions
Lennart Poettering [Wed, 28 Jun 2023 20:35:12 +0000 (22:35 +0200)] 
NEWS: various fixes/additions

2 years agoMerge pull request #28168 from poettering/xdg-state-home
Lennart Poettering [Wed, 28 Jun 2023 20:30:23 +0000 (22:30 +0200)] 
Merge pull request #28168 from poettering/xdg-state-home

properly support XDG_STATE_HOME

2 years agotmpfiles: teach tmpfiles the new XDG_STATE_HOME variable too 28168/head
Lennart Poettering [Tue, 27 Jun 2023 11:14:17 +0000 (13:14 +0200)] 
tmpfiles: teach tmpfiles the new XDG_STATE_HOME variable too

2 years agoman: properly close XML tags
Lennart Poettering [Tue, 27 Jun 2023 08:32:11 +0000 (10:32 +0200)] 
man: properly close XML tags

2 years agoman: rebreak lines in file-hierarchy(7) a bit
Lennart Poettering [Tue, 27 Jun 2023 08:28:44 +0000 (10:28 +0200)] 
man: rebreak lines in file-hierarchy(7) a bit

(Does not change a single word, just rebreaks a bunch of paragraphs
matching our current line breaking rules)

2 years agoman: mention the newly-added XDG_STATE_HOME
Franklin Yu [Fri, 26 May 2023 05:06:54 +0000 (22:06 -0700)] 
man: mention the newly-added XDG_STATE_HOME

The description is copied from config-home.

Taken from: #27795

2 years agotest: add test for new XDG_STATE_HOME handling
Lennart Poettering [Mon, 26 Jun 2023 21:23:21 +0000 (23:23 +0200)] 
test: add test for new XDG_STATE_HOME handling

2 years agoexecute: don't bother with chowning StateDirectory= and friends in user mode
Lennart Poettering [Tue, 27 Jun 2023 09:19:47 +0000 (11:19 +0200)] 
execute: don't bother with chowning StateDirectory= and friends in user mode

2 years agoexecute: shorten code by making use of laccess() return code properly
Lennart Poettering [Tue, 27 Jun 2023 09:19:31 +0000 (11:19 +0200)] 
execute: shorten code by making use of laccess() return code properly

2 years agoexecute: shorten some code by using RET_NERRNO()
Lennart Poettering [Tue, 27 Jun 2023 09:19:12 +0000 (11:19 +0200)] 
execute: shorten some code by using RET_NERRNO()

2 years agoexecute: associate logs from setup_exec_directory() with the unit name
Lennart Poettering [Tue, 27 Jun 2023 09:16:01 +0000 (11:16 +0200)] 
execute: associate logs from setup_exec_directory() with the unit name

2 years agoexecute: add support for XDG_STATE_HOME for placing service state data in --user...
Lennart Poettering [Mon, 26 Jun 2023 20:42:33 +0000 (22:42 +0200)] 
execute: add support for XDG_STATE_HOME for placing service state data in --user mode

This adds support for the new XDG_STATE_HOME env var that was added to
the xdg basedir spec. Previously, because the basedir spec didn't know
the concept we'd alias the backing dir for StateDirectory= to the one
for ConfigurationDirectory= when runnin in --user mode. With this change
we'll make separate. This brings us various benefits, such as proper
"systemctl clean" support, where we can clear service state separately
from service configuration, now in user mode too.

This does not come without complications: retaining compatibility with
older setups is difficult, because we cannot possibly identitfy which
files in existing populated config dirs are actually "state" and which
one are true" configuration.

Hence let's deal with this pragmatically: if we detect that a service
that has both dirs configured only has the configuration dir existing,
then symlink the state dir to the configuration dir to retain
compatibility.

This is not great, but it's the only somewhat reasonable way out I can
see.

Fixes: #25739
2 years agoexecute: when recursively chowning StateDirectory= when spawning services, follow...
Lennart Poettering [Tue, 27 Jun 2023 09:09:03 +0000 (11:09 +0200)] 
execute: when recursively chowning StateDirectory= when spawning services, follow initial symlink

It should be OK to allow one level of symlink for the various types of
directories like StateDirectory=, LogsDirectory= and such.

2 years agoexecute: remove redundant assignment
Lennart Poettering [Mon, 26 Jun 2023 20:36:31 +0000 (22:36 +0200)] 
execute: remove redundant assignment

2 years agoexecude: include RuntimeScope field in ExecParameters
Lennart Poettering [Mon, 26 Jun 2023 20:34:25 +0000 (22:34 +0200)] 
execude: include RuntimeScope field in ExecParameters

Let's decouple execute.c a bit from the Manager object, let's pass the
runtime scope (i.e. the enum that discern invocation for user or system
context) as part of ExecParameters. This makes the scope available in
various functions without having to pass the Manager object in.

2 years agopath tool: add some basic ansi highlighing
Lennart Poettering [Mon, 26 Jun 2023 16:55:52 +0000 (18:55 +0200)] 
path tool: add some basic ansi highlighing

2 years agosd-path: bring spacing in sd-path.h and systemd-path tool in sync
Lennart Poettering [Mon, 26 Jun 2023 16:55:39 +0000 (18:55 +0200)] 
sd-path: bring spacing in sd-path.h and systemd-path tool in sync

2 years agosd-path: add support for XDG_STATE_HOME
Lennart Poettering [Mon, 26 Jun 2023 16:55:14 +0000 (18:55 +0200)] 
sd-path: add support for XDG_STATE_HOME

2 years agoMerge pull request #28178 from mrc0mmand/nss-tests
Luca Boccassi [Wed, 28 Jun 2023 18:41:11 +0000 (19:41 +0100)] 
Merge pull request #28178 from mrc0mmand/nss-tests

test: add a couple of tests for nss-myhostname & nss-mymachines

2 years agoMerge pull request #28164 from poettering/replace-env-var-fixes
Luca Boccassi [Wed, 28 Jun 2023 18:40:51 +0000 (19:40 +0100)] 
Merge pull request #28164 from poettering/replace-env-var-fixes

pid1: warn about unset+invalid env var names when resolving ExecStart= expressions and similar

2 years agoupdate TODO
Lennart Poettering [Wed, 28 Jun 2023 15:39:27 +0000 (17:39 +0200)] 
update TODO

2 years agoMerge pull request #28146 from keszybz/ansi-seq-skip
Lennart Poettering [Wed, 28 Jun 2023 17:18:27 +0000 (19:18 +0200)] 
Merge pull request #28146 from keszybz/ansi-seq-skip

Pass ANSI sequences through when ellipsizing output

2 years agoMerge pull request #27830 from 1awesomeJ/initrd
Lennart Poettering [Wed, 28 Jun 2023 17:18:03 +0000 (19:18 +0200)] 
Merge pull request #27830 from 1awesomeJ/initrd

PID1: Detect battery level in initrd and if low refuse continuing to …

2 years agotest: enable LSan for certain wrapped binaries 28178/head
Frantisek Sumsal [Wed, 28 Jun 2023 07:53:13 +0000 (09:53 +0200)] 
test: enable LSan for certain wrapped binaries

So we're able to detect memory leaks in our NSS modules.

An example after introducing a memory leak in nss-myhostname.c:

testsuite-71.sh[2881]: =================================================================
testsuite-71.sh[2881]: ==2880==ERROR: LeakSanitizer: detected memory leaks
testsuite-71.sh[2881]: Direct leak of 2 byte(s) in 1 object(s) allocated from:
testsuite-71.sh[2881]:     #0 0x7fa28907243b in strdup (/usr/lib64/libasan.so.8.0.0+0x7243b)
testsuite-71.sh[2881]:     #1 0x7fa286a7bc10 in gethostname_full ../src/basic/hostname-util.c:67
testsuite-71.sh[2881]:     #2 0x7fa286a74af9 in gethostname_malloc ../src/basic/hostname-util.h:24
testsuite-71.sh[2881]:     #3 0x7fa286a756f4 in _nss_myhostname_gethostbyname4_r ../src/nss-myhostname/nss-myhostname.c:79
testsuite-71.sh[2881]:     #4 0x7fa288f17588 in getaddrinfo (/lib64/libc.so.6+0xf4588)
testsuite-71.sh[2881]:     #5 0x7fa2890a4d93 in __interceptor_getaddrinfo.part.0 (/usr/lib64/libasan.so.8.0.0+0xa4d93)
testsuite-71.sh[2881]:     #6 0x55a54b2b7159 in ahosts_keys_int.part.0 (/usr/bin/getent.orig+0x4159)
testsuite-71.sh[2881]: SUMMARY: AddressSanitizer: 2 byte(s) leaked in 1 allocation(s).

2 years agotest: add a couple of tests for nss-mymachines
Frantisek Sumsal [Tue, 27 Jun 2023 20:34:59 +0000 (22:34 +0200)] 
test: add a couple of tests for nss-mymachines

2 years agoupdate NEWS
Lennart Poettering [Fri, 23 Jun 2023 19:48:05 +0000 (21:48 +0200)] 
update NEWS

2 years agoNEWS: add pcrs verb
Lennart Poettering [Wed, 28 Jun 2023 14:53:30 +0000 (16:53 +0200)] 
NEWS: add pcrs verb

2 years agoanalyze: add new "pcrs" verb
Lennart Poettering [Tue, 27 Jun 2023 16:45:34 +0000 (18:45 +0200)] 
analyze: add new "pcrs" verb

It shows the PCRs we know about along with their name strings and
current values.

2 years agopwquality: remove old built-in cracklib dictionary workaround
Dmitry V. Levin [Tue, 27 Jun 2023 21:00:00 +0000 (21:00 +0000)] 
pwquality: remove old built-in cracklib dictionary workaround

The first version of libpwquality with the required change was 1.4.1
released in 2019.

2 years agoNEWS: typos
Luca Boccassi [Wed, 28 Jun 2023 13:51:35 +0000 (14:51 +0100)] 
NEWS: typos

2 years agoPID1: detect battery level in initrd and if low refuse continuing to boot, print... 27830/head
OMOJOLA JOSHUA [Wed, 28 Jun 2023 13:04:42 +0000 (14:04 +0100)] 
PID1: detect battery level in initrd and if low refuse continuing to boot, print message and shut down.

2 years agoNEWS: mention that sd_event_trim_memory can be overridden
Luca Boccassi [Wed, 28 Jun 2023 13:43:54 +0000 (14:43 +0100)] 
NEWS: mention that sd_event_trim_memory can be overridden

2 years agoNEWS: mention addon<efi>.efi.stub
Luca Boccassi [Wed, 28 Jun 2023 13:42:18 +0000 (14:42 +0100)] 
NEWS: mention addon<efi>.efi.stub

2 years agoNEWS: do not make specific promises about future development, keep it vague
Luca Boccassi [Wed, 28 Jun 2023 13:34:12 +0000 (14:34 +0100)] 
NEWS: do not make specific promises about future development, keep it vague

2 years agoNEWS: move PrivateUsers= change at the top, as it changes behaviour
Luca Boccassi [Wed, 28 Jun 2023 13:33:48 +0000 (14:33 +0100)] 
NEWS: move PrivateUsers= change at the top, as it changes behaviour

2 years agoNEWS: more updates for future v254
Lennart Poettering [Tue, 27 Jun 2023 16:44:57 +0000 (18:44 +0200)] 
NEWS: more updates for future v254

2 years agoRemove battery level check at early boot from TODO
OMOJOLA JOSHUA [Wed, 28 Jun 2023 12:32:38 +0000 (13:32 +0100)] 
Remove battery level check at early boot from TODO

2 years agosysv-generator: deprecate even more
Lennart Poettering [Wed, 28 Jun 2023 07:50:16 +0000 (09:50 +0200)] 
sysv-generator: deprecate even more

Let's add a comment about the deprecation to the docs, and as comment to
the sources.

Follow-up for: #28179

2 years agotest: add a couple of tests for nss-myhostname
Frantisek Sumsal [Tue, 27 Jun 2023 14:15:24 +0000 (16:15 +0200)] 
test: add a couple of tests for nss-myhostname

2 years agomute the memory recursiveprot log if version of kernel is low.
cunshunxia [Mon, 26 Jun 2023 04:14:40 +0000 (04:14 +0000)] 
mute the memory recursiveprot log if version of kernel is low.

2 years agoMerge pull request #28179 from poettering/sysvgendeprecated
Lennart Poettering [Wed, 28 Jun 2023 07:37:42 +0000 (09:37 +0200)] 
Merge pull request #28179 from poettering/sysvgendeprecated

make systemd-sysv-generator even more deprecated

2 years agomeson: drop doubled empty line
Yu Watanabe [Fri, 23 Jun 2023 02:16:47 +0000 (11:16 +0900)] 
meson: drop doubled empty line

2 years agostring-util: pass ANSI sequences through unchanged 28146/head
Zbigniew Jędrzejewski-Szmek [Sat, 24 Jun 2023 00:40:14 +0000 (18:40 -0600)] 
string-util: pass ANSI sequences through unchanged

Cutting off in the middle may leave the terminal in a bad state, breaking
further output. But we don't know what a given ANSI sequence does, e.g.
ANSI_NORMAL should not be skipped. But it is also nice to keep various
sequences intact, so that if we had part of the string in blue, and we cut out
the beginning of the blue part, we still want to keep the remainder in color.
So let's just pass them through, stripping out the characters that take up
actual space.

Also, use memcpy_safe as we may end up copying zero bytes when ellipsizing at
the start/end of a string.

Fixes: #24502
This also fixes an ugliness where we would ellipsize string with ANSI
sequences too much, leading to output that was narrower on screen than the
requested length:

  Starting AAAAAAAAAAAAAAAAAAAAA.service
  Starting BBBBBBBBBBBBBBBBBBBBB.service
  Starting LONG…ER.service

Co-authored-by: Jan Janssen <medhefgo@web.de>
2 years agoNEWS: add comment about SysV script deprecation 28179/head
Lennart Poettering [Tue, 27 Jun 2023 21:19:17 +0000 (23:19 +0200)] 
NEWS: add comment about SysV script deprecation

2 years agosysv-generator: make sysv deprecation message a bit "louder"
Lennart Poettering [Tue, 27 Jun 2023 16:46:28 +0000 (18:46 +0200)] 
sysv-generator: make sysv deprecation message a bit "louder"

Let's add a catalog entry, make the log record structured, and most
importantly, let's add warning emojis.

Just to underline that this stuff should really go away.

2 years agojournalctl: read env vars that override compiled catalog database and source files
Lennart Poettering [Tue, 27 Jun 2023 21:15:27 +0000 (23:15 +0200)] 
journalctl: read env vars that override compiled catalog database and source files

This makes it a bit easier to test catalog files without installing
systemd.

2 years agocatalog,po: update Polish translation
Piotr Drąg [Sun, 28 May 2023 11:35:31 +0000 (13:35 +0200)] 
catalog,po: update Polish translation

2 years agotpm2: make PcrIndex an anonymous enum
Lennart Poettering [Tue, 27 Jun 2023 16:46:07 +0000 (18:46 +0200)] 
tpm2: make PcrIndex an anonymous enum

It just gives names for things generally just handled as numeric
indexes, hence drop the type name, and make the enum anonymous. Nothing
is using the type name anyway.

2 years agohwdb: fix volume control keys on Lenovo IdeaPad Flex 5 (14ARE05)
Hoe Hao Cheng [Tue, 27 Jun 2023 13:29:57 +0000 (21:29 +0800)] 
hwdb: fix volume control keys on Lenovo IdeaPad Flex 5 (14ARE05)

2 years agorepart: Fix HAVE_LIBCRYPTSETUP check
Daan De Meyer [Tue, 27 Jun 2023 11:54:22 +0000 (13:54 +0200)] 
repart: Fix HAVE_LIBCRYPTSETUP check

Fixes #28169

2 years agoenv-file: when resolving env vars in command lines, collect list of unset/invalid... 28164/head
Lennart Poettering [Mon, 26 Jun 2023 15:20:49 +0000 (17:20 +0200)] 
env-file: when resolving env vars in command lines, collect list of unset/invalid ones

When resolving environment variables we currently silently resolve unset
and invalid environment variables to empty strings. Let's do this
slightly less silently: log about unset and invalid env vars, but still
resolve them to an empty string.

Fixes: #27036
2 years agoenv-util: make strv_env_get() a static inline wrapper around strv_env_get_n()
Lennart Poettering [Mon, 26 Jun 2023 14:15:44 +0000 (16:15 +0200)] 
env-util: make strv_env_get() a static inline wrapper around strv_env_get_n()

Let's make length = SIZE_MAX also mean "call strlen()".

2 years agoenv-util: introduce proper flags type ReplaceEnvFlags for replace_env()
Lennart Poettering [Mon, 26 Jun 2023 15:10:28 +0000 (17:10 +0200)] 
env-util: introduce proper flags type ReplaceEnvFlags for replace_env()

2 years agoenv-util: add explicit size check before strndupa() in strv_env_get_n()
Lennart Poettering [Mon, 26 Jun 2023 14:14:27 +0000 (16:14 +0200)] 
env-util: add explicit size check before strndupa() in strv_env_get_n()

Let's better be safe than sorry.

2 years agoenv-util: modernize env_name_is_valid_n() a bit
Lennart Poettering [Mon, 26 Jun 2023 14:13:27 +0000 (16:13 +0200)] 
env-util: modernize env_name_is_valid_n() a bit

If the size is specified as SIZE_MAX, then imply strlen().

2 years agostring-util: add strextendn() helper
Lennart Poettering [Mon, 26 Jun 2023 15:15:28 +0000 (17:15 +0200)] 
string-util: add strextendn() helper

2 years agoNEWS: copy deprecation notices for cgroup v1 and unmerged-usr/split-usr
Luca Boccassi [Tue, 27 Jun 2023 11:38:27 +0000 (12:38 +0100)] 
NEWS: copy deprecation notices for cgroup v1 and unmerged-usr/split-usr

2 years agoNEWS: fix typos
Luca Boccassi [Tue, 27 Jun 2023 11:30:57 +0000 (12:30 +0100)] 
NEWS: fix typos

2 years agostart updating NEWS for 254
Lennart Poettering [Tue, 27 Jun 2023 11:13:27 +0000 (13:13 +0200)] 
start updating NEWS for 254

2 years agoreplace basename() with path_extract_filename() in resolved-resolv-conf.c (#28114)
Steven Luo [Tue, 27 Jun 2023 08:11:38 +0000 (04:11 -0400)] 
replace basename() with path_extract_filename() in resolved-resolv-conf.c (#28114)

2 years agoMerge pull request #28064 from bluca/test_oomd_swap
Luca Boccassi [Mon, 26 Jun 2023 18:39:07 +0000 (19:39 +0100)] 
Merge pull request #28064 from bluca/test_oomd_swap

TEST-55-OOMD: use 'stress' to create high pressure, ensure swap is set up correctly on Ubuntu CI

2 years agoMerge pull request #28159 from poettering/bpf-foreign-warnings
Lennart Poettering [Mon, 26 Jun 2023 16:02:47 +0000 (18:02 +0200)] 
Merge pull request #28159 from poettering/bpf-foreign-warnings

bpf-foreign: tweaks

2 years agomount-util: use inode_type_to_string() in mode_to_inaccessible_inode()
Lennart Poettering [Mon, 26 Jun 2023 10:52:22 +0000 (12:52 +0200)] 
mount-util: use inode_type_to_string() in mode_to_inaccessible_inode()

Let's reuse the inode type name table here and shorten/simplify the code
a bit.

2 years agofirstboot: fix typo
Antonio Alvarez Feijoo [Mon, 26 Jun 2023 14:01:13 +0000 (16:01 +0200)] 
firstboot: fix typo

2 years agosleep: refuse hibernation if there's no possible way to resume
Mike Yuan [Fri, 23 Jun 2023 21:49:21 +0000 (05:49 +0800)] 
sleep: refuse hibernation if there's no possible way to resume

Follow-up for 90efe8a6d4c0035c6a01d42805be87d99fb12f9a
Closes #19819

2 years agotest: fix test service unit description
Frantisek Sumsal [Mon, 26 Jun 2023 13:54:01 +0000 (15:54 +0200)] 
test: fix test service unit description

2 years agomkosi: Update to latest
Daan De Meyer [Mon, 26 Jun 2023 12:08:49 +0000 (14:08 +0200)] 
mkosi: Update to latest

mkosi now prebuilds the hwdb during image build which should hopefully
get rid of the CentOS 8 failures we're seeing in CI.

2 years agoman: rework BPFForeign= documentation a bit 28159/head
Lennart Poettering [Mon, 26 Jun 2023 11:16:11 +0000 (13:16 +0200)] 
man: rework BPFForeign= documentation a bit

Various assorted changes, among them make clear that a missing BPF
program is not reason to abort unit activation.

2 years agobpf-foreign: add an explicit, explanatory message when reference BPF program is not...
Lennart Poettering [Mon, 26 Jun 2023 11:05:56 +0000 (13:05 +0200)] 
bpf-foreign: add an explicit, explanatory message when reference BPF program is not loaded yet

2 years agobpf-foreign: if one program fails, still load the next
Lennart Poettering [Mon, 26 Jun 2023 11:04:59 +0000 (13:04 +0200)] 
bpf-foreign: if one program fails, still load the next

Let's make sure that if we load one program we don't prematurely fail,
and continue with the others still.

2 years agobpf-foreign: remove duplicate various occasions of duplicate logging
Lennart Poettering [Mon, 26 Jun 2023 11:03:39 +0000 (13:03 +0200)] 
bpf-foreign: remove duplicate various occasions of duplicate logging

2 years agotest: skip if ldd command not found
Yu Watanabe [Sun, 25 Jun 2023 05:53:02 +0000 (14:53 +0900)] 
test: skip if ldd command not found

Prompted by #28015.

2 years agoMerge pull request #28117 from yuwata/copy-follow-ups
Daan De Meyer [Sun, 25 Jun 2023 11:35:15 +0000 (12:35 +0100)] 
Merge pull request #28117 from yuwata/copy-follow-ups

copy: several follow ups

2 years agoMerge pull request #28149 from mrc0mmand/test-machinectl-bump-container-size
Luca Boccassi [Sun, 25 Jun 2023 11:01:30 +0000 (12:01 +0100)] 
Merge pull request #28149 from mrc0mmand/test-machinectl-bump-container-size

test: bump the test container size to 64 MiB

2 years agopo: Translated using Weblate (Korean)
김인수 [Sun, 25 Jun 2023 07:20:56 +0000 (09:20 +0200)] 
po: Translated using Weblate (Korean)

Currently translated at 100.0% (193 of 193 strings)

Co-authored-by: 김인수 <simmon@nplob.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ko/
Translation: systemd/main

2 years agoMerge pull request #28147 from mrc0mmand/drop-workarounds
Yu Watanabe [Sun, 25 Jun 2023 05:13:45 +0000 (14:13 +0900)] 
Merge pull request #28147 from mrc0mmand/drop-workarounds

test: drop a couple of workarounds for recently fixed issues

2 years agotest: bump the test container size to 64 MiB 28149/head
Frantisek Sumsal [Sat, 24 Jun 2023 18:25:04 +0000 (20:25 +0200)] 
test: bump the test container size to 64 MiB

As 32 MiB appears to be on the edge of barely enough on C8S:

[  149.974689] testsuite-13.sh[601]: + dd if=/dev/zero of=/tmp/container.raw bs=1M count=32
[  150.388423] testsuite-13.sh[1096]: 32+0 records in
[  150.390721] testsuite-13.sh[1096]: 32+0 records out
[  150.392450] testsuite-13.sh[1096]: 33554432 bytes (34 MB, 32 MiB) copied, 0.354336 s, 94.7 MB/s
[  150.396422] testsuite-13.sh[601]: + mkfs.ext4 /tmp/container.raw
[  150.472209] testsuite-13.sh[1097]: mke2fs 1.45.6 (20-Mar-2020)
[  150.561303] testsuite-13.sh[1097]: Discarding device blocks: done
[  150.565438] testsuite-13.sh[1097]: Creating filesystem with 32768 1k blocks and 8192 inodes
[  150.568301] testsuite-13.sh[1097]: Filesystem UUID: d8e3c43b-0f1f-4e89-8c26-100e4a32b64f
[  150.569777] testsuite-13.sh[1097]: Superblock backups stored on blocks:
[  150.571135] testsuite-13.sh[1097]:   8193, 24577
[  150.572751] testsuite-13.sh[1097]: Allocating group tables: done
[  150.574294] testsuite-13.sh[1097]: Writing inode tables: done
[  150.598696] testsuite-13.sh[1097]: Creating journal (4096 blocks): done
[  150.604285] testsuite-13.sh[1097]: Writing superblocks and filesystem accounting information: done
[  150.612309] testsuite-13.sh[601]: + mount -o loop /tmp/container.raw /tmp/mnt
[  150.879736] testsuite-13.sh[601]: + cp -r /var/lib/machines/container1/bin ... /tmp/mnt
[  152.347545] testsuite-13.sh[1104]: cp: cannot create directory '/tmp/mnt/var/log': No space left on device
[  152.351739] testsuite-13.sh[1104]: cp: cannot create directory '/tmp/mnt/var/tmp': No space left on device

2 years agotest: show the subtest name together with the failing code
Frantisek Sumsal [Sat, 24 Jun 2023 18:43:26 +0000 (20:43 +0200)] 
test: show the subtest name together with the failing code

To make debugging slightly easier.

2 years agotest: don't assume yum is a script
François Rigault [Sat, 24 Jun 2023 08:44:54 +0000 (10:44 +0200)] 
test: don't assume yum is a script

on Rawhide at the moment yum is a symlink to dnf5 which is a binary.

2 years agoTEST-55-OOMD: use swap file instead of partition 28064/head
Luca Boccassi [Fri, 23 Jun 2023 22:19:31 +0000 (23:19 +0100)] 
TEST-55-OOMD: use swap file instead of partition

The partition seems not to work on Ubuntu for some reason, use a
swap file instead

2 years agoTEST-55-OOMD: use 'stress' to create high pressure
Luca Boccassi [Fri, 16 Jun 2023 23:07:32 +0000 (00:07 +0100)] 
TEST-55-OOMD: use 'stress' to create high pressure

The test fails on my machine, running Debian stable, because
testsuite-55-testbloat.service just swaps and never goes over the
limit, so it's not killed. Use 'stress' instead which seems to be
able to overwhelm the swap too.

2 years agotest: drop timeout when running portablectl 28147/head
Frantisek Sumsal [Sat, 24 Jun 2023 08:35:12 +0000 (10:35 +0200)] 
test: drop timeout when running portablectl

The deadlock should be resolved by #28123, so let's check if it's indeed
the case.

2 years agotest: test the /boot endpoint under nspawn as well
Frantisek Sumsal [Sat, 24 Jun 2023 08:33:14 +0000 (10:33 +0200)] 
test: test the /boot endpoint under nspawn as well

Since #28144 should be now resolved by fb0e106.

2 years agotest-gunicode: add new test to show that unichar_iswide() is borked
Zbigniew Jędrzejewski-Szmek [Fri, 23 Jun 2023 23:24:11 +0000 (17:24 -0600)] 
test-gunicode: add new test to show that unichar_iswide() is borked

I discovered this while looking at the tests with wide characters in the next
patch. It's something to fix, but not directly relevant to the issue of
skipping ANSI in ellipsization. We will generate output that is wider than
expected in some cases, but wide characters are used very rarely so this isn't
such a big problem.

2 years agobasic/utf8: make utf8_encoded_to_unichar() return length of the codepoint
Zbigniew Jędrzejewski-Szmek [Fri, 23 Jun 2023 17:10:42 +0000 (11:10 -0600)] 
basic/utf8: make utf8_encoded_to_unichar() return length of the codepoint

2 years agoMerge pull request #27330 from YHNdnzj/hibernate-resume-auto
Lennart Poettering [Fri, 23 Jun 2023 21:03:32 +0000 (23:03 +0200)] 
Merge pull request #27330 from YHNdnzj/hibernate-resume-auto

sleep/hibernate-resume: pass hibernate location through efivar for resume without kernel cmdline

2 years agoMerge pull request #27843 from yuwata/usleep_safe
Lennart Poettering [Fri, 23 Jun 2023 21:03:15 +0000 (23:03 +0200)] 
Merge pull request #27843 from yuwata/usleep_safe

time-util: introduce usleep_safe()

2 years agoMerge pull request #28144 from poettering/procfs-submounts-move
Lennart Poettering [Fri, 23 Jun 2023 20:53:25 +0000 (22:53 +0200)] 
Merge pull request #28144 from poettering/procfs-submounts-move

pid1: when setting up a new procfs instance for a service, mount submounts from host into it

2 years agoexecute: don't honour PrivateNetwork() if we lack CAP_NET_ADMIN
Lennart Poettering [Fri, 23 Jun 2023 14:06:29 +0000 (16:06 +0200)] 
execute: don't honour PrivateNetwork() if we lack CAP_NET_ADMIN

Somehow the Linux kernel allows us to allocate a network namespace if we
possess CAP_SYS_ADMIN but doesn't allow us to configure it, unless we
also have CAP_NET_ADMIN.

Taking that into consideration let's avoid allocating a network
namespace we cannot even configure "lo" in.

This is common case if nspawn is invoked without userns and without
netns, because in that case it will have CAP_SYS_ADMIN but no
CAP_NET_ADMIN.

This also takes down a notch the messages about the automatic
downgrading. These have been LOG_WARNING so far, and I downgraded them
to LOG_NOTICE, since in an environment where CAP_NET_ADMIN is not
available this is really not something to be concerned about, but still
noticable. With that it's still more priorized than regular LOG_INFO.

Fixes: #27292
2 years agoMerge pull request #28140 from mrc0mmand/more-coverage
Luca Boccassi [Fri, 23 Jun 2023 18:56:28 +0000 (19:56 +0100)] 
Merge pull request #28140 from mrc0mmand/more-coverage

test: test transactions with cycles