]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
3 years agotmpfile: port tempfn_*() to path_extract_*() 18834/head
Lennart Poettering [Fri, 26 Feb 2021 17:24:58 +0000 (18:24 +0100)] 
tmpfile: port tempfn_*() to path_extract_*()

3 years agomachinectl: make sure of path_extract_filename() returning O_DIRECTORY
Lennart Poettering [Tue, 23 Feb 2021 16:22:31 +0000 (17:22 +0100)] 
machinectl: make sure of path_extract_filename() returning O_DIRECTORY

3 years agopath-util: return O_DIRECTORY from path_extract_filename() when path ends in slash
Lennart Poettering [Tue, 23 Feb 2021 15:49:29 +0000 (16:49 +0100)] 
path-util: return O_DIRECTORY from path_extract_filename() when path ends in slash

Let's fine-tune the path_extract_filename() interface: on succes return
O_DIRECTORY as indicator that the input path was slash-suffixed, and
regular 0 otherwise. This is useful since in many cases it is useful to
filter out paths that must refer to dirs early on.

I opted for O_DIRECTORY instead of the following other ideas:

1. return -EISDIR: I think the function should return an extracted
   filename even when referring to an obvious dir, so this is not an
   option.

2. S_ISDIR, this was a strong contender, but I think O_DIRECTORY is a
   tiny bit nicer since quite likely we will go on and open the thing,
   maybe with openat(), and hence it's quite nice to be able to OR in
   the return value into the flags argument of openat().

3. A new enum defined with two values "dont-know" and
   "definitely-directory". But I figured this was unnecessary, given we
   have other options too, that reuse existing definitions for very
   similar purposes.

3 years agopath-util: add path_extract_directory(), to match path_extract_filename()
Lennart Poettering [Tue, 26 Jan 2021 11:28:23 +0000 (12:28 +0100)] 
path-util: add path_extract_directory(), to match path_extract_filename()

These two together are a lot like dirname() + basename() but have the
benefit that they return clear errors when one passes a special case
path to them where the extraction doesn't make sense, i.e. "", "/",
"foo", "foo/" and so on.

Sooner or later we should probably port all our uses of
dirname()/basename() over to this, to catch these special cases more
safely.

3 years agoman: document usage of SD_BUS_CREDS_AUGMENT
Luca Boccassi [Tue, 2 Mar 2021 11:12:09 +0000 (11:12 +0000)] 
man: document usage of SD_BUS_CREDS_AUGMENT

3 years agoMerge pull request #18841 from keszybz/a-bunch-of-man-page-updates
Lennart Poettering [Tue, 2 Mar 2021 10:03:44 +0000 (11:03 +0100)] 
Merge pull request #18841 from keszybz/a-bunch-of-man-page-updates

Two minor small man page updates

3 years agoudev: add i2c to 60-persistent-input.rules for by-path (#18808)
Tom Shield [Tue, 2 Mar 2021 09:56:06 +0000 (03:56 -0600)] 
udev: add i2c to 60-persistent-input.rules for by-path (#18808)

Add the i2c subsystem to those that create by-path links.
i2c devices may not have IDs so we can't rely on the by-id links
but they (or some of them) should at least have a path that we can use.

3 years agosd-device: don't use BPF filtering for kernel monitors
Martin Wilck [Thu, 25 Feb 2021 16:09:03 +0000 (17:09 +0100)] 
sd-device: don't use BPF filtering for kernel monitors

BPF filtering accesses fields in the netlink header that are
only filled in by libudev, never by the kernel. Therefore adding
BPF filters for kernel monitors is pointless. Even false filtering
of kernel events might be possible; at least it's hard to prove that
it can't occur.

3 years agotree-wide: fix typo
Yu Watanabe [Tue, 2 Mar 2021 05:13:34 +0000 (14:13 +0900)] 
tree-wide: fix typo

3 years agoman: reword sentence about lone coredumps 18841/head
Zbigniew Jędrzejewski-Szmek [Tue, 2 Mar 2021 08:37:49 +0000 (09:37 +0100)] 
man: reword sentence about lone coredumps

Let's make it clear that they are not as useful as the full thing.

3 years agoman: add note about "SIG" prefix
Zbigniew Jędrzejewski-Szmek [Tue, 2 Mar 2021 08:35:22 +0000 (09:35 +0100)] 
man: add note about "SIG" prefix

3 years agoMerge pull request #18832 from keszybz/resolved-stop-sources
Yu Watanabe [Tue, 2 Mar 2021 05:15:18 +0000 (14:15 +0900)] 
Merge pull request #18832 from keszybz/resolved-stop-sources

Always stop sd-event sources in resolved when unreffing them

3 years agofs-util: use ERRNO_IS_NOT_SUPPORTED() at two more places where we can't be sure of...
Lennart Poettering [Fri, 26 Feb 2021 16:45:01 +0000 (17:45 +0100)] 
fs-util: use ERRNO_IS_NOT_SUPPORTED() at two more places where we can't be sure of the backing implementation

3 years agobtrfs-util: add helper that abstracts "might be btrfs subvol?" check
Lennart Poettering [Fri, 26 Feb 2021 16:39:55 +0000 (17:39 +0100)] 
btrfs-util: add helper that abstracts "might be btrfs subvol?" check

Let#s not hardcode inode nr 256 everywhere, but abstract this check
slightly.

3 years agotest-signal-util: add test for signal_is_blocked()
Lennart Poettering [Thu, 25 Feb 2021 11:04:49 +0000 (12:04 +0100)] 
test-signal-util: add test for signal_is_blocked()

3 years agoresolved: disable event sources before unreffing them 18832/head
Zbigniew Jędrzejewski-Szmek [Mon, 1 Mar 2021 22:10:06 +0000 (23:10 +0100)] 
resolved: disable event sources before unreffing them

We generally operate on the assumption that a source is "gone" as soon
as we unref it. This is generally true because we have the only reference.
But if something else holds the reference, our unref doesn't really stop
the source and it could fire again.

In particular, on_query_timeout() is called with DnsQuery* as userdata, and
it calls dns_query_stop() which invalidates that pointer. If it was ever
called again, we'd be accessing already-freed memory.

I don't see what would hold the reference. sd-event takes a temporary reference,
but on the sd_event object, not on the individual sources. And our sources
are non-floating, so there is no reference from the sd_event object to the
sources.

For #18427.

3 years agoresolved: unref event object after the sources
Zbigniew Jędrzejewski-Szmek [Mon, 1 Mar 2021 21:49:06 +0000 (22:49 +0100)] 
resolved: unref event object after the sources

It shouldn't matter because of all the refcounting, but it looks unclean.

3 years agoMerge pull request #18831 from keszybz/a-bunch-of-man-page-updates
Luca Boccassi [Mon, 1 Mar 2021 22:11:44 +0000 (22:11 +0000)] 
Merge pull request #18831 from keszybz/a-bunch-of-man-page-updates

A bunch of man page updates

3 years agoman: document \u and \U, say that utf-8 is allowed 18831/head
Zbigniew Jędrzejewski-Szmek [Mon, 1 Mar 2021 19:53:22 +0000 (20:53 +0100)] 
man: document \u and \U, say that utf-8 is allowed

3 years agoman: move two sysv-specific variables to docs
Zbigniew Jędrzejewski-Szmek [Mon, 1 Mar 2021 19:42:33 +0000 (20:42 +0100)] 
man: move two sysv-specific variables to docs

https://github.com/systemd/systemd/pull/18827#discussion_r584807684

3 years agoman: clarify what is inside/outside the container in coredump info
Zbigniew Jędrzejewski-Szmek [Mon, 1 Mar 2021 19:30:40 +0000 (20:30 +0100)] 
man: clarify what is inside/outside the container in coredump info

3 years agoman: update link to systemd-coredump-python
Zbigniew Jędrzejewski-Szmek [Mon, 1 Mar 2021 12:51:46 +0000 (13:51 +0100)] 
man: update link to systemd-coredump-python

This got moved under the systemd umbrella a long time ago.
Github redirects from the old path, so the link worked, but it's
nicer to use the real location.

3 years agoMerge pull request #18827 from keszybz/a-bunch-of-man-page-updates
Zbigniew Jędrzejewski-Szmek [Mon, 1 Mar 2021 14:14:40 +0000 (15:14 +0100)] 
Merge pull request #18827 from keszybz/a-bunch-of-man-page-updates

A bunch of man page updates

3 years agoMerge pull request #18828 from keszybz/three-fixes
Zbigniew Jędrzejewski-Szmek [Mon, 1 Mar 2021 14:13:51 +0000 (15:13 +0100)] 
Merge pull request #18828 from keszybz/three-fixes

Three small fixes

3 years agoman: say that machine-info doesn't have to exist 18827/head
Zbigniew Jędrzejewski-Szmek [Mon, 1 Mar 2021 09:08:28 +0000 (10:08 +0100)] 
man: say that machine-info doesn't have to exist

Esp. CHASSIS is only useful as an override. Make that clear in the description.

Fixes #3496.

3 years agoman: tweak descriptions of how tmpfiles should be started
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 19:44:25 +0000 (20:44 +0100)] 
man: tweak descriptions of how tmpfiles should be started

We shouldn't imply that invocation without any parameters is OK.
Also, mention that the service can be restarted.

Fixes #8684.

3 years agoman: describe quoting and specifiers in Environment=
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 17:37:01 +0000 (18:37 +0100)] 
man: describe quoting and specifiers in Environment=

Fixes #10604.

3 years agoman: move quoting description to systemd.syntax
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 17:36:00 +0000 (18:36 +0100)] 
man: move quoting description to systemd.syntax

We use very similar quoting rules in many places. Let's move this
lengthy text out of systemd.service page.

3 years agoman: explain how to invoke tmpfiles for debugging
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 17:08:53 +0000 (18:08 +0100)] 
man: explain how to invoke tmpfiles for debugging

Fixes #11914.

3 years agoman: mention that != matches nonexistent keys too
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 16:54:05 +0000 (17:54 +0100)] 
man: mention that != matches nonexistent keys too

Fixes #15984.

3 years agoman: reorder match types in udev rules
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 16:45:06 +0000 (17:45 +0100)] 
man: reorder match types in udev rules

The plural version should always be adjacent to the singular one.
And the plural should not be explained before the singular one…

3 years agoman: add footnote explaining why "localhost" query is sent out to the network
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 16:36:00 +0000 (17:36 +0100)] 
man: add footnote explaining why "localhost" query is sent out to the network

I tried to make the explanation brief, but this isn't so easy. It seems better
to push this out to a footnote instead of the main text.

Fixes #16584.

3 years agoman: move motivational explanation to footnote
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 16:12:38 +0000 (17:12 +0100)] 
man: move motivational explanation to footnote

3 years agoman: describe the syntax for {Job,}{Running,}TimeoutSec=
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 13:12:12 +0000 (14:12 +0100)] 
man: describe the syntax for {Job,}{Running,}TimeoutSec=

Fixes #16644.

Also break the text into paragraphs to make it a bit easier to read.

3 years agoman: move description of $SYSTEMD_SYSVINIT_PATH to the only user
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 12:43:57 +0000 (13:43 +0100)] 
man: move description of $SYSTEMD_SYSVINIT_PATH to the only user

3 years agoman: reuse common-variables in systemd(1)
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 12:41:58 +0000 (13:41 +0100)] 
man: reuse common-variables in systemd(1)

This requires a bit of gimnastics, but I think it's still better than
status quo ante, and better than duplicating the text.

3 years agobasic/log: align tables
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 12:30:07 +0000 (13:30 +0100)] 
basic/log: align tables

3 years agoman: describe various logging configuration variables
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 12:22:06 +0000 (13:22 +0100)] 
man: describe various logging configuration variables

Fixes #17484.

This patch affects systemctl(1), as well as all man pages that include
all of common-variables.xml, i.e. most of our command line tools.

3 years agoman: rename less-variables→common-variables
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 11:18:25 +0000 (12:18 +0100)] 
man: rename less-variables→common-variables

Some are not about less, e.g. $SYSTEMD_URLIFY.

3 years agocoredump: indent comment
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 10:58:39 +0000 (11:58 +0100)] 
coredump: indent comment

3 years agoman: describe coredump fields
Zbigniew Jędrzejewski-Szmek [Sun, 28 Feb 2021 10:57:43 +0000 (11:57 +0100)] 
man: describe coredump fields

We save a wealth of information about the process, but this might not be
immediately obvious.

3 years agoudev rules: add rule to create /dev/ptp_hyperv
Luca Boccassi [Fri, 26 Feb 2021 10:25:31 +0000 (10:25 +0000)] 
udev rules: add rule to create /dev/ptp_hyperv

As for the KVM case, necessary for network cards with
PTP devices when running a guest on HyperV

3 years agotest-socket-util: fix test for address parsing w/o IPv6 support 18828/head
Zbigniew Jędrzejewski-Szmek [Mon, 1 Mar 2021 10:25:45 +0000 (11:25 +0100)] 
test-socket-util: fix test for address parsing w/o IPv6 support

sockaddr_pretty() is the function that is ultimately called to print
the address, and afaics, it'll always use 0.0.0.0 if family==AF_INET.
So the test must have always been broken on systems with IPv6 support.

Fixes a failure in semaphore debian autopkgtest ci:
"65535" → ✓ 0 → "0.0.0.0:65535" (expect 0 / "[::]:65535") 15:15
Assertion 'streq(out, expected ?: in)' failed at src/test/test-socket-netlink.c:32, function test_socket_address_parse_one(). Aborting. 15:15

3 years agoNEWS: fix path
Zbigniew Jędrzejewski-Szmek [Mon, 1 Mar 2021 10:09:59 +0000 (11:09 +0100)] 
NEWS: fix path

Follow-up for 57733518817c1217b9f442ca790ff3f50705b1c8.

3 years agocore: change confusing parameter name
Zbigniew Jędrzejewski-Szmek [Mon, 1 Mar 2021 09:37:33 +0000 (10:37 +0100)] 
core: change confusing parameter name

fixup_output() is used for both stdout and stderr.

3 years agoSkip TEST-50 on ubuntu ci
Dan Streetman [Fri, 26 Feb 2021 13:41:16 +0000 (08:41 -0500)] 
Skip TEST-50 on ubuntu ci

This test is flaky, and requires updates to the kernel to fix, so
disable it for now.

https://github.com/systemd/systemd/issues/17469

3 years agoremove the default value of CPUAffinity
Einsler Lee [Mon, 1 Mar 2021 08:34:10 +0000 (16:34 +0800)] 
remove the default value of CPUAffinity

"1 2" is not the default value systemd used to set CPUAffinity. Let's remove it to avoid confusing users.

3 years agopo: Translated using Weblate (Chinese (Simplified) (zh_CN))
Charles Lee [Mon, 1 Mar 2021 09:40:15 +0000 (10:40 +0100)] 
po: Translated using Weblate (Chinese (Simplified) (zh_CN))

Currently translated at 100.0% (189 of 189 strings)

Co-authored-by: Charles Lee <lchopn@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/zh_CN/
Translation: systemd/main

3 years agoFix path typo in systemd.unit
Lajos Veres [Sun, 28 Feb 2021 22:48:08 +0000 (22:48 +0000)] 
Fix path typo in systemd.unit

/etc/systemd/systemd/ => /etc/systemd/system/

3 years agoman: make systemd-coredump and coredumpctl descriptions more accessible
Zbigniew Jędrzejewski-Szmek [Sat, 27 Feb 2021 18:00:51 +0000 (19:00 +0100)] 
man: make systemd-coredump and coredumpctl descriptions more accessible

Fixes #17910: we didn't clearly explain that coredumps may exist without
journal entries, and vice versa.

Also, make the examples more concrete, and use '$' instead of '#' to avoid
suggesting that running as root is required. The text is extended a bit in
various places. In the description of systemd-coredump, the details of executor
separation are split out to a separate subsection, since they are rather
detailed and not necessary to understand for normal use.

3 years agoTranslated using Weblate (Kabyle)
Slimane Selyan Amiri [Fri, 26 Feb 2021 19:40:15 +0000 (20:40 +0100)] 
Translated using Weblate (Kabyle)

Currently translated at 1.5% (3 of 189 strings)

Added translation using Weblate (Kabyle)

Co-authored-by: Slimane Selyan Amiri <selyan.kab@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/kab/
Translation: systemd/main

3 years agocore: do not set noexec on sysfs/procfs
Luca Boccassi [Thu, 25 Feb 2021 18:49:53 +0000 (18:49 +0000)] 
core: do not set noexec on sysfs/procfs

It causes a regression in certain running environments (networkd under LXC),
so avoid enabling for now.

Fixes #18795

Suggested-by: Topi Miettinen <toiwoton@gmail.com>
3 years agoMerge pull request #18516 from systemd/revert-18515-temporarily-pin-arch-repos
Daan De Meyer [Fri, 26 Feb 2021 18:16:42 +0000 (18:16 +0000)] 
Merge pull request #18516 from systemd/revert-18515-temporarily-pin-arch-repos

Revert "ci: temporarily pin Arch repositories to glibc 2.32-5"

3 years agocopy: handle copy_file_range() weirdness on procfs/sysfs
Lennart Poettering [Fri, 26 Feb 2021 09:25:24 +0000 (10:25 +0100)] 
copy: handle copy_file_range() weirdness on procfs/sysfs

This addresses the issue described in https://lwn.net/Articles/846403/
and makes sure we will be able to stream bytes from procfs/sysfs via
copy_bytes() if people ask us to.

3 years agoci: build an upstream version of systemd-nspawn 18516/head
Frantisek Sumsal [Fri, 26 Feb 2021 16:06:25 +0000 (17:06 +0100)] 
ci: build an upstream version of systemd-nspawn

Ubuntu's systemd-nspawn doesn't support faccessat2() syscall, which is
required, since current Arch's glibc implements faccessat() via
faccessat2().

3 years agoRevert "ci: temporarily pin Arch repositories to glibc 2.32-5"
Frantisek Sumsal [Tue, 9 Feb 2021 12:58:16 +0000 (13:58 +0100)] 
Revert "ci: temporarily pin Arch repositories to glibc 2.32-5"

This reverts commit 67c972c610de61789d1b6560d28340f70d4b1196.

3 years agoudev: when btrfs.ko is not available consider btrfs filesystems not ready
Lennart Poettering [Thu, 25 Feb 2021 14:04:25 +0000 (15:04 +0100)] 
udev: when btrfs.ko is not available consider btrfs filesystems not ready

Let's add a special tweak to the btrfs builtin: if /dev/btrfs-control is
not there, let's consider all btrfs file systems as SYSTEMD_READY=0.
This is useful in initrds, where btrfs.ko might be missing. After the
initrd → host transition we can then retigger the device and undo the
SYSTEMD_READY=0 marking.

3 years agoMerge pull request #18804 from poettering/epoll-wait2
Lennart Poettering [Fri, 26 Feb 2021 13:27:27 +0000 (14:27 +0100)] 
Merge pull request #18804 from poettering/epoll-wait2

sd-event: make use of kernel 5.11 epoll_pwait2() if available

3 years agoMerge pull request #18806 from weblate/weblate-systemd-master
Luca Boccassi [Fri, 26 Feb 2021 10:20:37 +0000 (10:20 +0000)] 
Merge pull request #18806 from weblate/weblate-systemd-master

Translations update from Weblate

3 years agojson: rename json_dispatch_{integer,unsigned} -> json_dispatch_{intmax,uintmax}
Anita Zhang [Fri, 26 Feb 2021 02:38:54 +0000 (18:38 -0800)] 
json: rename json_dispatch_{integer,unsigned} -> json_dispatch_{intmax,uintmax}

Prompted by https://bugzilla.redhat.com/show_bug.cgi?id=1930875 in which
I had previously used json_dispatch_unsigned and passed a return variable of
type unsigned when json_dispatch_unsigned writes a uintmax_t.

3 years agoMerge pull request #18800 from poettering/network-target-more-doc
Lennart Poettering [Fri, 26 Feb 2021 09:59:23 +0000 (10:59 +0100)] 
Merge pull request #18800 from poettering/network-target-more-doc

some improvements regarding network.target docs

3 years agoMerge pull request #18801 from keszybz/small-documentation-updates
Lennart Poettering [Fri, 26 Feb 2021 08:36:11 +0000 (09:36 +0100)] 
Merge pull request #18801 from keszybz/small-documentation-updates

Small documentation updates

3 years agoman: say explicitly that network.target should give the guarantee that synthetic... 18800/head
Lennart Poettering [Thu, 25 Feb 2021 13:35:47 +0000 (14:35 +0100)] 
man: say explicitly that network.target should give the guarantee that synthetic network interfaces have been created

Prompted by: #18793

3 years agoman: be more explicit about network-online.target and consuming services of other...
Lennart Poettering [Thu, 25 Feb 2021 13:35:02 +0000 (14:35 +0100)] 
man: be more explicit about network-online.target and consuming services of other hosts

Let's make things a tiny bit more explicit.

3 years agoman: fix indentation of example
Lennart Poettering [Thu, 25 Feb 2021 13:36:18 +0000 (14:36 +0100)] 
man: fix indentation of example

The man page otherwise looks very weirdly aligned.

3 years agoupdate TODO 18804/head
Lennart Poettering [Thu, 25 Feb 2021 15:58:24 +0000 (16:58 +0100)] 
update TODO

3 years agosd-event: make use of epoll_pwait2() for greater time accuracy
Lennart Poettering [Thu, 25 Feb 2021 15:56:32 +0000 (16:56 +0100)] 
sd-event: make use of epoll_pwait2() for greater time accuracy

3 years agomissing_syscall: add epoll_pwait2() wrapper
Lennart Poettering [Thu, 25 Feb 2021 15:56:07 +0000 (16:56 +0100)] 
missing_syscall: add epoll_pwait2() wrapper

3 years agoMerge pull request #18797 from keszybz/trivial-cleanups
Luca Boccassi [Thu, 25 Feb 2021 22:20:04 +0000 (22:20 +0000)] 
Merge pull request #18797 from keszybz/trivial-cleanups

Trivial cleanups

3 years agoman: remove details of ManagedOOMPreference implementation 18801/head
Zbigniew Jędrzejewski-Szmek [Thu, 25 Feb 2021 20:13:47 +0000 (21:13 +0100)] 
man: remove details of ManagedOOMPreference implementation

3 years agoman: advertise shared drop-ins more
Zbigniew Jędrzejewski-Szmek [Thu, 25 Feb 2021 13:54:54 +0000 (14:54 +0100)] 
man: advertise shared drop-ins more

systemd.unit(5) is a wall of text. And this particular feature can be very useful
in the context of resource control. Let's avertise this cool feature a bit more.

Fixes #17900.

3 years agoman: fix two issues in udev(7)
Zbigniew Jędrzejewski-Szmek [Thu, 25 Feb 2021 13:30:34 +0000 (14:30 +0100)] 
man: fix two issues in udev(7)

Fixed #18050.

3 years agoman: say that hostname must can be a fqdn or not
Zbigniew Jędrzejewski-Szmek [Thu, 25 Feb 2021 13:14:39 +0000 (14:14 +0100)] 
man: say that hostname must can be a fqdn or not

Fixes #18426

3 years agotimesync: rename variable to match config name
Zbigniew Jędrzejewski-Szmek [Thu, 25 Feb 2021 13:01:56 +0000 (14:01 +0100)] 
timesync: rename variable to match config name

PollIntervalMinSec and PollIntervalMaxSec use the same pattern, but
RootDistanceMaxSec had switched orderd in the code.

3 years agoman: explain settings in timesyncd.conf(5)
Zbigniew Jędrzejewski-Szmek [Thu, 25 Feb 2021 12:57:20 +0000 (13:57 +0100)] 
man: explain settings in timesyncd.conf(5)

Fixes #18508.

3 years agoman: drop misplaced spaces and parenthesization
Zbigniew Jędrzejewski-Szmek [Thu, 25 Feb 2021 12:27:49 +0000 (13:27 +0100)] 
man: drop misplaced spaces and parenthesization

3 years agoman: use markup more in description of ManagedOOMPreference=
Zbigniew Jędrzejewski-Szmek [Thu, 25 Feb 2021 12:25:35 +0000 (13:25 +0100)] 
man: use markup more in description of ManagedOOMPreference=

Follow-up for d8a4d64bc37ad21381f584b6c25792995584c7a2.

3 years agoTranslated using Weblate (Portuguese (Brazil)) 18806/head
Gustavo Costa [Thu, 25 Feb 2021 18:41:25 +0000 (19:41 +0100)] 
Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (189 of 189 strings)

Co-authored-by: Gustavo Costa <xfgusta@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/pt_BR/
Translation: systemd/main

3 years agoAdded translation using Weblate (Kabyle)
Slimane Selyan Amiri [Thu, 25 Feb 2021 18:41:25 +0000 (19:41 +0100)] 
Added translation using Weblate (Kabyle)

Co-authored-by: Slimane Selyan Amiri <selyan.kab@gmail.com>
3 years agoMerge pull request #18798 from poettering/getenv-list-fixes
Lennart Poettering [Thu, 25 Feb 2021 16:00:54 +0000 (17:00 +0100)] 
Merge pull request #18798 from poettering/getenv-list-fixes

various follow-ups for ExtensionImages= PR

3 years agoupdate TODO
Lennart Poettering [Thu, 25 Feb 2021 14:51:13 +0000 (15:51 +0100)] 
update TODO

3 years agoman: fix grammaro
Zbigniew Jędrzejewski-Szmek [Thu, 25 Feb 2021 12:16:39 +0000 (13:16 +0100)] 
man: fix grammaro

3 years agoNEWS: mention ExtensionImages
Luca Boccassi [Thu, 25 Feb 2021 10:59:01 +0000 (10:59 +0000)] 
NEWS: mention ExtensionImages

3 years agolibudev: fix typo in docstring 18797/head
Zbigniew Jędrzejewski-Szmek [Thu, 25 Feb 2021 11:46:34 +0000 (12:46 +0100)] 
libudev: fix typo in docstring

3 years agoshared/dissect-image: inline iterator variables
Zbigniew Jędrzejewski-Szmek [Thu, 25 Feb 2021 11:35:26 +0000 (12:35 +0100)] 
shared/dissect-image: inline iterator variables

3 years agocore/namespace: inline more iterator variable declarations
Zbigniew Jędrzejewski-Szmek [Thu, 25 Feb 2021 11:33:27 +0000 (12:33 +0100)] 
core/namespace: inline more iterator variable declarations

3 years agoresolved: inline trivial function
Zbigniew Jędrzejewski-Szmek [Mon, 22 Feb 2021 11:20:34 +0000 (12:20 +0100)] 
resolved: inline trivial function

3 years agobus-unit-util: generate proper log message when we fail to parse properties 18798/head
Lennart Poettering [Thu, 25 Feb 2021 12:38:20 +0000 (13:38 +0100)] 
bus-unit-util: generate proper log message when we fail to parse properties

3 years agobus-unit-util: don't validate partition designator client side
Lennart Poettering [Thu, 25 Feb 2021 12:36:43 +0000 (13:36 +0100)] 
bus-unit-util: don't validate partition designator client side

When we parse properties set via "systemctl set-property" we should
validate to the point where the data we pass over the bus makes rough
sense, but we shouldn't needlessly check whether specified enum values
are among the known enum values. The server side checks that anyway
again, and it's kinda nice if an older systemctl can be used to talk to
a newer systemd.

3 years agonamespace: return correct error code
Lennart Poettering [Thu, 25 Feb 2021 12:36:32 +0000 (13:36 +0100)] 
namespace: return correct error code

3 years agoenv-util: fix parameter handling of parse_env_extension_hierarchies() + getenv_path_l...
Lennart Poettering [Thu, 25 Feb 2021 12:16:36 +0000 (13:16 +0100)] 
env-util: fix parameter handling of parse_env_extension_hierarchies() + getenv_path_list()

Our coding style dictates we should not clobber return parameters on
failure, and always initialize them on success. Do so here.

This changes getenv_path_list() to return ENXIO if the env var is not
set, which is similar to how we handle this in getenv_bool().

This drops debug logging from parse_env_extension_hierarchies(), since
it's done anyway in getenv_path_list()

Follow-up for: #18018

3 years agosignal-util: make -1 termination of ignore_signals() argument list unnecessary
Lennart Poettering [Thu, 25 Feb 2021 07:56:57 +0000 (08:56 +0100)] 
signal-util: make -1 termination of ignore_signals() argument list unnecessary

Clean up ignore_signals() + default_signals() + sigaction_many() a bit:
make it unnecessary to explicitly terminate the signal list with -1.
Merge all three calls into a single function that is just called with
slightly different parameters. And eliminate an unnecessary extra
iteration in its inner for() loop.

No change in behaviour.

3 years agoMerge pull request #18018 from bluca/mount_images_overlay
Zbigniew Jędrzejewski-Szmek [Thu, 25 Feb 2021 10:31:14 +0000 (11:31 +0100)] 
Merge pull request #18018 from bluca/mount_images_overlay

Add ExtensionImages directive to form overlays

3 years agomeson: refuse when prefix is not a child of rootprefix
Zbigniew Jędrzejewski-Szmek [Wed, 24 Feb 2021 17:02:36 +0000 (18:02 +0100)] 
meson: refuse when prefix is not a child of rootprefix

This is most likely to happen when setting one but not the other.

Note that we already warn when rootprefixdir != rootprefix_default,
at the very end.

3 years agotest: skip tests if cgroup isn't mounted
Dan Streetman [Wed, 24 Feb 2021 12:29:15 +0000 (07:29 -0500)] 
test: skip tests if cgroup isn't mounted

Debian builds in a chroot without cgroup mounted, so tests expecting
to access cgroup will fail with ENOMEDIUM, so skip the tests in that
situation.

3 years agocgroup: don't generate BPF firewall unsupported warning on wrong unit
Lennart Poettering [Wed, 24 Feb 2021 16:49:32 +0000 (17:49 +0100)] 
cgroup: don't generate BPF firewall unsupported warning on wrong unit

Let's generate the warning on a unit that actually needs the BPF
firewall, and not confusingly already for a sibling of one.

3 years agoformat-table: don't suppress trailing whitespace in first line
Lennart Poettering [Wed, 24 Feb 2021 17:54:32 +0000 (18:54 +0100)] 
format-table: don't suppress trailing whitespace in first line

We underline the first line, hence we shouldn't suppress the whitespace,
otherwise the line will end early.

Follow-up for: 71894e18313e41a72cecdc77fea5037f95d6903f

3 years agotreewide: fix spelling
Joerg Behrmann [Wed, 24 Feb 2021 20:39:03 +0000 (21:39 +0100)] 
treewide: fix spelling

3 years agonetwork: Implement B.A.T.M.A.N. Advanced interface type
Annika Wickert [Fri, 2 Oct 2020 19:43:05 +0000 (21:43 +0200)] 
network: Implement B.A.T.M.A.N. Advanced interface type

3 years agoresolved: don't discard mDNS queries with bad flags
Sergey Bugaev [Fri, 19 Feb 2021 12:29:02 +0000 (15:29 +0300)] 
resolved: don't discard mDNS queries with bad flags

Even though RFC 6762 specifies these bits MUST be zero, it also says they MUST
be ignored on reception.