]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 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().

4 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.

4 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.

4 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

4 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

4 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.

4 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

4 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

4 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

4 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.

4 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.

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

4 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

4 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

4 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

4 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

4 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.

4 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.

4 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

4 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.

4 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.

4 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

4 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.

4 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

4 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>
4 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

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

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

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

4 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

4 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

4 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

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

4 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

4 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.

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

4 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

4 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.

4 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

4 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.

4 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.

4 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.

4 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

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

4 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

4 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.

4 years agoresolved: don't discard mDNS packets with ip6.arpa RRs
Sergey Bugaev [Mon, 15 Feb 2021 16:03:27 +0000 (19:03 +0300)] 
resolved: don't discard mDNS packets with ip6.arpa RRs

ip6.arpa is also a valid domain name to put in mDNS packets.

4 years agoMerge pull request #18771 from yuwata/timedate-fix-set-local-rtc-18391
Lennart Poettering [Wed, 24 Feb 2021 16:14:14 +0000 (17:14 +0100)] 
Merge pull request #18771 from yuwata/timedate-fix-set-local-rtc-18391

timedate: do not ignore fix_system argument in SetLocalRTC method

4 years agotimedate: do not ignore fix_system argument in SetLocalRTC method 18771/head
Yu Watanabe [Wed, 24 Feb 2021 04:16:15 +0000 (13:16 +0900)] 
timedate: do not ignore fix_system argument in SetLocalRTC method

Fixes #18391.

4 years agotest: skip TEST-56-OOMD if systemd-oomd is not installed
Luca Boccassi [Wed, 24 Feb 2021 13:29:57 +0000 (13:29 +0000)] 
test: skip TEST-56-OOMD if systemd-oomd is not installed

Fixes #18775

4 years agonetwork: use IPMasquerade=both instead of yes
Yu Watanabe [Wed, 24 Feb 2021 11:29:24 +0000 (20:29 +0900)] 
network: use IPMasquerade=both instead of yes

Follow-up for 4c72d851cd007e945a85811f89376a2675daa1a5.

4 years agoclock-util: rename function argument
Yu Watanabe [Wed, 24 Feb 2021 04:06:17 +0000 (13:06 +0900)] 
clock-util: rename function argument

4 years agodoc,man: fix-typo (hierachy -> hierarchy)
Yu Watanabe [Wed, 24 Feb 2021 05:25:24 +0000 (14:25 +0900)] 
doc,man: fix-typo (hierachy -> hierarchy)

4 years agoMerge pull request #18730 from yuwata/dhcp6-client-do-not-set-t1-t2-18090
Zbigniew Jędrzejewski-Szmek [Wed, 24 Feb 2021 08:53:37 +0000 (09:53 +0100)] 
Merge pull request #18730 from yuwata/dhcp6-client-do-not-set-t1-t2-18090

dhcp6: do not set T1 and T2 in IA_PD option or friends

4 years agoTranslated using Weblate (Serbian)
Frantisek Sumsal [Tue, 23 Feb 2021 22:40:13 +0000 (23:40 +0100)] 
Translated using Weblate (Serbian)

Currently translated at 66.6% (126 of 189 strings)

Co-authored-by: Frantisek Sumsal <frantisek@sumsal.cz>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/sr/
Translation: systemd/main

4 years agoMerge pull request #18589 from yuwata/network-nexthop-drop-unnecessary-nexthops
Yu Watanabe [Wed, 24 Feb 2021 00:07:57 +0000 (09:07 +0900)] 
Merge pull request #18589 from yuwata/network-nexthop-drop-unnecessary-nexthops

network: drop unnecessary nexthops

4 years agoUpdate NEWS
Topi Miettinen [Tue, 23 Feb 2021 17:58:28 +0000 (17:58 +0000)] 
Update NEWS

Fix typos, improve /dev exec/noexec description

4 years agobootspec: assume that the root dir is at the top of its file system v248-rc2
Lennart Poettering [Tue, 23 Feb 2021 14:02:33 +0000 (15:02 +0100)] 
bootspec: assume that the root dir is at the top of its file system

Fixes: #17746
4 years agoMerge pull request #18763 from poettering/cov-fixes
Zbigniew Jędrzejewski-Szmek [Tue, 23 Feb 2021 17:41:53 +0000 (18:41 +0100)] 
Merge pull request #18763 from poettering/cov-fixes

A bunch of coverity fixes

4 years agoMerge pull request #18765 from keszybz/more-docs
Zbigniew Jędrzejewski-Szmek [Tue, 23 Feb 2021 16:44:13 +0000 (17:44 +0100)] 
Merge pull request #18765 from keszybz/more-docs

NEWS and one more man page addition

4 years agoman: add a description of how manager env block is set 18765/head
Zbigniew Jędrzejewski-Szmek [Tue, 23 Feb 2021 16:18:05 +0000 (17:18 +0100)] 
man: add a description of how manager env block is set

4 years agoAdd ExtensionImages directive to form overlays 18018/head
Luca Boccassi [Mon, 22 Feb 2021 12:20:33 +0000 (12:20 +0000)] 
Add ExtensionImages directive to form overlays

Add support for overlaying images for services on top of their
root fs, using a read-only overlay.

4 years agocore/namespace: reafactor applying mounts in a separate function
Luca Boccassi [Mon, 22 Feb 2021 12:12:54 +0000 (12:12 +0000)] 
core/namespace: reafactor applying mounts in a separate function

The setup_namespace code to apply mounts is a big if block that
keeps growing, so refactor it in a separate function.

4 years agosysext: split parsing SYSTEMD_SYSEXT_HIERARCHIES in a common helper
Luca Boccassi [Mon, 22 Feb 2021 18:45:36 +0000 (18:45 +0000)] 
sysext: split parsing SYSTEMD_SYSEXT_HIERARCHIES in a common helper

4 years agoNEWS: add ConditionCGC=v12 and the hostname stuff
Zbigniew Jędrzejewski-Szmek [Tue, 23 Feb 2021 15:30:13 +0000 (16:30 +0100)] 
NEWS: add ConditionCGC=v12 and the hostname stuff

4 years agoefi stub: accept it if our loaded image has no FilePath field set
Lennart Poettering [Tue, 23 Feb 2021 13:16:08 +0000 (14:16 +0100)] 
efi stub: accept it if our loaded image has no FilePath field set

The firmware spec doesn't really say whether FilePath of the LoadedImage
protocol may be NULL or not. So far we assumed it to be non-NULL, but
apparently the FreeBSD UEFI chainloader sets it to NULL. Handle this
gracefully.

(Noticed and tracked down by Alexander Schreiber)

Fixes: #18733
4 years agocore: fix memory leak in error path 18763/head
Lennart Poettering [Tue, 23 Feb 2021 14:43:19 +0000 (15:43 +0100)] 
core: fix memory leak in error path

Coverity 1431998

4 years agoresolved: don't dereference ->scope unless set
Lennart Poettering [Tue, 23 Feb 2021 14:29:10 +0000 (15:29 +0100)] 
resolved: don't dereference ->scope unless set

Coverity 1446388

4 years agoshared: fix memory leak in error path
Lennart Poettering [Tue, 23 Feb 2021 14:26:49 +0000 (15:26 +0100)] 
shared: fix memory leak in error path

Coverity 1446676

4 years agoicmp6-util: add missing variable initialization
Lennart Poettering [Tue, 23 Feb 2021 14:13:21 +0000 (15:13 +0100)] 
icmp6-util: add missing variable initialization

Coverity 1446712

4 years agodissect-image: initially fds[] array fully
Lennart Poettering [Tue, 23 Feb 2021 14:11:07 +0000 (15:11 +0100)] 
dissect-image: initially fds[] array fully

THe previous code wasn't wrong, but it's certainly nicer to avoid a
partially uninitialized array here, hence Coverity has a point
complaining about this.

Coverity 1446731

4 years agoresolved: fix minor memory leak
Lennart Poettering [Tue, 23 Feb 2021 14:10:14 +0000 (15:10 +0100)] 
resolved: fix minor memory leak

Coverity 1446992

4 years agocore: fix stack-use-after-scope
Yu Watanabe [Tue, 23 Feb 2021 11:48:51 +0000 (20:48 +0900)] 
core: fix stack-use-after-scope

Fixes a bug introduced by f70e6fb471a4eeed8e2a4a7c608beabbb0aba8be.

Fixes #18753.

4 years agopo: remove basic fedora.zanata.org configuration
AsciiWolf [Tue, 23 Feb 2021 11:08:34 +0000 (12:08 +0100)] 
po: remove basic fedora.zanata.org configuration

Zanata is not used anymore and its current configuration is not useful
anyway since the master branch was renamed to main.

4 years agoMerge pull request #18751 from anitazha/oomdconditions
Zbigniew Jędrzejewski-Szmek [Tue, 23 Feb 2021 14:30:33 +0000 (15:30 +0100)] 
Merge pull request #18751 from anitazha/oomdconditions

units: add Conditions for systemd-oomd.service

4 years agotest-network: add tests for dropping unnecessary nexthops 18589/head
Yu Watanabe [Tue, 23 Feb 2021 09:45:48 +0000 (18:45 +0900)] 
test-network: add tests for dropping unnecessary nexthops

4 years agonetwork: nexthop: drop unnecessary nexthops
Yu Watanabe [Mon, 15 Feb 2021 01:00:14 +0000 (10:00 +0900)] 
network: nexthop: drop unnecessary nexthops

Similar to addresses or routes, this makes networkd drops unnecessary
nexthops on configuring links or when a link is dropped.

4 years agonetwork: nexthop: read protocol in received netlink message
Yu Watanabe [Mon, 22 Feb 2021 18:10:16 +0000 (03:10 +0900)] 
network: nexthop: read protocol in received netlink message

Preparation of later commits.

4 years agosd-netlink: introduce sd_rtnl_message_nexthop_get_protocol()
Yu Watanabe [Mon, 22 Feb 2021 18:05:24 +0000 (03:05 +0900)] 
sd-netlink: introduce sd_rtnl_message_nexthop_get_protocol()

4 years agoman: various improvements to systemd.generator(7)
Lennart Poettering [Tue, 23 Feb 2021 13:07:46 +0000 (14:07 +0100)] 
man: various improvements to systemd.generator(7)

In particular, make clear the .d/*.conf unit file drop-ins are OK to
generate from generators.

Inspired by: https://lists.freedesktop.org/archives/systemd-devel/2021-February/046148.html

4 years agoRevert "meson: remove one more instance of install_dir:bindir"
Yu Watanabe [Tue, 23 Feb 2021 10:49:49 +0000 (19:49 +0900)] 
Revert "meson: remove one more instance of install_dir:bindir"

This reverts commit 5ffa2eaa541b718122a3422e911ef95f4c9981d7.

It seems that if install_dir is not specified, meson decides install path
based on file type, and non-executable binary files are installed under
/usr/share.

kernel-install is a script. So, we need to set install_dir argument
explicitly.

Fixes #18754.

4 years agodhcp6: do not set T1 and T2 by dhcp6_option_append_pd() in client 18730/head
Yu Watanabe [Mon, 22 Feb 2021 13:39:31 +0000 (22:39 +0900)] 
dhcp6: do not set T1 and T2 by dhcp6_option_append_pd() in client

Fixes #18090.

4 years agodhcp6: do not set T1 and T2 by dhcp6_option_append_ia() in client
Yu Watanabe [Mon, 22 Feb 2021 12:54:32 +0000 (21:54 +0900)] 
dhcp6: do not set T1 and T2 by dhcp6_option_append_ia() in client

4 years agodhcp6: make dhcp6_option_parse_{address,pdprefix}() return -EINVAL when received...
Yu Watanabe [Tue, 23 Feb 2021 10:25:17 +0000 (19:25 +0900)] 
dhcp6: make dhcp6_option_parse_{address,pdprefix}() return -EINVAL when received address or prefix is refused

And then the caller ignores the error.
Otherwise, `ret_liftime_valid` is not set even if they succeeds.

4 years agoREADME: add config_psi as requirement for systemd-oomd 18751/head
Anita Zhang [Tue, 23 Feb 2021 10:06:58 +0000 (02:06 -0800)] 
README: add config_psi as requirement for systemd-oomd

4 years agounits: add Conditions for systemd-oomd.service
Anita Zhang [Tue, 23 Feb 2021 08:09:10 +0000 (00:09 -0800)] 
units: add Conditions for systemd-oomd.service

Prompted by https://bugzilla.redhat.com/show_bug.cgi?id=1927148 and
https://bugzilla.redhat.com/show_bug.cgi?id=1931181.

Adds condition check for cgroups v2 and PSI, which systemd-oomd cannot
start without.

4 years agodhcp6: do not use input value before checking
Yu Watanabe [Mon, 22 Feb 2021 12:59:24 +0000 (21:59 +0900)] 
dhcp6: do not use input value before checking

4 years agoresolved: add another explanatory message to stub resolv.conf files
Zbigniew Jędrzejewski-Szmek [Tue, 23 Feb 2021 00:31:15 +0000 (01:31 +0100)] 
resolved: add another explanatory message to stub resolv.conf files

Apparently people do "cat /etc/resolv.conf" and not realize that they
are looking at a file in /run.

4 years agomeson: bump version numbers v248-rc1
Zbigniew Jędrzejewski-Szmek [Tue, 23 Feb 2021 00:56:21 +0000 (01:56 +0100)] 
meson: bump version numbers

4 years agoNEWS: add contributors
Zbigniew Jędrzejewski-Szmek [Tue, 23 Feb 2021 00:55:11 +0000 (01:55 +0100)] 
NEWS: add contributors

4 years agoresolved: actually use the specified rrsig argument
Lennart Poettering [Mon, 22 Feb 2021 23:07:12 +0000 (00:07 +0100)] 
resolved: actually use the specified rrsig argument

The argument only exists to be used to override/fill in the RRSIG record
of the answer item. Hence actually use it instead of ignore it.

(Not sure how this got lost earlier.)

Fixes: #18714
4 years agoMerge pull request #18741 from poettering/stub-no-cname
Zbigniew Jędrzejewski-Szmek [Tue, 23 Feb 2021 00:52:01 +0000 (01:52 +0100)] 
Merge pull request #18741 from poettering/stub-no-cname

resolved: don't follow CNAMEs in the stub anymore

4 years agoshared/condition: add ConditionControlGroupController=v1|v2
Zbigniew Jędrzejewski-Szmek [Mon, 22 Feb 2021 21:09:38 +0000 (22:09 +0100)] 
shared/condition: add ConditionControlGroupController=v1|v2

Before, we only allowed conditionalizing on controllers, not the hierarchy.
This commit extends this to allow a simple check for v1 (i.e. classic or hybrid),
and v2 (full unified).

An alternative approach would be to add a separate Condition for this, but I'm
not too keen on that, considering that v1 is already being deprecrecated
(c.f. 82f3063218).

4 years agoMountImages: parse unit specifiers after permissive hyphen
Luca Boccassi [Mon, 22 Feb 2021 21:31:44 +0000 (21:31 +0000)] 
MountImages: parse unit specifiers after permissive hyphen

The permissive bit it not something a specifier might synthetise

4 years agoMerge pull request #18745 from keszybz/stop-using-fstrings
Zbigniew Jędrzejewski-Szmek [Tue, 23 Feb 2021 00:10:38 +0000 (01:10 +0100)] 
Merge pull request #18745 from keszybz/stop-using-fstrings

Stop using fstrings

4 years agotest-dns-packet: fix leak of DnsResourceRecord object 18741/head
Zbigniew Jędrzejewski-Szmek [Tue, 23 Feb 2021 00:06:08 +0000 (01:06 +0100)] 
test-dns-packet: fix leak of DnsResourceRecord object

4 years agoNEWS: a few more entries for v248-rc1
Zbigniew Jędrzejewski-Szmek [Mon, 22 Feb 2021 23:39:08 +0000 (00:39 +0100)] 
NEWS: a few more entries for v248-rc1

I left the stuff related to [NextHop] out. There are still
patches outstanding, and we can add a comprehensive entry once
things reached the final form.

4 years agoMerge pull request #18704 from keszybz/fallback-hostame-override
Zbigniew Jędrzejewski-Szmek [Mon, 22 Feb 2021 23:41:27 +0000 (00:41 +0100)] 
Merge pull request #18704 from keszybz/fallback-hostame-override

Allow overriding of fallback hostname through envvar and os-release field

4 years agoresolved: stick CNAME targets into main answer section in stub replies
Lennart Poettering [Mon, 22 Feb 2021 22:07:57 +0000 (23:07 +0100)] 
resolved: stick CNAME targets into main answer section in stub replies

4 years agoresolved: add dns_resource_record_get_cname_target() helper
Lennart Poettering [Mon, 22 Feb 2021 22:07:01 +0000 (23:07 +0100)] 
resolved: add dns_resource_record_get_cname_target() helper

This determines the redirection target from a CNAME or DNAME RR given it
matches some given RR key.