]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
3 years agomeson: set CURL_NO_OLDIES in developer mode 17685/head
Yu Watanabe [Fri, 20 Nov 2020 16:52:47 +0000 (01:52 +0900)] 
meson: set CURL_NO_OLDIES in developer mode

3 years agocurl-util: fix type CURL -> CURLM
Yu Watanabe [Fri, 20 Nov 2020 16:51:03 +0000 (01:51 +0900)] 
curl-util: fix type CURL -> CURLM

3 years agounits: restore sysfs conditions in sys-fs-fuse-connections.mount and sys-kernel-confi...
Franck Bui [Fri, 20 Nov 2020 10:52:36 +0000 (11:52 +0100)] 
units: restore sysfs conditions in sys-fs-fuse-connections.mount and sys-kernel-config.mount

Commit 42cc2855ba2fe4c6f5d incorrectly removed the condition on sysfs in both
sys-fs-fuse-connections.mount and sys-kernel-config.mount. However there are
still needed in case modprobe of one of these modules is intentionally skipped
(due to lack of privs for example).

This patch restores the 2 conditions which should be safe for the common case,
since all conditions are only checked after all deps ordered before are
complete.

Follow-up for 42cc2855ba2fe4c6f5dc863507a1c843611350a0.

3 years agocore/mount: mount_start() may be called during the state is MOUNT_MOUNTING_DONE
Yu Watanabe [Tue, 17 Nov 2020 01:50:12 +0000 (10:50 +0900)] 
core/mount: mount_start() may be called during the state is MOUNT_MOUNTING_DONE

As, both MOUNT_MOUNTING and MOUNT_MOUNTING_DONE are mapped to
UNIT_ACTIVATING.

Fixes #17570.

3 years agocore: serialize u->pids until the processes have been moved to the scope cgroup
Franck Bui [Mon, 16 Nov 2020 14:12:21 +0000 (15:12 +0100)] 
core: serialize u->pids until the processes have been moved to the scope cgroup

Otherwise if a daemon-reload happens somewhere between the enqueue of the job
start for the scope unit and scope_start() then u->pids might be lost and none
of the processes specified by "PIDs=" will be moved into the scope cgroup.

3 years agoMerge pull request #17649 from yuwata/resolve-dnssd-template-name
Lennart Poettering [Fri, 20 Nov 2020 13:56:59 +0000 (14:56 +0100)] 
Merge pull request #17649 from yuwata/resolve-dnssd-template-name

resolve: ignore invalid service template name

3 years agoMerge pull request #17658 from jwrdegoede/hwdb-accel-work
Lennart Poettering [Fri, 20 Nov 2020 13:49:41 +0000 (14:49 +0100)] 
Merge pull request #17658 from jwrdegoede/hwdb-accel-work

hwdb accel work

3 years agoseccomp: move brk+mmap+mmap2 into @default syscall filter set
Lennart Poettering [Thu, 19 Nov 2020 10:14:41 +0000 (11:14 +0100)] 
seccomp: move brk+mmap+mmap2 into @default syscall filter set

These three syscalls are internally used by libc's memory allocation
logic, i.e. ultimately back malloc(). Allocating a bit of memory is so
basic, it should just be in the default set.

This fixes a couple of issues with asan/msan and the seccomp tests: when
asan/msan is used some additional, large memory allocations take place
in the background, and unless mmap/mmap2/brk are allowlisted these will
fail, aborting the test prematurely.

3 years agoMerge pull request #17667 from fbuihuu/fix-module-loading-from-udev-rule
Zbigniew Jędrzejewski-Szmek [Thu, 19 Nov 2020 15:35:32 +0000 (16:35 +0100)] 
Merge pull request #17667 from fbuihuu/fix-module-loading-from-udev-rule

Fix module loading from udev rule

3 years agoman: suffix settings name with = and enclose in <varname>
Lennart Poettering [Wed, 18 Nov 2020 12:47:43 +0000 (13:47 +0100)] 
man: suffix settings name with = and enclose in <varname>

3 years agounits: wait until some fs modules are entirely loaded before mounting their correspon... 17667/head
Franck Bui [Thu, 19 Nov 2020 08:17:19 +0000 (09:17 +0100)] 
units: wait until some fs modules are entirely loaded before mounting their corresponding filesystem

udev requests to start the fs mount units when their respective module is
loaded. For that it monitors uevents of type "ADD" for the relevant fs modules.

However the uevent is sent by the kernel too early, ie before the init() of the
module is called hence before directories in /sys/fs/ are created.

This patch workarounds adds "Requires/After=modprobe@<fs-module>.service" to
the mount unit, which means that modprobe(8) will be called once the fs module
is announced to be loaded. This sounds pointless, but given that modprobe only
returns after the initialization of the module is complete, it should
workaround the issue.

As a side effect, the module will be automatically loaded if the mount unit is
started manually.

Fixes #17586.

3 years agoRevert "units: skip modprobe@.service if the unit appears to be already loaded"
Franck Bui [Thu, 19 Nov 2020 07:55:56 +0000 (08:55 +0100)] 
Revert "units: skip modprobe@.service if the unit appears to be already loaded"

This reverts commit 9cbf1e58f9629af5c6b56777ee73dc6320306d6d.

The presence of /sys/module/%I directory can't be used to assert that the load
of a given module is complete and therefore the call to modprobe(8) can be
skipped. Indeed this directory is created before the init() function of the
module is called.

Users of modprobe@.service needs to be sure that once this service returns the
module is fully operational.

3 years agohwdb: Add accel orientation quirk for Acer Aspire Switch 10 SW3-016 2-in-1 17658/head
Hans de Goede [Wed, 18 Nov 2020 16:11:50 +0000 (17:11 +0100)] 
hwdb: Add accel orientation quirk for Acer Aspire Switch 10 SW3-016 2-in-1

Add a quirk to fix the accelerometer orientation on the
Acer Aspire Switch 10 SW3-016 2-in-1.

3 years agohwdb: Add accel orientation quirk for Voyo Winpad A15 tablet
Hans de Goede [Sun, 15 Nov 2020 10:23:04 +0000 (11:23 +0100)] 
hwdb: Add accel orientation quirk for Voyo Winpad A15 tablet

Add a quirk to fix the accelerometer orientation on the
Voyo Winpad A15 tablet.

3 years agohwdb: Add accel orientation quirk for Lenovo ThinkPad Yoga 11e 4th gen
Hans de Goede [Sat, 14 Nov 2020 16:09:04 +0000 (17:09 +0100)] 
hwdb: Add accel orientation quirk for Lenovo ThinkPad Yoga 11e 4th gen

Add a quirk to fix the accelerometer orientation on the Lenovo
ThinkPad Yoga 11e 4th gen 360 degree hinges 2-in-1.

3 years agohwdb: Fix accel orientation quirk Z-axis for Lenovo ThinkPad Yoga 11e 3th gen
Hans de Goede [Sat, 14 Nov 2020 16:10:51 +0000 (17:10 +0100)] 
hwdb: Fix accel orientation quirk Z-axis for Lenovo ThinkPad Yoga 11e 3th gen

The Lenovo ThinkPad Yoga 11e 360 degree hinges style 2-in-1s use 2
accelerometers, 1 in the display and 1 in the base.

Kernel work is under way to also export the second accelerometer in
the base as an iio-device; and userspace work is underway to use
both accelerometers on 360 degree hinges style 2-in-1s (with 2 accels)
to figure out the angle between the 2 halves.

So far most orientation-matrix quirks have not cared much about the
Z-axis being correct, but in these 2 accelerometer setups getting
the Z-axis correct is important too.

3 years agohwdb: Add base accelerometer orientation quirk for base sensor of Medion Akoya E...
Hans de Goede [Wed, 18 Nov 2020 17:48:43 +0000 (18:48 +0100)] 
hwdb: Add base accelerometer orientation quirk for base sensor of Medion Akoya E* series

The KIOX010A and KIOX02A ACPI hw-ids (HIDs) are used in 360 degree hinges
style 2-in-1s which have 2 accelerometers, 1 in the display (as usual) and
a second accelerometer in the base.

So far 60-sensor.hwdb has only defined a mount-matrix for the
sensor with the KIOX010A HID, which is the sensor in the display
half of the device. The reason for this is that sofar userspace has
only cared actually used the sensor in the display (for automatic
display rotation. Work is underway to make userspace use both sensors:
https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/issues/216

Recently an entry was added for the Medion Akoya's E2221T base-sensor,
but that was added to mark it with ACCEL_LOCATION=base and the entry
simply used the identity-matrix for ACCEL_MOUNT_MATRIX since nothing
is using the mount-matrix info for the second accelerometer.
I believe that this entry was added because on some devices the second
accelerometer gets enumerated first and then iio-sensor-proxy will
wrongly use the second sensor for display-rotation, unless it is marked
with ACCEL_LOCATION=base.

Instead of adding info for the second accelerometer on a per device
basis use the same generic dmi matches as used for the first (KIOX010A)
sensor, replacing the special case added for the E2221T and also
update the ACCEL_MOUNT_MATRIX with the actual mount-matrix for the
KIOX020A sensor in the base of these devices.

This was tested on a Medion Akoya E2228T.

3 years agohwdb: Document how to properly set the mount-matrix for the base-accelerometer in...
Hans de Goede [Wed, 18 Nov 2020 20:11:14 +0000 (21:11 +0100)] 
hwdb: Document how to properly set the mount-matrix for the base-accelerometer in 360 degree hinges style 2-in-1s with 2 accelerometers

Document how the mount-matrix for the base-accelerometer must be set on
360 degree hinges style 2-in-1s with 2 sensors (one in the display and
1 in the base).

Note the choice to define the lid being fully closed as an angle of
0 degrees is based on the ACPI tables of devices with a BOSC0200
ACPI device-node describing both sensors. In this case the ACPI
tables contain mount-matrix info (and the kernel will soon support
reading this and exporting it to userspace) and the mount-matrices
defined in these ACPI tables are such that the angle of the G-force
vector measured by the sensors is identical for both sensors when
the laptop's lid is fully closed.

This also feels more natural then defining the laptop being fully
open (180 degrees open) as the home / 0 degree angle position.

3 years agokhash: fix structured initializer
Yu Watanabe [Wed, 18 Nov 2020 07:43:58 +0000 (16:43 +0900)] 
khash: fix structured initializer

Fixes #17646.

3 years agoman: Fix sd_bus_message_append_array_space function signature
igo95862 [Wed, 18 Nov 2020 09:21:37 +0000 (12:21 +0300)] 
man: Fix sd_bus_message_append_array_space function signature

3 years agoMerge pull request #17651 from yuwata/the-the
Zbigniew Jędrzejewski-Szmek [Wed, 18 Nov 2020 08:32:09 +0000 (09:32 +0100)] 
Merge pull request #17651 from yuwata/the-the

tree-wide: fix "the the" and "that that"

3 years agoJOURNAL_FILE_FORMAT: fixup typos and punctuation
Vito Caputo [Tue, 17 Nov 2020 21:23:00 +0000 (13:23 -0800)] 
JOURNAL_FILE_FORMAT: fixup typos and punctuation

No significant changes

3 years agotree-wide: update "that that" 17651/head
Yu Watanabe [Wed, 18 Nov 2020 07:38:49 +0000 (16:38 +0900)] 
tree-wide: update "that that"

3 years agoman,NEWS: fix "the the"
Yu Watanabe [Wed, 18 Nov 2020 07:27:14 +0000 (16:27 +0900)] 
man,NEWS: fix "the the"

3 years agosd-device: drop unwanted newline in netlink message
Yu Watanabe [Mon, 16 Nov 2020 15:51:14 +0000 (00:51 +0900)] 
sd-device: drop unwanted newline in netlink message

3 years agotest/udev-test: gracefully exit when imports fail
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 16:13:31 +0000 (17:13 +0100)] 
test/udev-test: gracefully exit when imports fail

In Fedora rawhide various perl modules are now available as separate
packages that are not pulled in by dependencies. If we don't have some
package, skip the tests.

This ugly code is apparently the way to do conditional imports:
https://www.cs.ait.ac.th/~on/O/oreilly/perl/cookbook/ch12_03.htm.

3 years agoresolve: ignore invalid service template name 17649/head
Yu Watanabe [Tue, 17 Nov 2020 18:32:37 +0000 (03:32 +0900)] 
resolve: ignore invalid service template name

Let's fiest test the template name, and then assign it.

3 years agoresolve: make config_parse_dnssd_service_name() accepts an empty string
Yu Watanabe [Tue, 17 Nov 2020 18:23:32 +0000 (03:23 +0900)] 
resolve: make config_parse_dnssd_service_name() accepts an empty string

3 years agoresolve: add a short comment about difference between dnssd_render_instance_name...
Yu Watanabe [Tue, 17 Nov 2020 18:22:56 +0000 (03:22 +0900)] 
resolve: add a short comment about difference between dnssd_render_instance_name() and config_parse_dnssd_service_name()

3 years agoresolve: wrap long line
Yu Watanabe [Tue, 17 Nov 2020 18:20:30 +0000 (03:20 +0900)] 
resolve: wrap long line

3 years agoRevert "resolve: check DNSSD service name template before assigning it"
Roman Beranek [Tue, 17 Nov 2020 04:37:58 +0000 (05:37 +0100)] 
Revert "resolve: check DNSSD service name template before assigning it"

This reverts commit 34136e1503cf60852051adbd8b9a002d6282b750.

Having the "%H" host name specifier in a DNSSD service name template
triggers a failed assertion during name template instantiation as
specifier_dnssd_host_name expects DnssdService in its userdata
pointer but finds NULL instead.

3 years agohwdb/60-keyboard: untabify and move comments to the same column
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 08:43:23 +0000 (09:43 +0100)] 
hwdb/60-keyboard: untabify and move comments to the same column

Follow-up for b0a3a3ff5d80d1605926fbba1d25a0f2448e383c.

3 years agoMerge pull request #17640 from keszybz/meson-test-c++20
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 16:14:49 +0000 (17:14 +0100)] 
Merge pull request #17640 from keszybz/meson-test-c++20

Also test headers against c++20

3 years agoMerge pull request #17643 from keszybz/man-news-independent
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 16:14:14 +0000 (17:14 +0100)] 
Merge pull request #17643 from keszybz/man-news-independent

NEWS and man page tweaks

3 years agoNEWS,man: improve descriptions of Independent= 17643/head
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 10:53:10 +0000 (11:53 +0100)] 
NEWS,man: improve descriptions of Independent=

In NEWS, the new option was described twice, most likely because the first
description was tucked away in a paragraph about some other subject.

While at it, improve the descriptions in the man page to make it easier to grok
what that option really does.

3 years agoman: drop misplaced phrase
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 10:46:50 +0000 (11:46 +0100)] 
man: drop misplaced phrase

I think it was added in 6c2b9c8da1eb1bac7e8f170b913f63dbd13a16d7 as c&p.

3 years agoman: Add a paragraph to sd_bus_call explaning callback message lifetime
igo95862 [Tue, 17 Nov 2020 09:47:28 +0000 (12:47 +0300)] 
man: Add a paragraph to sd_bus_call explaning callback message lifetime

3 years agoMerge pull request #17584 from yuwata/news-networkd
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 09:59:20 +0000 (10:59 +0100)] 
Merge pull request #17584 from yuwata/news-networkd

NEWS: several entries for networkd

3 years agonetwork: use the common "cannot" form
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 09:55:36 +0000 (10:55 +0100)] 
network: use the common "cannot" form

Just for consistency.

3 years agoman/systemd.netdev: remove bogus markup
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 09:55:12 +0000 (10:55 +0100)] 
man/systemd.netdev: remove bogus markup

There is no "Multicast" constant, and NULL doesn't make sense in the
context of addresses.

3 years agoman/systemd.netdev: don't say "ranges"
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 09:43:13 +0000 (10:43 +0100)] 
man/systemd.netdev: don't say "ranges"

3 years agoNEWS: slightly fix explanation about oomd 17584/head
Yu Watanabe [Thu, 12 Nov 2020 13:41:15 +0000 (22:41 +0900)] 
NEWS: slightly fix explanation about oomd

3 years agoman: DHCPv6PrefixDelegation= is disabled by dafault
Yu Watanabe [Thu, 12 Nov 2020 13:39:42 +0000 (22:39 +0900)] 
man: DHCPv6PrefixDelegation= is disabled by dafault

3 years agoNEWS: add several entries for networkd
Yu Watanabe [Thu, 12 Nov 2020 13:39:03 +0000 (22:39 +0900)] 
NEWS: add several entries for networkd

3 years agoMerge pull request #17599 from yuwata/meson-fuzz-tests
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 09:16:47 +0000 (10:16 +0100)] 
Merge pull request #17599 from yuwata/meson-fuzz-tests

meson: do not build fuzzers when -Dfuzz-tests=false

3 years agotest-oomd-util: remove memory_pressure == 0 checks
Anita Zhang [Thu, 12 Nov 2020 21:53:20 +0000 (13:53 -0800)] 
test-oomd-util: remove memory_pressure == 0 checks

test_oomd_cgroup_context_acquire_and_insert reads the live cgroup data used
by the unit test. Under certain conditions, the memory pressure for the cgroup
can be non-zero (although most of the time it is 0 since these tests don't
generate much pressure).

Since these values are too dependent on the state of the system, remove the
checks. The type used is always >= 0 and test-psi-util already unit tests that
PSI values are parsed correctly from files so this test is redundant anyways.

3 years agoman: mention that FirewallMark= optionally takes firewall mask
Yu Watanabe [Fri, 13 Nov 2020 06:05:31 +0000 (15:05 +0900)] 
man: mention that FirewallMark= optionally takes firewall mask

Closes #17587.

3 years agoMerge pull request #17597 from yuwata/fix-typo
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 09:06:58 +0000 (10:06 +0100)] 
Merge pull request #17597 from yuwata/fix-typo

tree-wide: Fix typo

3 years agotest: let's start getting ready for 2020 17640/head
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 09:03:15 +0000 (10:03 +0100)] 
test: let's start getting ready for 2020

It'll be a wonderful year, I'm sure.

3 years agomeson: use proper variable for libudev.h path
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 09:01:05 +0000 (10:01 +0100)] 
meson: use proper variable for libudev.h path

3 years agomeson: fix build tests for c++14 and c++17
Yu Watanabe [Fri, 13 Nov 2020 18:09:23 +0000 (03:09 +0900)] 
meson: fix build tests for c++14 and c++17

3 years agoMerge pull request #17603 from yuwata/systemctl-fix-underline
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 08:49:05 +0000 (09:49 +0100)] 
Merge pull request #17603 from yuwata/systemctl-fix-underline

systemctl: always show underline even if unit has no job ID

3 years agoudev: use FOREACH_DEVICE_TAG() macro at one more place
Yu Watanabe [Mon, 16 Nov 2020 09:36:11 +0000 (18:36 +0900)] 
udev: use FOREACH_DEVICE_TAG() macro at one more place

3 years agoMerge pull request #17612 from yuwata/fix-man-pages
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 08:45:50 +0000 (09:45 +0100)] 
Merge pull request #17612 from yuwata/fix-man-pages

man: fix two issues

3 years agoMerge pull request #17614 from jwrdegoede/hwdb-logitech-kbd-fixes
Zbigniew Jędrzejewski-Szmek [Tue, 17 Nov 2020 08:33:58 +0000 (09:33 +0100)] 
Merge pull request #17614 from jwrdegoede/hwdb-logitech-kbd-fixes

hwdb Logitech keyboard fixes

3 years agoman: Separated paragraph about making sd_bus object reply async
igo95862 [Tue, 17 Nov 2020 07:54:19 +0000 (10:54 +0300)] 
man: Separated paragraph about making sd_bus object reply async

3 years agoupdate TODO
Lennart Poettering [Mon, 16 Nov 2020 10:29:15 +0000 (11:29 +0100)] 
update TODO

3 years agoman: add missing full stop
Lennart Poettering [Mon, 16 Nov 2020 10:13:49 +0000 (11:13 +0100)] 
man: add missing full stop

3 years agoMerge pull request #17619 from yuwata/network-ndisc-dhcp6-client-always
Yu Watanabe [Mon, 16 Nov 2020 16:20:56 +0000 (01:20 +0900)] 
Merge pull request #17619 from yuwata/network-ndisc-dhcp6-client-always

network: honor M or O flag in RA even if IPv6AcceptRA.DHCPv6Cleint=always

3 years agomeson: use "_" as separator in test names
Yu Watanabe [Fri, 13 Nov 2020 06:55:54 +0000 (15:55 +0900)] 
meson: use "_" as separator in test names

Follow-up for ca121e20c42219e3bc4e5cb63dcc96cc5eae2879.

Fixes #17568.

3 years agosd-dhcp6-client: insert spaces around ternary operator 17619/head
Yu Watanabe [Mon, 16 Nov 2020 07:47:51 +0000 (16:47 +0900)] 
sd-dhcp6-client: insert spaces around ternary operator

3 years agonetwork: honor M or O flag in RA even if IPv6AcceptRA.DHCPv6Cleint=always
Yu Watanabe [Mon, 16 Nov 2020 07:25:43 +0000 (16:25 +0900)] 
network: honor M or O flag in RA even if IPv6AcceptRA.DHCPv6Cleint=always

Follow-up for ac24e418d9bc988ecf114c464701b35934948178.

The original motivation of the commit and RFE #15339 is to start dhcpv6
client in managed mode when neither M nor O flag is set in the RA.
But, previously, if the setting is set to "always", then the DHCPv6
client is always started in managed mode even if O flag is set in the
RA. Such the behavior breaks RFC 7084.

3 years agomissing: define several syscall numbers for MIPS arch
Yu Watanabe [Fri, 13 Nov 2020 05:58:49 +0000 (14:58 +0900)] 
missing: define several syscall numbers for MIPS arch

Fixes #17591.

3 years agoMerge pull request #17600 from yuwata/drop-log-oom
Yu Watanabe [Mon, 16 Nov 2020 08:03:46 +0000 (17:03 +0900)] 
Merge pull request #17600 from yuwata/drop-log-oom

util: drop log_oom() from several library functions

3 years agotest: bump timeout for test-libcrypt-util
Michael Biebl [Fri, 13 Nov 2020 22:48:37 +0000 (23:48 +0100)] 
test: bump timeout for test-libcrypt-util

Apparently this test is prone to time out on slower architectures, so
bump it from 30s to 120s.

See
https://buildd.debian.org/status/fetch.php?pkg=systemd&arch=mipsel&ver=247%7Erc2-2&stamp=1605303506&raw=0
https://buildd.debian.org/status/fetch.php?pkg=systemd&arch=sparc64&ver=247%7Erc2-2&stamp=1605294845&raw=0

3 years agoclang-format: set SpaceBeforeParens to ControlStatementsExceptForEachMacros
Daan De Meyer [Mon, 16 Nov 2020 00:11:50 +0000 (00:11 +0000)] 
clang-format: set SpaceBeforeParens to ControlStatementsExceptForEachMacros

I contributed this option to LLVM a while ago to reduce the amount of
changes clang-format makes when formatting systemd source files. As
LLVM 11 is now starting to becomes widely available, let's configure
it in the clang-format config.

3 years agonetworkd: fix default value of DHCPv6Client
Christof Efkemann [Sun, 15 Nov 2020 19:08:39 +0000 (20:08 +0100)] 
networkd: fix default value of DHCPv6Client

The configuration of networkd has a DHCPv6Client setting in its
[IPv6AcceptRA] section, which, according to the man page, can be
a boolean, or the special value "always". The man page states
that "true" is the default.

The default value is implemented in src/network/networkd-network.c
by setting field ipv6_accept_ra_start_dhcp6_client of network to
true. However, this field is not a boolean, but an enum type
IPv6AcceptRAStartDHCP6Client (src/network/networkd-ndisc.h).

Setting ipv6_accept_ra_start_dhcp6_client to true effectively
corresponds to the enum value IPV6_ACCEPT_RA_START_DHCP6_CLIENT_ALWAYS,
resulting in the DHCPv6Client setting having the default value
"always".

This patch changes the initialisation to the correct enum value
IPV6_ACCEPT_RA_START_DHCP6_CLIENT_YES.

3 years agohwdb: 60-keyboard: Update Logitech MX5000 key mappings 17614/head
Hans de Goede [Sat, 14 Nov 2020 17:16:12 +0000 (18:16 +0100)] 
hwdb: 60-keyboard: Update Logitech MX5000 key mappings

2 updates to the Logitech MX5000 key mappings:

1. Fix Logitech MX5000 Media key mapping:

The MX5000 has a key clearly marked "media" (in text) and when they gets
pressed the keyboards LCD briefly shows "MEDIA" in a big font.

Yet the keyboard sends a HID usage code which according to the HUTT
is config/control-panel. Map this to media so that the key behaves as
labeled.

2. Add mapping for the scan-code send by the Fn on/off toggle key

3 years agohwdb: 60-keyboard: Add Logitech Dinovo Edge special key key-mappings
Hans de Goede [Wed, 4 Nov 2020 09:36:09 +0000 (10:36 +0100)] 
hwdb: 60-keyboard: Add Logitech Dinovo Edge special key key-mappings

The Logitech Dinovo Edge has 5 special hotkeys, one with a phone symbol
and the 4 usual Logitech A-D smartkeys. These send custom Logitech
0xc10xx keycodes, add mappings for these.

3 years agohwdb: 60-keyboard: Add Fn key mapping for Logitech wireless keyboards
Hans de Goede [Sat, 14 Nov 2020 16:23:54 +0000 (17:23 +0100)] 
hwdb: 60-keyboard: Add Fn key mapping for Logitech wireless keyboards

Some Logitech wireless keyboards report when there Fn key is pressed,
add a mapping for this.

While it also fix identiation of 2 adjescent key-maps to use tabs like the
other Logitech entries

3 years agoman: fix prototpe of sd_bus_message_peek_type() 17612/head
Yu Watanabe [Sat, 14 Nov 2020 20:13:55 +0000 (05:13 +0900)] 
man: fix prototpe of sd_bus_message_peek_type()

Fixes #17609.

3 years agoman: add missing <para> tag, and drop redundant ">"
Yu Watanabe [Sat, 14 Nov 2020 20:10:10 +0000 (05:10 +0900)] 
man: add missing <para> tag, and drop redundant ">"

Fixes #17609.

3 years agosystemctl: fix minor coding style issue 17603/head
Yu Watanabe [Sat, 14 Nov 2020 00:06:35 +0000 (09:06 +0900)] 
systemctl: fix minor coding style issue

3 years agosystemctl: use unsigned for job_count
Yu Watanabe [Sat, 14 Nov 2020 00:05:29 +0000 (09:05 +0900)] 
systemctl: use unsigned for job_count

As, the number of units `c` is unsigned.

3 years agosystemctl: always show underline even if unit has no job ID
Yu Watanabe [Sat, 14 Nov 2020 00:19:01 +0000 (09:19 +0900)] 
systemctl: always show underline even if unit has no job ID

3 years agoio-util: do not call log_oom() in library functions 17600/head
Yu Watanabe [Fri, 13 Nov 2020 10:35:01 +0000 (19:35 +0900)] 
io-util: do not call log_oom() in library functions

3 years agobpf: do not call log_oom() in library function
Yu Watanabe [Fri, 13 Nov 2020 10:30:57 +0000 (19:30 +0900)] 
bpf: do not call log_oom() in library function

3 years agoci: also set -Dfuzz-tests=true if -Dslow-tests=true 17599/head
Yu Watanabe [Fri, 13 Nov 2020 06:27:51 +0000 (15:27 +0900)] 
ci: also set -Dfuzz-tests=true if -Dslow-tests=true

3 years agomeson: do not build fuzzers when fuzz-tests=false
Yu Watanabe [Fri, 13 Nov 2020 06:22:07 +0000 (15:22 +0900)] 
meson: do not build fuzzers when fuzz-tests=false

Closes #17578.

3 years agotest: fix typo 17597/head
Yu Watanabe [Fri, 13 Nov 2020 07:22:19 +0000 (16:22 +0900)] 
test: fix typo

3 years agoman: fix typo
Yu Watanabe [Fri, 13 Nov 2020 07:22:11 +0000 (16:22 +0900)] 
man: fix typo

3 years agotree-wide: fix "a the" or "the a"
Yu Watanabe [Fri, 13 Nov 2020 07:19:49 +0000 (16:19 +0900)] 
tree-wide: fix "a the" or "the a"

3 years agoratelimit: fix integer overflow 17595/head
Etienne Doms [Thu, 12 Nov 2020 10:09:54 +0000 (11:09 +0100)] 
ratelimit: fix integer overflow

If StartLimitIntervalSec is huge, or more specifically, set to "infinity", we need to take care about overflows.

3 years agoMerge pull request #17583 from systemd/oomd-and-user-slices
Yu Watanabe [Thu, 12 Nov 2020 13:12:31 +0000 (22:12 +0900)] 
Merge pull request #17583 from systemd/oomd-and-user-slices

Make oomd easier to enable and user slices to NEWS

3 years agoNEWS: describe the new user slices 17583/head
Zbigniew Jędrzejewski-Szmek [Thu, 12 Nov 2020 12:32:39 +0000 (13:32 +0100)] 
NEWS: describe the new user slices

3 years agomeson: allow oomd to be enabled even in release mode
Zbigniew Jędrzejewski-Szmek [Thu, 12 Nov 2020 12:05:05 +0000 (13:05 +0100)] 
meson: allow oomd to be enabled even in release mode

A distro (Fedora in particular) may want to enable oomd in a unstable
branch for testing, even though the package as a whole is compiled in release
mode. Let's emit a warning but otherwise allow this.

3 years agohwdb: 60-keyboard:: add Dell Privacy Micmute Hotkey
perry_yuan [Wed, 4 Nov 2020 02:50:51 +0000 (21:50 -0500)] 
hwdb: 60-keyboard:: add Dell Privacy Micmute Hotkey

Dell new Privacy feature provide new hardware level privacy
protect for users,it needs to map the scan code to F20 micmute

Signed-off-by: Perry Yuan <perry_yuan@dell.com>
3 years agoMerge pull request #17561 from yuwata/man v247-rc2
Zbigniew Jędrzejewski-Szmek [Thu, 12 Nov 2020 10:26:36 +0000 (11:26 +0100)] 
Merge pull request #17561 from yuwata/man

3 years agomeson: add option to skip installing to $sysconfdir
Jörg Thalheim [Thu, 12 Nov 2020 07:01:39 +0000 (08:01 +0100)] 
meson: add option to skip installing to $sysconfdir

This is useful for development where overwriting files out side
the configured prefix will affect the host as well as stateless
systems such as NixOS that don't let packages install to /etc but handle
configuration on their own.

Alternative to https://github.com/systemd/systemd/pull/17501

tested with:

$ mkdir inst build && cd build
$ meson \
  -Dcreate-log-dirs=false \
  -Dsysvrcnd-path=$(realpath ../inst)/etc/rc.d \
  -Dsysvinit-path=$(realpath ../inst)/etc/init.d \
  -Drootprefix=$(realpath ../inst) \
  -Dinstall-sysconfdir=false \
  --prefix=$(realpath ../inst) ..
$ ninja install

3 years agolicense: LGPL-2.1+ -> LGPL-2.1-or-later
Yu Watanabe [Thu, 12 Nov 2020 09:40:21 +0000 (18:40 +0900)] 
license: LGPL-2.1+ -> LGPL-2.1-or-later

Follow-up for db9ecf050165fd1033c6f81485917e229c4be537.

3 years agoman: set constant tag to NUL or NULL 17561/head
Yu Watanabe [Thu, 12 Nov 2020 07:58:00 +0000 (16:58 +0900)] 
man: set constant tag to NUL or NULL

3 years agoman: append parentheses for function name
Yu Watanabe [Mon, 9 Nov 2020 21:38:36 +0000 (06:38 +0900)] 
man: append parentheses for function name

3 years agoman: fix tag
Yu Watanabe [Mon, 9 Nov 2020 21:10:16 +0000 (06:10 +0900)] 
man: fix tag

3 years agoman: mention that sd_bus_call() may return a negative errno mapped from D-Bus error...
Yu Watanabe [Mon, 9 Nov 2020 20:57:41 +0000 (05:57 +0900)] 
man: mention that sd_bus_call() may return a negative errno mapped from D-Bus error reply

Closes #17556.

3 years agoman: add missing period
Yu Watanabe [Mon, 9 Nov 2020 20:25:29 +0000 (05:25 +0900)] 
man: add missing period

3 years agoMerge pull request #17567 from keszybz/various-small-cleanups
Yu Watanabe [Thu, 12 Nov 2020 07:30:06 +0000 (16:30 +0900)] 
Merge pull request #17567 from keszybz/various-small-cleanups

Various small cleanups

3 years agomeson: use "_" as separator in test names
Zbigniew Jędrzejewski-Szmek [Wed, 11 Nov 2020 13:37:07 +0000 (14:37 +0100)] 
meson: use "_" as separator in test names

":" is prettier, but meson 0.56+ doesn't like it:
src/systemd/meson.build:73: DEPRECATION: ":" is not allowed in test name "cc-sd-bus.h:c", it has been replaced with "_"
src/systemd/meson.build:73: DEPRECATION: ":" is not allowed in test name "cc-sd-bus.h:c-ansi", it has been replaced with "_"
...

Fixes #17568.

3 years agoMerge pull request #16603 from benzea/benzea/special-app-slice
Lennart Poettering [Wed, 11 Nov 2020 13:11:02 +0000 (14:11 +0100)] 
Merge pull request #16603 from benzea/benzea/special-app-slice

Use app.slice by default in user manager (and define special user slices)

3 years agoNEWS,man: tweak the description of FixedRandomDelay=
Zbigniew Jędrzejewski-Szmek [Tue, 10 Nov 2020 16:24:22 +0000 (17:24 +0100)] 
NEWS,man: tweak the description of FixedRandomDelay=

Explain why this is useful, but don't describe the implementation exactly,
since we're likely to want to change details in the future.

3 years agouser: move "extrinsic" units to their root slice 16603/head
Zbigniew Jędrzejewski-Szmek [Thu, 5 Nov 2020 12:59:17 +0000 (13:59 +0100)] 
user: move "extrinsic" units to their root slice

With the grandparent change to move most units to app.slice,
those units would be ordered After=app.slice which doesn't make any sense.
Actually they appear earlier, before the manager is even started, and
conceputally it doesn't seem useful to put them under any slice.