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

3 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

3 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

3 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

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

3 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

3 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

3 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

3 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

3 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

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

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

3 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

3 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

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

3 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

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

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

3 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

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

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

3 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).

3 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

3 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

3 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

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

3 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

3 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

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

3 years agoresolved: remove duplicate comment
Lennart Poettering [Mon, 22 Feb 2021 22:07:22 +0000 (23:07 +0100)] 
resolved: remove duplicate comment

Practically the same comment is a few lines up covering both parts
anyway, let's remove one.

3 years agoresolved: update comment in DNS stub code a bit
Lennart Poettering [Mon, 22 Feb 2021 21:51:32 +0000 (22:51 +0100)] 
resolved: update comment in DNS stub code a bit

There's no "answer_auxiliary" object anymore, it's all one "answer"
object, and we have per-item flags that tell us which section things are
from, i.e. from the main answer section, or the additional or
authoritative ones.

3 years agoresolved: don't follow CNAMEs in the stub anymore
Lennart Poettering [Mon, 22 Feb 2021 20:32:13 +0000 (21:32 +0100)] 
resolved: don't follow CNAMEs in the stub anymore

CNAME following was broken by 775ae35403f8f3c01b7ac13387fe8aac1759993f
where we'd not properly collect RRs along the CNAME path. Good thing
though is that we don't have to anymore: since we nowadays propagate all
sections of the upstream replies into the cache and back to stub clients
all the information should already be available anyway, and there's no
need for us to collect it.

Fixes: #18690
3 years agoMerge pull request #18575 from bugaevc/aa
Zbigniew Jędrzejewski-Szmek [Mon, 22 Feb 2021 22:08:13 +0000 (23:08 +0100)] 
Merge pull request #18575 from bugaevc/aa

Set the AA bit in answers for synthetic records & mDNS

3 years agoRevert "generate-dns_type-gperf: modernize python syntax" 18745/head
Zbigniew Jędrzejewski-Szmek [Mon, 22 Feb 2021 21:42:01 +0000 (22:42 +0100)] 
Revert "generate-dns_type-gperf: modernize python syntax"

This reverts commit b0a336a66929ed2a146888178157bf1af5c8598c.

Fixes #18708.

3 years agoStop using f-strings in generate-sym-test.py
Zbigniew Jędrzejewski-Szmek [Mon, 22 Feb 2021 21:41:52 +0000 (22:41 +0100)] 
Stop using f-strings in generate-sym-test.py

This partially reverts 7857b6e8383f5debab9544ef3abb15a27830fafa.
Debian 9 has python3.5 which does not have f-strings yet.

Partially fixes #18708.

3 years agodocs: align tables vertically to top
Zbigniew Jędrzejewski-Szmek [Mon, 22 Feb 2021 20:10:04 +0000 (21:10 +0100)] 
docs: align tables vertically to top

Fixes #18706.

3 years agoTranslated using Weblate (Slovak)
Frantisek Sumsal [Mon, 22 Feb 2021 20:21:52 +0000 (21:21 +0100)] 
Translated using Weblate (Slovak)

Currently translated at 24.8% (47 of 189 strings)

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

3 years agoMerge pull request #18718 from yuwata/network-nexthop-blackhole
Yu Watanabe [Mon, 22 Feb 2021 19:44:12 +0000 (04:44 +0900)] 
Merge pull request #18718 from yuwata/network-nexthop-blackhole

network: introduce Blackhole= setting in [NextHop] section

3 years agoMerge pull request #18734 from poettering/cryptsetup-description-escape
Yu Watanabe [Mon, 22 Feb 2021 19:43:22 +0000 (04:43 +0900)] 
Merge pull request #18734 from poettering/cryptsetup-description-escape

cryptsetup: unescape ID_PART_ENTRY_NAME udev field

3 years agoMountImages: fix exec_context_dump printf
Luca Boccassi [Mon, 22 Feb 2021 10:12:34 +0000 (10:12 +0000)] 
MountImages: fix exec_context_dump printf

Use strempty as options might not be set, and add the separator
for each option tuple

3 years agoMerge pull request #18731 from yuwata/backlight-trivial-cleanups
Yu Watanabe [Mon, 22 Feb 2021 19:42:09 +0000 (04:42 +0900)] 
Merge pull request #18731 from yuwata/backlight-trivial-cleanups

backlight: trivial cleanups

3 years agohostnamed: rename FallbackHostname to DefaultHostname 18704/head
Zbigniew Jędrzejewski-Szmek [Sat, 20 Feb 2021 17:54:24 +0000 (18:54 +0100)] 
hostnamed: rename FallbackHostname to DefaultHostname

This follows the addition of DEFAULT_HOSTNAME= in os-release.
The distinction between the value from os-release or the env var and
the compile-time setting is not made in the api: HostnameSource is
"default" is all cases. I think that this level of detail is not needed,
because the users of this mostly care whether the hostname was set by
user configuration or not.

3 years agoUse the DEFAULT_HOSTNAME field from os-release
Zbigniew Jędrzejewski-Szmek [Fri, 19 Feb 2021 16:48:20 +0000 (17:48 +0100)] 
Use the DEFAULT_HOSTNAME field from os-release

This provides a fairly comprehensible fix for
https://bugzilla.redhat.com/show_bug.cgi?id=1893417.

This adds yet-another level of configuration:
- /etc/hostname
- transient hostname
- $SYSTEMD_DEFAULT_HOSTNAME
- DEFAULT_HOSTNAME is os-release
- -Dfallback-hostname=
- "linux"

It's a lot of layers, but each has it's own justification.

3 years agoAllow the fallback hostname to be overriden using an environment variable
Zbigniew Jędrzejewski-Szmek [Mon, 15 Feb 2021 10:50:55 +0000 (11:50 +0100)] 
Allow the fallback hostname to be overriden using an environment variable

See https://bugzilla.redhat.com/show_bug.cgi?id=1893417 for the back story:
the fallback hostname matters a lot in certain environments. Right now the only
way to configure the fallback hostname is by recompiling systemd, which is
obviously problematic in case when the fallback hostname shall differ between
different editions of the same distro that share a single compiled rpm.

By making this overridable through an envvar, we're providing an escape hatch
without making this a top-level api. Later on a way to set this through
os-release is added, but I think the approach with the variable is still
useful. It it very convenient for testing, or to override settings only in a
particular service, etc.

3 years agobasic/os-util: make the sentinel implicit
Zbigniew Jędrzejewski-Szmek [Fri, 19 Feb 2021 16:06:18 +0000 (17:06 +0100)] 
basic/os-util: make the sentinel implicit

3 years agoMove os-util.[ch] to basic/
Zbigniew Jędrzejewski-Szmek [Fri, 19 Feb 2021 15:51:18 +0000 (16:51 +0100)] 
Move os-util.[ch] to basic/

parse_os_release() will be used basic/hostname-util.c later on.

3 years agosysext: move extension_release_validate() out of os-util.c
Zbigniew Jędrzejewski-Szmek [Fri, 19 Feb 2021 15:36:07 +0000 (16:36 +0100)] 
sysext: move extension_release_validate() out of os-util.c

3 years agoos-release: add the DEFAULT_HOSTNAME= setting
Zbigniew Jędrzejewski-Szmek [Fri, 19 Feb 2021 14:08:07 +0000 (15:08 +0100)] 
os-release: add the DEFAULT_HOSTNAME= setting

The motivation is that variants of the same distro that share the same compiled
rpm want to customize various aspects of the system, in particular the
hostname. In some sense the default hostname is part of the identity of the
system, so setting it through os-release makes sense. In particular, instead of
setting a default value in /etc/hostname, the appropriate default can be baked
into the image, leaving /etc/hostname for local overrides only.

Why make this a separate field instead of e.g. using NAME from os-release?
NAME is already used for other purposes, and it seems likely that people want
to set those independently.

3 years agoman: use ~/.config instead of XDG_CONFIG_HOME
Zbigniew Jędrzejewski-Szmek [Fri, 19 Feb 2021 10:02:52 +0000 (11:02 +0100)] 
man: use ~/.config instead of XDG_CONFIG_HOME

e3820eeaf11f3b4614cbdfbc85675bc16a486e21 did that replacement XDG_CONFIG_HOME, in one
of two places. Let's use ~/.config everywhere.

Quoting https://github.com/systemd/systemd/pull/18704#discussion_r579465254:
> I'd really drop XDG_CONFIG_HOME from the docs. It's confusing enough as it
> is. Where we don't need the indirections we should not confuse people with
> it, in particular as people might then think it's actually a good idea to use
> that env var and redirect things. I'd just show the literal path everywhere,
> even if we internally use the env var.

3 years agomanager: add ManagerEnvironment configuration setting
Zbigniew Jędrzejewski-Szmek [Thu, 18 Feb 2021 23:06:26 +0000 (00:06 +0100)] 
manager: add ManagerEnvironment configuration setting

This is useful for various variables that modify process behaviour. This makes
it easy to set it for pid1 without touching the kernel command line. Even for
the *user manager* this also can be convenient for the unprivileged user, who
cannot modify user@.service definition.

Variables that could be set like this include $SD_EVENT_PROFILE_DELAYS,
$SYSTEMD_FALLBACK_HOSTNAME, $SYSTEMD_MEMPOOL, $SYSTMED_RDRAND, etc.

3 years agobasic/env-util: add putenv_dup()
Zbigniew Jędrzejewski-Szmek [Sat, 20 Feb 2021 18:25:32 +0000 (19:25 +0100)] 
basic/env-util: add putenv_dup()

3 years agoMerge pull request #18735 from poettering/some-doc-fixes
Zbigniew Jędrzejewski-Szmek [Mon, 22 Feb 2021 18:45:01 +0000 (19:45 +0100)] 
Merge pull request #18735 from poettering/some-doc-fixes

three documentation fixes

3 years agotest-network: add tests for Blackhole= setting in [NextHop] section 18718/head
Yu Watanabe [Sun, 14 Feb 2021 19:19:34 +0000 (04:19 +0900)] 
test-network: add tests for Blackhole= setting in [NextHop] section

3 years agonetwork: route: shorten code a bit
Yu Watanabe [Mon, 22 Feb 2021 17:21:31 +0000 (02:21 +0900)] 
network: route: shorten code a bit

3 years agonetwork: nexthop: add Blackhole= setting in [NextHop] section
Yu Watanabe [Sun, 14 Feb 2021 17:56:24 +0000 (02:56 +0900)] 
network: nexthop: add Blackhole= setting in [NextHop] section

As similar to unreachable type routes, blackhole nexthops do not have
NHA_OID attribute, so they are managed by Manager.

3 years agoman: try to improve documentation of conditions/asserts 18735/head
Lennart Poettering [Mon, 22 Feb 2021 17:12:34 +0000 (18:12 +0100)] 
man: try to improve documentation of conditions/asserts

Fixes: #18725
3 years agodocs: , → .
Lennart Poettering [Mon, 22 Feb 2021 17:00:14 +0000 (18:00 +0100)] 
docs: , → .

3 years agoman: correct documentaiton of StandardInput='s defaults in regards to "data"
Lennart Poettering [Mon, 22 Feb 2021 16:52:20 +0000 (17:52 +0100)] 
man: correct documentaiton of StandardInput='s defaults in regards to "data"

Fixes: #18710
3 years agocryptsetup: unescape ID_PART_ENTRY_NAME udev property before using it 18734/head
Lennart Poettering [Mon, 22 Feb 2021 16:38:02 +0000 (17:38 +0100)] 
cryptsetup: unescape ID_PART_ENTRY_NAME udev property before using it

Fixes: #18729
3 years agotree-wide: use sd_device_new_from_stat_rdev() whereever appropriate
Lennart Poettering [Mon, 22 Feb 2021 16:37:39 +0000 (17:37 +0100)] 
tree-wide: use sd_device_new_from_stat_rdev() whereever appropriate

3 years agobacklight: reindent comments 18731/head
Yu Watanabe [Mon, 22 Feb 2021 14:45:55 +0000 (23:45 +0900)] 
backlight: reindent comments

3 years agobacklight: reduce indentation a bit
Yu Watanabe [Mon, 22 Feb 2021 14:25:00 +0000 (23:25 +0900)] 
backlight: reduce indentation a bit

3 years agofuzz-systemctl-parse-argv: add "telinit" to the argv[0] list
Zbigniew Jędrzejewski-Szmek [Mon, 22 Feb 2021 10:19:59 +0000 (11:19 +0100)] 
fuzz-systemctl-parse-argv: add "telinit" to the argv[0] list

3 years agobacklight: same_device() may return negative errno
Yu Watanabe [Mon, 22 Feb 2021 14:11:28 +0000 (23:11 +0900)] 
backlight: same_device() may return negative errno

3 years agobacklight: exit earlier when unknown verb is specified
Yu Watanabe [Mon, 22 Feb 2021 14:00:46 +0000 (23:00 +0900)] 
backlight: exit earlier when unknown verb is specified

3 years agotest-network: test wireguard peer in drop-in config
Yu Watanabe [Mon, 22 Feb 2021 07:39:58 +0000 (16:39 +0900)] 
test-network: test wireguard peer in drop-in config

Closes #18241.

3 years agoresolved: set the AA bit for mDNS responses 18575/head
Sergey Bugaev [Sat, 13 Feb 2021 14:16:56 +0000 (17:16 +0300)] 
resolved: set the AA bit for mDNS responses

This is required by RFC 6762.

Fixes https://github.com/systemd/systemd/issues/17972

3 years agoresolved: set the AA bit for synthetic answers
Sergey Bugaev [Sat, 13 Feb 2021 14:09:09 +0000 (17:09 +0300)] 
resolved: set the AA bit for synthetic answers

The stub DNS server is authoritative for the RRs we synthesize, such as
localhost, _gateway, and entries from /etc/hosts, and also for trust anchors.

Partially fixes https://github.com/systemd/systemd/issues/17972

3 years agoMerge pull request #18684 from yuwata/sd-device-cleanups-and-udevadm-fix
Zbigniew Jędrzejewski-Szmek [Mon, 22 Feb 2021 10:32:38 +0000 (11:32 +0100)] 
Merge pull request #18684 from yuwata/sd-device-cleanups-and-udevadm-fix

sd-device, udev: several cleanups and one udevadm fix

3 years agomanager: read ~/.config/systemd/user.conf in user mode
Zbigniew Jędrzejewski-Szmek [Fri, 19 Feb 2021 09:56:04 +0000 (10:56 +0100)] 
manager: read ~/.config/systemd/user.conf in user mode

This changes the paths we read user manager config from in two ways:

- split-usr-root paths are dropped. The user manager is a poster boy for
  non-early-boot, so reading dropins only from /usr is appropriate.

- we look at ~/.config/systemd/user.conf. Users should be allowed to override
  their own config.

As user managers become more and more used, it becomes more important for users
to customize their own daemon. By reading from ~/.config, this is possible
without privileges.

3 years agoAdd DPI info for Kensington Trackball Expert Mouse in hwdb (#18709)
clayton craft [Mon, 22 Feb 2021 06:17:53 +0000 (22:17 -0800)] 
Add DPI info for Kensington Trackball Expert Mouse in hwdb (#18709)

The DPI value is from the manufacturer documentation, and freq measured
from mouse-dpi-tool

3 years agoUpdate docs about fdisk/gdisk support for discoverable partitions
wouter bolsterlee [Sun, 21 Feb 2021 17:00:55 +0000 (18:00 +0100)] 
Update docs about fdisk/gdisk support for discoverable partitions

This updates the docs about using fdisk/gdisk to make partitions with the right
partition type UUID as defined in the discoverable partitions spec.

Improve wording/grammar/formatting, and reflect that gdisk supports this as
well nowadays; see https://www.rodsbooks.com/gdisk/revisions.html

3 years agoman: Small fix of sd_bus_message_send() man page
Benjamin Robin [Sun, 21 Feb 2021 18:51:14 +0000 (19:51 +0100)] 
man: Small fix of sd_bus_message_send() man page

3 years agoman: correct the unit file directory for attached images
Tyler Hicks [Sun, 21 Feb 2021 18:53:22 +0000 (12:53 -0600)] 
man: correct the unit file directory for attached images

Commit 83f72cd65fb8 ("man,docs: document the new unit file directory for
attached images") updated the docs and man page with the new unit file
directory for attached images but included a system.attached ->
systemd.attached typo in the man page portion of the change. Fix the
typo to document the correct path.

3 years agoman: fix typo
Yu Watanabe [Sun, 21 Feb 2021 18:14:20 +0000 (03:14 +0900)] 
man: fix typo

3 years agoshared/conf-parser: allow more than one location of the main config file
Zbigniew Jędrzejewski-Szmek [Sat, 20 Feb 2021 16:04:05 +0000 (17:04 +0100)] 
shared/conf-parser: allow more than one location of the main config file

No functional change as long as only one path is passed.

3 years agoMerge pull request #18711 from yuwata/network-nexthop-onlink
Yu Watanabe [Sun, 21 Feb 2021 01:33:36 +0000 (10:33 +0900)] 
Merge pull request #18711 from yuwata/network-nexthop-onlink

network: nexthop: add OnLink= setting

3 years agotest-network: add a test for OnLink= in [NextHop] section 18711/head
Yu Watanabe [Sun, 14 Feb 2021 06:19:06 +0000 (15:19 +0900)] 
test-network: add a test for OnLink= in [NextHop] section

3 years agonetwork: nexthop: add OnLink= setting
Yu Watanabe [Sun, 14 Feb 2021 05:49:35 +0000 (14:49 +0900)] 
network: nexthop: add OnLink= setting

3 years agomount-tool: sd_device_get_sysattr_value() returns 0 on success 18684/head
Yu Watanabe [Sat, 20 Feb 2021 19:34:37 +0000 (04:34 +0900)] 
mount-tool: sd_device_get_sysattr_value() returns 0 on success

3 years agosd-device-enumerator: shorten code a bit
Yu Watanabe [Sat, 20 Feb 2021 19:33:01 +0000 (04:33 +0900)] 
sd-device-enumerator: shorten code a bit

3 years agounit: ignore exit code of "udevadm trigger"
Yu Watanabe [Thu, 18 Feb 2021 21:20:29 +0000 (06:20 +0900)] 
unit: ignore exit code of "udevadm trigger"

Suggested at https://github.com/systemd/systemd/pull/18559#issuecomment-781626226.

Some drivers may be broken and return unexpected errors on triggering
events. That should be logged but should not boot-up to be affected.

3 years agoudevadm-trigger: introduce --quiet option
Yu Watanabe [Sat, 20 Feb 2021 07:31:40 +0000 (16:31 +0900)] 
udevadm-trigger: introduce --quiet option

This may be useful to invoke the command by non-privileged users.

3 years agoudevadm-trigger: do not return immediately on EACCES
Yu Watanabe [Sat, 20 Feb 2021 07:30:23 +0000 (16:30 +0900)] 
udevadm-trigger: do not return immediately on EACCES

Prompted by https://github.com/systemd/systemd/pull/18559.

3 years agoudevadm-trigger: use sd_device_trigger() for triggering uevent
Yu Watanabe [Thu, 18 Feb 2021 16:03:22 +0000 (01:03 +0900)] 
udevadm-trigger: use sd_device_trigger() for triggering uevent

3 years agoudev: use sd_device_trigger() to trigger uevent
Yu Watanabe [Thu, 18 Feb 2021 15:51:12 +0000 (00:51 +0900)] 
udev: use sd_device_trigger() to trigger uevent

3 years agosd-device: introduce tiny wrapper sd_device_trigger()
Yu Watanabe [Sat, 20 Feb 2021 06:53:01 +0000 (15:53 +0900)] 
sd-device: introduce tiny wrapper sd_device_trigger()

3 years agosd-device: do not cache action string for uevent file written by sd_device_set_sysatt...
Yu Watanabe [Thu, 18 Feb 2021 22:02:44 +0000 (07:02 +0900)] 
sd-device: do not cache action string for uevent file written by sd_device_set_sysattr_value()

As sd_device_get_sysattr_value() may be already used to read uevent
file. The read value of uevent file may be usually quite different
from the action string.

3 years agotest: add more tests for path_startswith()
Yu Watanabe [Thu, 18 Feb 2021 15:49:37 +0000 (00:49 +0900)] 
test: add more tests for path_startswith()

3 years agosd-device: make devpath check stricter
Yu Watanabe [Thu, 18 Feb 2021 15:41:08 +0000 (00:41 +0900)] 
sd-device: make devpath check stricter

See assertion in sd_device_get_devpath().

3 years agosd-device: make sd_device_get_xxx() accept NULL for storing result
Yu Watanabe [Thu, 18 Feb 2021 15:28:16 +0000 (00:28 +0900)] 
sd-device: make sd_device_get_xxx() accept NULL for storing result

Though, setting NULL for some getters, e.g. sd_device_get_syspath()
may be meaningless, but anyway also let's make them accept NULL for
consistency.

3 years agosd-device: use appropriate error code
Yu Watanabe [Thu, 18 Feb 2021 14:38:04 +0000 (23:38 +0900)] 
sd-device: use appropriate error code

3 years agosd-device: add a brief comment in device_cache_sysattr_value()
Yu Watanabe [Sat, 20 Feb 2021 06:26:54 +0000 (15:26 +0900)] 
sd-device: add a brief comment in device_cache_sysattr_value()

3 years agosd-device: ignore error in device_cache_sysattr_value() and propagate original error...
Yu Watanabe [Thu, 18 Feb 2021 14:22:27 +0000 (23:22 +0900)] 
sd-device: ignore error in device_cache_sysattr_value() and propagate original error code

There are three calls of device_cache_sysattr_value(). Two of them are
just caching the value. Hence, let's ignore its failure, and propagate
original error code.

One exception is the last call in sd_device_get_sysattr_value().
Unfortunately, it returns `const char *` instead of `char *`. So,
sd_device object must have the reference of the returned value.
Hence, error in updating the cache by device_cache_sysattr_value()
is critical, and we need to propagate the error in that case.

3 years agosd-device: the last argument of sd_device_get_sysattr_value() may be NULL
Yu Watanabe [Thu, 18 Feb 2021 14:40:33 +0000 (23:40 +0900)] 
sd-device: the last argument of sd_device_get_sysattr_value() may be NULL

3 years agosd-device: use delete_trailing_chars()
Yu Watanabe [Thu, 18 Feb 2021 14:06:31 +0000 (23:06 +0900)] 
sd-device: use delete_trailing_chars()

Also, this drops trailing '\r' from sysattr value set in
sd_device_set_sysattr_value().

3 years agosd-device: do not cache an empty string but clear cache on failre
Yu Watanabe [Thu, 18 Feb 2021 08:13:41 +0000 (17:13 +0900)] 
sd-device: do not cache an empty string but clear cache on failre

And propagate the original error on write.
Note that some attributes are read-only.