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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

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

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

4 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

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

4 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

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

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

4 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

4 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

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

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

5 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

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

5 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

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

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

5 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

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

5 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

5 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

5 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

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

5 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

5 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

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

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

5 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

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

5 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

5 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

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

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

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

5 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

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

5 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)

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

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

5 years agoMerge pull request #17566 from poettering/v247-rc2-prep
Zbigniew Jędrzejewski-Szmek [Tue, 10 Nov 2020 15:59:30 +0000 (16:59 +0100)] 
Merge pull request #17566 from poettering/v247-rc2-prep

V247 rc2 prep

5 years agobasic/fileio: constify struct timespec arguments 17567/head
Zbigniew Jędrzejewski-Szmek [Sun, 25 Oct 2020 12:44:43 +0000 (13:44 +0100)] 
basic/fileio: constify struct timespec arguments

5 years agolibsystemd-network: add comment explaining unusual memory access
Zbigniew Jędrzejewski-Szmek [Tue, 10 Nov 2020 14:33:28 +0000 (15:33 +0100)] 
libsystemd-network: add comment explaining unusual memory access

Inspired by coverity CID#1435984. I'm confused by the union definion every time I look at it...
Let's at least add a comment to help future readers.

5 years agotree-wide: unsetenv cannot fail
Zbigniew Jędrzejewski-Szmek [Tue, 10 Nov 2020 11:14:28 +0000 (12:14 +0100)] 
tree-wide: unsetenv cannot fail

... when called with a valid environment variable name. This means that
any time we call it with a fixed string, it is guaranteed to return 0.
(Also when the variable is not present in the environment block.)

5 years agobasic/env-util: add little helper to call setenv or unsetenv
Zbigniew Jędrzejewski-Szmek [Tue, 10 Nov 2020 11:25:55 +0000 (12:25 +0100)] 
basic/env-util: add little helper to call setenv or unsetenv

5 years agopid1: expose "extrinsic" status of swaps and mounts
Zbigniew Jędrzejewski-Szmek [Thu, 5 Nov 2020 12:08:02 +0000 (13:08 +0100)] 
pid1: expose "extrinsic" status of swaps and mounts

The only visible change from this is that we show Extrinsic: yes/no
in dumps for swap units (this was already done for mount units).

5 years agoman: properly list relative time event source API in man page 17566/head
Lennart Poettering [Tue, 10 Nov 2020 13:20:06 +0000 (14:20 +0100)] 
man: properly list relative time event source API in man page

The content was already there, but it wasn't listed in the header
metadata. Fix that.

5 years agosd-event: minor modernization
Zbigniew Jędrzejewski-Szmek [Tue, 10 Nov 2020 09:44:53 +0000 (10:44 +0100)] 
sd-event: minor modernization

With this change the pattern used for epoll_ctl() is the same in all calls in
this file. Consistency FTW!

5 years agosd-event: increase n_enabled_child_sources just once
Zbigniew Jędrzejewski-Szmek [Tue, 10 Nov 2020 11:57:34 +0000 (12:57 +0100)] 
sd-event: increase n_enabled_child_sources just once

Neither source_child_pidfd_register() nor event_make_signal_data() look at
n_enabled_child_sources.

5 years agosd-event: update state at the end in event_source_enable
Zbigniew Jędrzejewski-Szmek [Tue, 10 Nov 2020 09:38:37 +0000 (10:38 +0100)] 
sd-event: update state at the end in event_source_enable

Coverity in CID#1435966 was complaining that s->enabled is not "restored" in
all cases. But the code was actually correct, since it should only be
"restored" in the error paths. But let's still make this prettier by not setting
the state before all operations that may fail are done.

We need to set .enabled for the prioq reshuffling operations, so move those down.

No functional change intended.

5 years agohwdb: update
Lennart Poettering [Tue, 10 Nov 2020 13:16:17 +0000 (14:16 +0100)] 
hwdb: update

5 years agogit-contrib: exclude -rc tags
Lennart Poettering [Tue, 10 Nov 2020 13:12:27 +0000 (14:12 +0100)] 
git-contrib: exclude -rc tags

5 years agoupdate NEWS
Lennart Poettering [Tue, 10 Nov 2020 13:12:08 +0000 (14:12 +0100)] 
update NEWS

5 years agoMerge pull request #17497 from anitazha/randomizeonce
Lennart Poettering [Tue, 10 Nov 2020 12:29:04 +0000 (13:29 +0100)] 
Merge pull request #17497 from anitazha/randomizeonce

timer: add new feature FixedRandomDelay=

5 years agoAdd Logitech G403 Prodigy Gaming Mouse to hwdb. (#17537)
onlybugreports [Tue, 10 Nov 2020 12:16:13 +0000 (09:16 -0300)] 
Add Logitech G403 Prodigy Gaming Mouse to hwdb. (#17537)

This PR adds logitech G403 to the hwdb.
Settings were obtained with 'sudo mouse-dpi-tool /dev/input/event3' and 'ratbagctl hollering-marmot info'.

5 years agoMerge pull request #17555 from yuwata/ethtool-get-driver
Lennart Poettering [Tue, 10 Nov 2020 12:15:10 +0000 (13:15 +0100)] 
Merge pull request #17555 from yuwata/ethtool-get-driver

ethtool: make ethtool_get_driver() return -ENODATA if driver is an empty string.

5 years agojournal: refuse skip parameter for sd_journal_next_skip() larger than INT_MAX
Yu Watanabe [Mon, 9 Nov 2020 06:23:32 +0000 (15:23 +0900)] 
journal: refuse skip parameter for sd_journal_next_skip() larger than INT_MAX

Fixes #17502.

5 years agoMerge pull request #17431 from msekletar/udev-link-update-race
Zbigniew Jędrzejewski-Szmek [Tue, 10 Nov 2020 08:41:57 +0000 (09:41 +0100)] 
Merge pull request #17431 from msekletar/udev-link-update-race

udev: make algorithm that selects highest priority devlink less susceptible to race conditions

5 years agosd-bus: drop redundant abs()
Yu Watanabe [Mon, 9 Nov 2020 20:40:58 +0000 (05:40 +0900)] 
sd-bus: drop redundant abs()

strerror_safe() internally applies abs().

5 years agocore: add missing oom check
Yu Watanabe [Mon, 9 Nov 2020 14:59:36 +0000 (23:59 +0900)] 
core: add missing oom check

Fixes #17552.

5 years agoudev: log when we fail to query ID_NET_DRIVER
Zbigniew Jędrzejewski-Szmek [Mon, 9 Nov 2020 14:39:29 +0000 (15:39 +0100)] 
udev: log when we fail to query ID_NET_DRIVER

Inspired by #17532.

5 years agoMerge pull request #17551 from yuwata/radv-router-lifetime
Zbigniew Jędrzejewski-Szmek [Mon, 9 Nov 2020 20:07:16 +0000 (21:07 +0100)] 
Merge pull request #17551 from yuwata/radv-router-lifetime

network: about router lifetime

5 years agoethtool: make ethtool_get_driver() return -ENODATA if ioctl succeeds but driver name... 17555/head
Yu Watanabe [Mon, 9 Nov 2020 16:14:38 +0000 (01:14 +0900)] 
ethtool: make ethtool_get_driver() return -ENODATA if ioctl succeeds but driver name is empty

Inspired by #17532.

5 years agoethtool: add several assertions
Yu Watanabe [Mon, 9 Nov 2020 16:04:36 +0000 (01:04 +0900)] 
ethtool: add several assertions

5 years agonetwork: convert router lifetime from usec_t to uint16_t 17551/head
Yu Watanabe [Mon, 9 Nov 2020 07:49:33 +0000 (16:49 +0900)] 
network: convert router lifetime from usec_t to uint16_t

5 years agosd-radv: refuse to set preference except medium when router lifetime is zero
Yu Watanabe [Mon, 9 Nov 2020 07:41:17 +0000 (16:41 +0900)] 
sd-radv: refuse to set preference except medium when router lifetime is zero

5 years agosd-radv: router lifetime is uint16_t
Yu Watanabe [Mon, 9 Nov 2020 07:35:24 +0000 (16:35 +0900)] 
sd-radv: router lifetime is uint16_t

5 years agonetwork: make default router lifetime to 30min
Yu Watanabe [Mon, 9 Nov 2020 07:29:32 +0000 (16:29 +0900)] 
network: make default router lifetime to 30min

Closes #17527.

5 years agoMerge pull request #17549 from yuwata/tiny-fixes
Lennart Poettering [Mon, 9 Nov 2020 15:04:01 +0000 (16:04 +0100)] 
Merge pull request #17549 from yuwata/tiny-fixes

tiny fixes

5 years agoMerge pull request #17548 from yuwata/license-update
Zbigniew Jędrzejewski-Szmek [Mon, 9 Nov 2020 08:34:31 +0000 (09:34 +0100)] 
Merge pull request #17548 from yuwata/license-update

License: LGPL-2.1+ -> LGPL-2.1-or-later, and GPL-2.0+ -> GPL-2.0-or-later

5 years agocore: reduce scope of variants 17549/head
Yu Watanabe [Mon, 9 Nov 2020 05:40:02 +0000 (14:40 +0900)] 
core: reduce scope of variants

Fixes #17543.

5 years agosd-bus: fix possible division by 0
Yu Watanabe [Mon, 9 Nov 2020 05:33:16 +0000 (14:33 +0900)] 
sd-bus: fix possible division by 0

Fixes #17541.

5 years agohome: fix copy-and-paste mistake
Yu Watanabe [Mon, 9 Nov 2020 05:00:14 +0000 (14:00 +0900)] 
home: fix copy-and-paste mistake

Fixes #17542.

5 years agolicense: GPL-2.0+ -> GPL-2.0-or-later 17548/head
Yu Watanabe [Mon, 9 Nov 2020 04:25:50 +0000 (13:25 +0900)] 
license: GPL-2.0+ -> GPL-2.0-or-later

5 years agolicense: LGPL-2.1+ -> LGPL-2.1-or-later
Yu Watanabe [Mon, 9 Nov 2020 04:23:58 +0000 (13:23 +0900)] 
license: LGPL-2.1+ -> LGPL-2.1-or-later

5 years agohwdb: Add support for HP ZBook Studio G5 keyboard (#17525)
fwSmit [Sat, 7 Nov 2020 11:20:03 +0000 (12:20 +0100)] 
hwdb: Add support for HP ZBook Studio G5 keyboard (#17525)

I tested this on my ZBook Studio G5. I'm not sure if this works for other ZBook studio machines.

I have two more notes on this PR:
- some keys send multiple scancodes. I matched only on one of them, because I couldn't figure out how to match
on all of them. This results in the others still being visible:
Event: time 1604520228.146226, -------------- SYN_REPORT ------------
Event: time 1604520228.151533, type 4 (EV_MSC), code 4 (MSC_SCAN), value db
Event: time 1604520228.151533, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 1
Event: time 1604520228.151533, -------------- SYN_REPORT ------------
Event: time 1604520228.259862, type 4 (EV_MSC), code 4 (MSC_SCAN), value 38
Event: time 1604520228.259862, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 0
Event: time 1604520228.259862, -------------- SYN_REPORT ------------
Event: time 1604520228.259944, type 4 (EV_MSC), code 4 (MSC_SCAN), value 66
Event: time 1604520228.259944, type 1 (EV_KEY), code 218 (KEY_CONNECT), value 0
Event: time 1604520228.259944, -------------- SYN_REPORT ------------
Event: time 1604520228.266513, type 4 (EV_MSC), code 4 (MSC_SCAN), value db
Event: time 1604520228.266513, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 0
Event: time 1604520228.266513, -------------- SYN_REPORT ------------

I wanted to set the display key to switchvideomode, but another key is already set to that, so I set it to displaytoggle instead.

5 years agoresolved: fix non-initialized memory access
Lennart Poettering [Fri, 6 Nov 2020 17:08:38 +0000 (18:08 +0100)] 
resolved: fix non-initialized memory access

Fix for bug introduced in 1ed314087fab3988f3221b1b736a7e711f174349.

5 years agoMerge pull request #17534 from poettering/resolved-more-tweaks
Lennart Poettering [Fri, 6 Nov 2020 21:39:09 +0000 (22:39 +0100)] 
Merge pull request #17534 from poettering/resolved-more-tweaks

seven smaller resolved tweaks

5 years agoresolved: slightly extend debug log output about outgoing messages 17534/head
Lennart Poettering [Fri, 6 Nov 2020 10:46:39 +0000 (11:46 +0100)] 
resolved: slightly extend debug log output about outgoing messages

5 years agoresolved: don't resolve "local." via LLMNR
Lennart Poettering [Thu, 5 Nov 2020 13:16:03 +0000 (14:16 +0100)] 
resolved: don't resolve "local." via LLMNR

It's the mDNS top-level domain, hence don't consider it for LLMNR, ever.

Fixes: #16233
5 years agoresolved: add comments for various query flags
Lennart Poettering [Thu, 5 Nov 2020 08:45:12 +0000 (09:45 +0100)] 
resolved: add comments for various query flags

5 years agoresolved: show all answer flags when dumping answer
Lennart Poettering [Wed, 4 Nov 2020 20:01:49 +0000 (21:01 +0100)] 
resolved: show all answer flags when dumping answer

5 years agoresolved: add minor optimization path to dns_answer_merge()
Lennart Poettering [Wed, 4 Nov 2020 19:42:02 +0000 (20:42 +0100)] 
resolved: add minor optimization path to dns_answer_merge()

5 years agoresolved: suppress misleading debug message about ignored resolv.conf line
Lennart Poettering [Thu, 5 Nov 2020 14:49:15 +0000 (15:49 +0100)] 
resolved: suppress misleading debug message about ignored resolv.conf line

5 years agoerrno: ETIMEDOUT is also a connection error
Lennart Poettering [Fri, 6 Nov 2020 13:30:25 +0000 (14:30 +0100)] 
errno: ETIMEDOUT is also a connection error

5 years agoudev: make algorithm that selects highest priority devlink less susceptible to race... 17431/head
Michal Sekletár [Fri, 23 Oct 2020 14:30:23 +0000 (16:30 +0200)] 
udev: make algorithm that selects highest priority devlink less susceptible to race conditions

Previously it was very likely, when multiple contenders for the symlink
appear in parallel, that algorithm would select wrong symlink (i.e. one
with lower-priority).

Now the algorithm is much more defensive and when we detect change in
set of contenders for the symlink we reevaluate the selection. Same
happens when new symlink replaces already existing symlink that points
to different device node.

5 years agobasic/stat-util: make mtime check stricter and use entire timestamp
Michal Sekletár [Thu, 5 Nov 2020 16:55:25 +0000 (17:55 +0100)] 
basic/stat-util: make mtime check stricter and use entire timestamp

Note that st_mtime member of struct stat is defined as follows,

 #define st_mtime st_mtim.tv_sec

Hence we omitted checking nanosecond part of the timestamp (struct
timespec) and possibly would miss modifications that happened within the
same second.

5 years agojournalctl: show boot id in the reboot context separator
Ronan Pigott [Wed, 28 Oct 2020 06:53:23 +0000 (23:53 -0700)] 
journalctl: show boot id in the reboot context separator

5 years agohwdb: Fix Pinebook Pro's brightness up/down and sleep keys
Jian-Hong Pan [Thu, 5 Nov 2020 04:22:08 +0000 (12:22 +0800)] 
hwdb: Fix Pinebook Pro's brightness up/down and sleep keys

Pinebook Pro's display brightness up & down keys do not work until the
keys are mapped to the corresponding codes.

Also, the sleep key is mapped to KEY_POWER code originally. This quirk
maps the sleep key to the KEY_SLEEP code.

This idea comes from the pinebookpro-post-install package [1] of Manjaro
ARM, which is the preloaded OS on Pinebook Pro.

[1]: https://gitlab.manjaro.org/manjaro-arm/packages/community/pinebookpro-post-install/-/commit/7ab1a134ea9d5b55d99de567d1ebee4ebd6f6640

5 years agoseccomp: allow turning off of seccomp filtering via env var
Lennart Poettering [Mon, 2 Nov 2020 13:51:10 +0000 (14:51 +0100)] 
seccomp: allow turning off of seccomp filtering via env var

Fixes: #17504
(While we are it, also move $SYSTEMD_SECCOMP_LOG= env var description
into the right document section)

Also suggested in: https://github.com/systemd/systemd/issues/17245#issuecomment-704773603

5 years agotimer: add new feature FixedRandomDelay= 17497/head
Kristijan Gjoshev [Sat, 1 Feb 2020 17:27:08 +0000 (18:27 +0100)] 
timer: add new feature FixedRandomDelay=

FixedRandomDelay=yes will use
`siphash24(sd_id128_get_machine() || MANAGER_IS_SYSTEM(m) || getuid() || u->id)`,
where || is concatenation, instead of a random number to choose a value between
0 and RandomizedDelaySec= as the timer delay.
This essentially sets up a fixed, but seemingly random, offset for each timer
iteration rather than having a random offset recalculated each time it fires.

Closes #10355

Co-author: Anita Zhang <the.anitazha@gmail.com>

5 years agoupdate TODO
Lennart Poettering [Wed, 4 Nov 2020 14:46:51 +0000 (15:46 +0100)] 
update TODO

5 years agoselinux: also try the netlink-based fallback and continue on permission error
Zbigniew Jędrzejewski-Szmek [Tue, 27 Oct 2020 18:47:26 +0000 (19:47 +0100)] 
selinux: also try the netlink-based fallback and continue on permission error

Fedora Rawhide still has the old policy, so selinux prevents our selinux code
from checking if selinux is enabled. But it seems smart to fall back to the old
API anyway.

Follow-up for fd5e402fa9377f2860e02bdb5b84d5f5942e73f4.

Both the reference policy [1] and Fedora selinux policy [2] needed to be
updated, so it's likely that this will impact other distros too.

[1] https://github.com/SELinuxProject/refpolicy/pull/308
[2] https://github.com/fedora-selinux/selinux-policy/pull/464