]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agohwdb: Fix touchpad toggle on WeiHeng P325J
Matthew Leeds [Fri, 7 Feb 2020 00:30:25 +0000 (16:30 -0800)] 
hwdb: Fix touchpad toggle on WeiHeng P325J

On the WeiHeng P325J laptop, Fn+F2 sends LeftWindow (0xe0 0x5b) +
LeftCtrl (0x1d) + F24 (0x76). Add a quirk to remap the 0x76 to F21 which
toggles the touchpad. The Ctrl + Win part is handled in userspace, e.g
by gnome-settings-daemon here:
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/commit/f545950fe

This is analogous to what was done for the T-bao hardware here:
https://github.com/systemd/systemd/commit/d4a5df521d

4 years agojournal: fix log message
Yu Watanabe [Fri, 7 Feb 2020 05:11:11 +0000 (14:11 +0900)] 
journal: fix log message

4 years agorepart: do not quit earlier when --empty=force
Yu Watanabe [Fri, 7 Feb 2020 08:32:41 +0000 (17:32 +0900)] 
repart: do not quit earlier when --empty=force

Follow-up for 0ae5ffe0630aecd91b00af0ddd90c32c2d9c663b.

4 years agol10n: update Ukrainian translation
Yuri Chornoivan [Fri, 7 Feb 2020 10:40:54 +0000 (12:40 +0200)] 
l10n: update Ukrainian translation

4 years agocore: sync SeccompParseFlags between dbus-execute and load-fragment
Anita Zhang [Thu, 6 Feb 2020 23:34:17 +0000 (15:34 -0800)] 
core: sync SeccompParseFlags between dbus-execute and load-fragment

9e486265716963439fb0fd7f2a97abf109f24f75 added some new syscalls to the
filter lists. However, on systems that do not yet support the new calls,
running systemd-run with the filter set results in error:

```
$ sudo systemd-run -t -r -p "SystemCallFilter=~@mount" /bin/true
Failed to start transient service unit: Invalid argument
```

Having the same properties in a unit file will start the service
without issue. This is because the load-fragment code will parse the
syscall filters in permissive mode:
https://github.com/systemd/systemd/blob/master/src/core/load-fragment.c#L2909
whereas the dbus-execute equivalent of the code does not.

Since the permissive mode appears to be the right setting to support
older kernels/libseccomp, this will update the dbus-execute parsing
to also be permissive.

4 years agochromiumos: sync auto suspend rules with chromeos commit e348a229bacc3
Mario Limonciello [Thu, 6 Feb 2020 15:55:42 +0000 (09:55 -0600)] 
chromiumos: sync auto suspend rules with chromeos commit e348a229bacc3

Enables autosuspend for the following:
    - Microchip (Composite HID + CDC)
    - i915
    - proc_thermal
    - xchi_hdc
    - snd_hda
    - pcieport
    - lpc_ich
    - iosf_mbi_pci
    - Realtek RTL8822C BT

4 years agoMerge pull request #14813 from keszybz/renames-and-null-printf
Yu Watanabe [Fri, 7 Feb 2020 04:21:17 +0000 (13:21 +0900)] 
Merge pull request #14813 from keszybz/renames-and-null-printf

Rename follow-up and gcc warning fix

4 years agocore/selinux-access: use _cleanup_ and improve logging 14813/head
Zbigniew Jędrzejewski-Szmek [Thu, 6 Feb 2020 20:39:40 +0000 (21:39 +0100)] 
core/selinux-access: use _cleanup_ and improve logging

Instead of setting the bus error structure and then freeing it, let's only set
it if used. If we will ignore the selinux denial, say ", ignore" to make this
clear. Also, use _cleanup_ to avoid gotos.

4 years agorepart: quit earlier if no .conf file exists
Yu Watanabe [Thu, 6 Feb 2020 14:43:02 +0000 (23:43 +0900)] 
repart: quit earlier if no .conf file exists

Fixes #14804.

4 years agobasic/selinux-util: expose _cleanup_freecon_
Zbigniew Jędrzejewski-Szmek [Thu, 6 Feb 2020 20:37:49 +0000 (21:37 +0100)] 
basic/selinux-util: expose _cleanup_freecon_

4 years agocore/selinux-access: do not use NULL for %s
Zbigniew Jędrzejewski-Szmek [Thu, 6 Feb 2020 20:16:08 +0000 (21:16 +0100)] 
core/selinux-access: do not use NULL for %s

../src/core/selinux-access.c: In function ‘mac_selinux_generic_access_check’:
../src/basic/log.h:223:27: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
../src/core/selinux-access.c:235:85: note: format string is defined here
  235 |                         log_warning_errno(errno, "SELinux getcon_raw failed (tclass=%s perm=%s): %m", tclass, permission);
      |                                                                                     ^~

I wonder why nobody ever noticed this.

Fixes #14691 (other issues listed in that ticket have already been fixed).

4 years agonetwork: also change fair_queue_traffic_policing→fair_queueing
Zbigniew Jędrzejewski-Szmek [Wed, 5 Feb 2020 14:55:43 +0000 (15:55 +0100)] 
network: also change fair_queue_traffic_policing→fair_queueing

Follow-up for ca58d00c68bce8ac33439fccd81491bf04205fc5. I messed
up the "ing" suffix in the regex when doing the initial patch.

4 years agoselinux: update log message to suppress warning by coverity
Yu Watanabe [Thu, 6 Feb 2020 10:47:28 +0000 (19:47 +0900)] 
selinux: update log message to suppress warning by coverity

Fixes CID#1417440 and CID#1417438.

4 years agoMerge pull request #14800 from keszybz/ask-password-echo
Yu Watanabe [Thu, 6 Feb 2020 14:49:54 +0000 (23:49 +0900)] 
Merge pull request #14800 from keszybz/ask-password-echo

ask-password: give a hint to cancel echo

4 years agosysctl: fix segfault
Yu Watanabe [Thu, 6 Feb 2020 10:13:11 +0000 (19:13 +0900)] 
sysctl: fix segfault

Fixes #14801.

4 years agoshared/ask-password-api: show "(press TAB for no echo)" 14800/head
Zbigniew Jędrzejewski-Szmek [Thu, 6 Feb 2020 08:50:35 +0000 (09:50 +0100)] 
shared/ask-password-api: show "(press TAB for no echo)"

For #8495: it is arguably useful to not show the length of the password
in public spaces. It is possible to press TAB or BS to cancel the asterisks,
but this is not very discoverable. Let's make it discoverable by showing
a message (in gray). The message is "erased" after the first character
is entered.

4 years agoshared/ask-password-api: return "error" when dialogue is cancelled
Zbigniew Jędrzejewski-Szmek [Thu, 6 Feb 2020 08:32:16 +0000 (09:32 +0100)] 
shared/ask-password-api: return "error" when dialogue is cancelled

test-ask-password-api would crash if ^D was pressed.
If think the callers generally expect a non-empty strv as reply. Let's
return an error if we have nothing to return.

Also modernize test-ask-password-api a bit.

4 years agoMerge pull request #14156 from fbuihuu/deal-with-aliases-when-disabling
Zbigniew Jędrzejewski-Szmek [Thu, 6 Feb 2020 09:46:21 +0000 (10:46 +0100)] 
Merge pull request #14156 from fbuihuu/deal-with-aliases-when-disabling

Consider aliases in /usr when disabling units

4 years agocore: do not prepare a SELinux context for dummy files for devicenode bind-mounting
Christian Göttsche [Tue, 4 Feb 2020 17:07:07 +0000 (18:07 +0100)] 
core: do not prepare a SELinux context for dummy files for devicenode bind-mounting

Let systemd create the dummy file where a device node will be mounted on with the default label for the parent directory (e.g. /tmp/namespace-dev-yTMwAe/dev/).

Fixes: #13762
4 years agofirstboot: add missing check
Zbigniew Jędrzejewski-Szmek [Thu, 6 Feb 2020 08:19:46 +0000 (09:19 +0100)] 
firstboot: add missing check

If we check length of 'a', we must do the same for 'b'.

4 years agoman: fix typo in systemd.unit man page
Will Fleming [Thu, 6 Feb 2020 01:48:44 +0000 (20:48 -0500)] 
man: fix typo in systemd.unit man page

This commit fixes a minor typo: "setttings" -> "settings".

4 years agonetwork: remove unnecessary link->ifname from debug log statements
Mike Gilbert [Wed, 5 Feb 2020 16:04:50 +0000 (11:04 -0500)] 
network: remove unnecessary link->ifname from debug log statements

Since 98b0299479a68ffd414888368907fc776a46b82a, we log the interface
name automatically via log_link_debug().

Fixes: https://github.com/systemd/systemd/issues/14782
4 years agosd-journal: close journal files that were deleted by journald before we've setup...
Michal Sekletár [Tue, 4 Feb 2020 13:23:14 +0000 (14:23 +0100)] 
sd-journal: close journal files that were deleted by journald before we've setup inotify watch

Fixes #14695

4 years agounits: drop OnFailure= from .target units
Zbigniew Jędrzejewski-Szmek [Wed, 5 Feb 2020 12:11:01 +0000 (13:11 +0100)] 
units: drop OnFailure= from .target units

See c80a9a33d04fb4381327a69ce929c94a9f1d0e6c, target units can't fail.
I guess we need to figure out some replacement functionality, but at least
let's avoid the warning from systemd for now.

4 years agocgroup: systemctl: Don't display NULL if protection was set to max
Chris Down [Wed, 5 Feb 2020 12:12:52 +0000 (12:12 +0000)] 
cgroup: systemctl: Don't display NULL if protection was set to max

Inside format_bytes, we return NULL if the value is UINT64_MAX. This
makes some kind of sense where this has some other semantic meaning than
being a value, but in this case the value is both a.) not the default
(so we definitely want to display it), and b.) means "infinity" (or
"max" in cgroup terminology).

This patch adds a small wrapper around format_bytes that can be used for
these cases, to avoid the following situation:

    [root@tangsanjiao ~]# cat /sys/fs/cgroup/workload.slice/memory.low
    max
    [root@tangsanjiao ~]# systemctl show workload.slice -p MemoryLow
    MemoryLow=infinity
    [root@tangsanjiao ~]# systemctl status workload.slice | grep low:
Memory: 14.9G (low: (null))

After the patch:

    [root@tangsanjiao ~]# systemctl status workload.slice | grep low:
Memory: 15.1G (low: infinity)

4 years agodocs: Correct resource weight range
Michal Koutný [Wed, 5 Feb 2020 16:21:32 +0000 (17:21 +0100)] 
docs: Correct resource weight range

4 years agoMerge pull request #14415 from ssahani/prefixstable-rfc-7217-new
Zbigniew Jędrzejewski-Szmek [Wed, 5 Feb 2020 16:05:33 +0000 (17:05 +0100)] 
Merge pull request #14415 from ssahani/prefixstable-rfc-7217-new

network: Allow to specify multiple IPv6Token for SLAAC

4 years agopolkit: remove unused variable
Yu Watanabe [Wed, 5 Feb 2020 10:40:23 +0000 (19:40 +0900)] 
polkit: remove unused variable

Follow-up for 637486261528e8aa3da9f26a4487dc254f4b7abb.

4 years agogithub: remove direct paypal link
Zbigniew Jędrzejewski-Szmek [Wed, 5 Feb 2020 12:26:27 +0000 (13:26 +0100)] 
github: remove direct paypal link

Fixes #14786. I think it is enough if we provide the link to
SPI which sports a prominent paypal link too.

4 years agomeson: bump version numbers for v245 v245-rc1
Zbigniew Jędrzejewski-Szmek [Wed, 5 Feb 2020 08:51:59 +0000 (09:51 +0100)] 
meson: bump version numbers for v245

4 years agoNEWS: add contributors for v245
Zbigniew Jędrzejewski-Szmek [Wed, 5 Feb 2020 08:49:46 +0000 (09:49 +0100)] 
NEWS: add contributors for v245

4 years agoNEWS: mention the operational state changes
Zbigniew Jędrzejewski-Szmek [Wed, 5 Feb 2020 09:20:40 +0000 (10:20 +0100)] 
NEWS: mention the operational state changes

4 years agoMerge branch 'polkit-ref-count'
Zbigniew Jędrzejewski-Szmek [Wed, 5 Feb 2020 08:37:07 +0000 (09:37 +0100)] 
Merge branch 'polkit-ref-count'

4 years agoMerge pull request #14536 from DaanDeMeyer/wait-online-max-operstate
Zbigniew Jędrzejewski-Szmek [Wed, 5 Feb 2020 09:16:29 +0000 (10:16 +0100)] 
Merge pull request #14536 from DaanDeMeyer/wait-online-max-operstate

wait-online: add maximum operational state option

4 years agoNEWS: mention SuppressPrefixLength=
Yu Watanabe [Wed, 5 Feb 2020 09:04:58 +0000 (18:04 +0900)] 
NEWS: mention SuppressPrefixLength=

4 years agotest: adapt to the new capsh format
Frantisek Sumsal [Tue, 4 Feb 2020 12:49:01 +0000 (13:49 +0100)] 
test: adapt to the new capsh format

Since libcap v2.29 the format of cap_to_text() has been changed which
makes certain `test-execute` subtest fail. Let's remove the offending
part of the output (dropped capabilities) to make it compatible with
both the old and the new libcap.

4 years agotest-network: add tests for IPv6Token= 14415/head
Yu Watanabe [Sun, 26 Jan 2020 12:18:45 +0000 (21:18 +0900)] 
test-network: add tests for IPv6Token=

4 years agonetwork: Allow to specify multiple IPv6Token for SLAAC
Susant Sahani [Thu, 9 Jan 2020 12:19:53 +0000 (13:19 +0100)] 
network: Allow to specify multiple IPv6Token for SLAAC

Provide names to choose between different auto-generation types:
2.1 "eui64" for EUI-64 of RFC 4291
2.2 "prefixstable" for RFC 7217

```
[Match]
Name=veth99

[Network]
DHCP=no
IPv6AcceptRA=yes
IPv6Token=prefixstable:2001:888:0db8:1::
```

4 years agoMerge pull request #14779 from keszybz/news-v245
Zbigniew Jędrzejewski-Szmek [Wed, 5 Feb 2020 08:35:58 +0000 (09:35 +0100)] 
Merge pull request #14779 from keszybz/news-v245

4 years agoNEWS: mention the TrafficControlQueueingDiscipline rename 14779/head
Zbigniew Jędrzejewski-Szmek [Tue, 4 Feb 2020 16:07:47 +0000 (17:07 +0100)] 
NEWS: mention the TrafficControlQueueingDiscipline rename

4 years agoNEWS: mention empty .link and .network files
Zbigniew Jędrzejewski-Szmek [Tue, 4 Feb 2020 14:29:39 +0000 (15:29 +0100)] 
NEWS: mention empty .link and .network files

4 years agoNEWS: reword and shorten a bunch of stuff
Zbigniew Jędrzejewski-Szmek [Tue, 4 Feb 2020 14:19:37 +0000 (15:19 +0100)] 
NEWS: reword and shorten a bunch of stuff

4 years agotest-network: use udevd in build directory
Yu Watanabe [Tue, 4 Feb 2020 14:51:58 +0000 (23:51 +0900)] 
test-network: use udevd in build directory

Fixes #14764.

4 years agoMerge pull request #14778 from cgzones/split_selinux_logging
Yu Watanabe [Wed, 5 Feb 2020 06:20:50 +0000 (15:20 +0900)] 
Merge pull request #14778 from cgzones/split_selinux_logging

Improve SELinux logging in permissive mode

4 years agohwdb: update for v245-rc1
Zbigniew Jędrzejewski-Szmek [Tue, 4 Feb 2020 17:29:03 +0000 (18:29 +0100)] 
hwdb: update for v245-rc1

As before, the changes to .hwdb files are mostly additions and company renames.

4 years agonetwork: change "Gateway=dhcp" to "Gateway=_dhcp" (#14774)
Zbigniew Jędrzejewski-Szmek [Wed, 5 Feb 2020 04:41:30 +0000 (05:41 +0100)] 
network: change "Gateway=dhcp" to "Gateway=_dhcp" (#14774)

This way we avoid confusion with a DNS name. Fixes #14773.

4 years agoMerge pull request #14767 from yuwata/network-split-qdisc-section
Yu Watanabe [Wed, 5 Feb 2020 04:35:25 +0000 (13:35 +0900)] 
Merge pull request #14767 from yuwata/network-split-qdisc-section

network: split TrafficControlQueueingDiscipline section into small pieces

4 years agocore: move bus-util include out of selinux-access header
Christian Göttsche [Tue, 28 Jan 2020 20:25:25 +0000 (21:25 +0100)] 
core: move bus-util include out of selinux-access header

4 years agoFix typo in function name
Zbigniew Jędrzejewski-Szmek [Tue, 4 Feb 2020 17:39:04 +0000 (18:39 +0100)] 
Fix typo in function name

4 years agoman: document the new sd_bus_enqueue_for_read() API call
Lennart Poettering [Wed, 22 Jan 2020 16:44:33 +0000 (17:44 +0100)] 
man: document the new sd_bus_enqueue_for_read() API call

4 years agopolkit: when authorizing via PK let's re-resolve callback/userdata instead of caching it
Lennart Poettering [Wed, 22 Jan 2020 16:07:47 +0000 (17:07 +0100)] 
polkit: when authorizing via PK let's re-resolve callback/userdata instead of caching it

Previously, when doing an async PK query we'd store the original
callback/userdata pair and call it again after the PK request is
complete. This is problematic, since PK queries might be slow and in the
meantime the userdata might be released and re-acquired. Let's avoid
this by always traversing through the message handlers so that we always
re-resolve the callback and userdata pair and thus can be sure it's
up-to-date and properly valid.

4 years agosd-bus: introduce API for re-enqueuing incoming messages
Lennart Poettering [Wed, 22 Jan 2020 16:05:17 +0000 (17:05 +0100)] 
sd-bus: introduce API for re-enqueuing incoming messages

When authorizing via PolicyKit we want to process incoming method calls
twice: once to process and figure out that we need PK authentication,
and a second time after we aquired PK authentication to actually execute
the operation. With this new call sd_bus_enqueue_for_read() we have a
way to put an incoming message back into the read queue for this
purpose.

This might have other uses too, for example debugging.

4 years agopolkit: use structured initialization
Lennart Poettering [Wed, 22 Jan 2020 15:53:59 +0000 (16:53 +0100)] 
polkit: use structured initialization

4 years agopolkit: on async pk requests, re-validate action/details
Lennart Poettering [Wed, 22 Jan 2020 15:52:10 +0000 (16:52 +0100)] 
polkit: on async pk requests, re-validate action/details

When we do an async pk request, let's store which action/details we used
for the original request, and when we are called for the second time,
let's compare. If the action/details changed, let's not allow the access
to go through.

4 years agopolkit: reuse some common bus message appending code
Lennart Poettering [Wed, 22 Jan 2020 15:44:43 +0000 (16:44 +0100)] 
polkit: reuse some common bus message appending code

4 years agobus-polkit: rename return error parameter to ret_error
Lennart Poettering [Wed, 22 Jan 2020 13:29:43 +0000 (14:29 +0100)] 
bus-polkit: rename return error parameter to ret_error

4 years agocore: unit_label_path(): take const unit
Christian Göttsche [Mon, 23 Dec 2019 22:06:38 +0000 (23:06 +0100)] 
core: unit_label_path(): take const unit

4 years agoman: add "quick-help" to sysusers.d synopsis
Zbigniew Jędrzejewski-Szmek [Mon, 27 Jan 2020 08:37:27 +0000 (09:37 +0100)] 
man: add "quick-help" to sysusers.d synopsis

We have that in tmpfiles.d and it is makes looking up the syntax
very easy.

While at it, add an example for "r" and use the underscrore as prefix
as described in the text.

4 years agoselinux-access: log warning on context acquisition failure 14778/head
Christian Göttsche [Wed, 18 Dec 2019 13:57:00 +0000 (14:57 +0100)] 
selinux-access: log warning on context acquisition failure

Relevant when testing in permissive mode, where the function does not return a failure to the client.
This helps to configure a system in permissive mode, without getting surprising failures when switching to enforced mode.

4 years agoselinux-util: increase log severity
Christian Göttsche [Wed, 18 Dec 2019 13:56:54 +0000 (14:56 +0100)] 
selinux-util: increase log severity

`log_enforcing()` and `log_enforcing_errno()` are only used for important messages, which describe failures in enforced mode.
They are guarded either by `!mac_selinux_use()` or `!label_hnd` checks, where the latter is itself guarded by the former.
Only SELinux enabled systems print these logs.
This helps to configure a system in permissive mode, without getting surprising failures when switching to enforced mode.

4 years agoMerge pull request #14717 from yuwata/network-radv-dns-link-local
Zbigniew Jędrzejewski-Szmek [Tue, 4 Feb 2020 16:47:17 +0000 (17:47 +0100)] 
Merge pull request #14717 from yuwata/network-radv-dns-link-local

network: make DNS= in [IPv6PrefixDelegation] section take special value '_link_local'

4 years agonetwork: FairQueueTrafficPolicing→FairQueueing 14767/head
Zbigniew Jędrzejewski-Szmek [Tue, 4 Feb 2020 16:35:12 +0000 (17:35 +0100)] 
network: FairQueueTrafficPolicing→FairQueueing

This never made into a release, so we can change the name with impunity.
Suggested by Davide Pesavento.

I opted to add the "ing" ending. "Fair queuing" is the name of the general
concept and algorithm, and "Fair queue" is mostly used for the implementation
name.

4 years agonetwork: TokenBufferFilter→TokenBucketFilter
Zbigniew Jędrzejewski-Szmek [Tue, 4 Feb 2020 16:22:41 +0000 (17:22 +0100)] 
network: TokenBufferFilter→TokenBucketFilter

This never made into a release, so we can change the name with impunity.
Noticed by Davide Pesavento.

4 years agoman: tweak description of blockdev@.target
Zbigniew Jędrzejewski-Szmek [Tue, 4 Feb 2020 15:40:52 +0000 (16:40 +0100)] 
man: tweak description of blockdev@.target

In particular, let's just say "is" and "must" instead of "may be" and
"should". The weaker forms are obviously correct, but the text is easier to
understand if non-conditional forms are used.

4 years agoMerge pull request #14398 from poettering/mount-prep
Zbigniew Jędrzejewski-Szmek [Tue, 4 Feb 2020 14:36:17 +0000 (15:36 +0100)] 
Merge pull request #14398 from poettering/mount-prep

4 years agoNEWS: correct indenting for two entries
Ansgar Burchardt [Tue, 4 Feb 2020 14:47:24 +0000 (15:47 +0100)] 
NEWS: correct indenting for two entries

4 years agomeson: update efi path detection to gnu-efi-3.0.11
Zbigniew Jędrzejewski-Szmek [Mon, 3 Feb 2020 19:38:54 +0000 (20:38 +0100)] 
meson: update efi path detection to gnu-efi-3.0.11

Fixes systemd build in Fedora rawhide.

The old ldsdir option is not useful, because both the directory and the
file name changed. Let's remove the option and try to autodetect the file
name. If this turns out to be not enough, a new option to simply specify
the full path to the file can be added.

F31:
         efi arch:                          x86_64
         EFI machine type:                  x64
         EFI CC                             ccache cc
         EFI lds:                           /usr/lib64/gnuefi/elf_x64_efi.lds
         EFI crt0:                          /usr/lib64/gnuefi/crt0-efi-x64.o
         EFI include directory:             /usr/include/efi
F32:
         efi arch:                          x86_64
         EFI machine type:                  x64
         EFI CC                             ccache cc
         EFI lds:                           /usr/lib/gnuefi/x64/efi.lds
         EFI crt0:                          /usr/lib/gnuefi/x64/crt0.o
         EFI include directory:             /usr/include/efi

4 years agonetwork: split TrafficControlQueueingDiscipline section into small pieces
Yu Watanabe [Tue, 4 Feb 2020 12:45:29 +0000 (21:45 +0900)] 
network: split TrafficControlQueueingDiscipline section into small pieces

Closes #14763.

4 years agoMerge pull request #14761 from keszybz/link-network-no-match
Yu Watanabe [Tue, 4 Feb 2020 11:26:37 +0000 (20:26 +0900)] 
Merge pull request #14761 from keszybz/link-network-no-match

Refuse .network and .link files with no matches

4 years agonetwork,udev: refuse .link and .network settings with no matches 14761/head
Zbigniew Jędrzejewski-Szmek [Tue, 4 Feb 2020 07:42:50 +0000 (08:42 +0100)] 
network,udev: refuse .link and .network settings with no matches

Two releases ago we started warning about this, and I think it is now to turn
this into a hard error. People get bitten by this every once in a while, and
there doesn't see to be any legitimate use case where the same .link or
.network files should be applied to _all_ interfaces, since in particular that
configuration would apply both to lo and any other interfaces. And if for
whatever reason that is actually desired, OriginalName=* or Name=* can be
easily added to silence the warning and achieve the effect.

(The case described in #12098 is particularly nasty: 'echo -n >foo.network'
creates a mask file, 'echo >foo.network' creates a "match all" file.)

Fixes #717, #12098 for realz now.

4 years agotest-network: do not fail if lo has a .network file
Zbigniew Jędrzejewski-Szmek [Tue, 4 Feb 2020 07:30:40 +0000 (08:30 +0100)] 
test-network: do not fail if lo has a .network file

Fixes #9895.

4 years agoFix generator name in hibernate-resume-generator's drop-in
nabijaczleweli [Mon, 3 Feb 2020 18:31:57 +0000 (19:31 +0100)] 
Fix generator name in hibernate-resume-generator's drop-in

Introduced in ff757c9d294153a26a9dd2d9817d1985656f3002

4 years agopresets: "disable" all passive targets by default
Zbigniew Jędrzejewski-Szmek [Mon, 3 Feb 2020 14:45:07 +0000 (15:45 +0100)] 
presets: "disable" all passive targets by default

Officially we default to a "enable *", even though pretty much everybody
overrides this with "disable *". We have a bunch of targets and services which
should not be enabled by default. In case the default policy is not overriden,
our passive units would be enabled by presets, which is generally not useful at
all. So let's explicitly mark them as disabled.

Note that this effectively changes very little. E.g. on Fedora, all the units
listed in this patch were "disabled" already.

Fixes #14648.

4 years agotest-network: add a test case for IPv6PrefixDelegation.DNS=linklocal 14717/head
Yu Watanabe [Fri, 31 Jan 2020 08:56:42 +0000 (17:56 +0900)] 
test-network: add a test case for IPv6PrefixDelegation.DNS=linklocal

4 years agonetwork,radv: make DNS= in [IPv6PrefixDelegation] section take special value 'linklocal'
Yu Watanabe [Fri, 31 Jan 2020 06:52:56 +0000 (15:52 +0900)] 
network,radv: make DNS= in [IPv6PrefixDelegation] section take special value 'linklocal'

Closes #13639.

4 years agoMerge pull request #14589 from keszybz/sysctl-downgrade-messages
Zbigniew Jędrzejewski-Szmek [Mon, 3 Feb 2020 23:04:28 +0000 (00:04 +0100)] 
Merge pull request #14589 from keszybz/sysctl-downgrade-messages

sysctl: add glob patterns to set network settings more flexibly

4 years agosysctl: set ipv4 settings in a race-free way 14589/head
Zbigniew Jędrzejewski-Szmek [Thu, 30 Jan 2020 09:41:31 +0000 (10:41 +0100)] 
sysctl: set ipv4 settings in a race-free way

Fixes #6282.

This solution is a bit busy, but we close the race without setting *.all.*, so
it is still possible to set a different setting for particular interfaces.
Setting just "default" is not very useful because any interfaces present before
systemd-sysctl is invoked are not affected. Setting "all" is too harsh, because
the kernel takes the stronger of the device-specific setting and the "all" value,
so effectively having a weaker setting for specific interfaces is not possible.

4 years agosysctl: add glob syntax to sysctl.d files
Zbigniew Jędrzejewski-Szmek [Thu, 16 Jan 2020 18:38:21 +0000 (19:38 +0100)] 
sysctl: add glob syntax to sysctl.d files

This is intended for net.*.conf.*.foo files. Setting just "default" is not very
useful because any interfaces present before systemd-sysctl is invoked are not
affected. Setting "all" is too harsh, because the kernel takes the stronger of
the device-specific setting and the "all" value, so effectively having a weaker
setting for specific interfaces is not possible. Let's add a way in which can
set "default" first and then all the others without "all".

4 years agol10n: update Czech Translation
AsciiWolf [Mon, 3 Feb 2020 15:18:36 +0000 (16:18 +0100)] 
l10n: update Czech Translation

4 years agoMerge pull request #14747 from yuwata/core-dynamic-user-14733
Anita Zhang [Mon, 3 Feb 2020 18:38:27 +0000 (10:38 -0800)] 
Merge pull request #14747 from yuwata/core-dynamic-user-14733

core: call dynamic_user_acquire() only when 'group' is non-null

4 years agocore: call dynamic_user_acquire() only when 'group' is non-null 14747/head
Yu Watanabe [Mon, 3 Feb 2020 11:18:02 +0000 (20:18 +0900)] 
core: call dynamic_user_acquire() only when 'group' is non-null

When unit is reloaded, and the reloaded unit has bad-setting, then
unit_patch_contexts() is not called and exec_context::user and group
may not be configured.

A minimum reproducer for the case is:
- step 1.
$ sudo systemctl edit --full hoge.service
[Service]
oneshot
ExecStart=sleep 1h

- step 2.
$ sudo systemctl start hoge.service

- step 3.
$ sudo systemctl edit --full hoge.service
[Service]
Type=oneshot
ExecStart=@bindir@/sleep 1h
DynamicUser=yes

Then pid1 crashed.

Fixes #14733.

4 years agojournal: drop unreachable path
Yu Watanabe [Sun, 2 Feb 2020 23:58:28 +0000 (08:58 +0900)] 
journal: drop unreachable path

4 years agopo: update French translation
splantefeve [Mon, 3 Feb 2020 00:22:15 +0000 (01:22 +0100)] 
po: update French translation

4 years agoudev: add {Receive,Transmit}ChecksumOffload= settings
Yu Watanabe [Mon, 27 Jan 2020 10:49:25 +0000 (19:49 +0900)] 
udev: add {Receive,Transmit}ChecksumOffload= settings

Closes #14661.

4 years agonetwork: add SuppressPrefixLength option to RoutingPolicyRule (#14736)
Naïm Favier [Sun, 2 Feb 2020 23:25:48 +0000 (00:25 +0100)] 
network: add SuppressPrefixLength option to RoutingPolicyRule (#14736)

Closes #14724.

4 years agopo: update Japanese translation
Yu Watanabe [Sun, 2 Feb 2020 14:30:08 +0000 (23:30 +0900)] 
po: update Japanese translation

4 years agopo: update Polish translation
Piotr Drąg [Sun, 2 Feb 2020 12:21:28 +0000 (13:21 +0100)] 
po: update Polish translation

4 years agoupdate NEWS
Lennart Poettering [Sun, 2 Feb 2020 17:17:21 +0000 (18:17 +0100)] 
update NEWS

4 years agoMerge pull request #14645 from keszybz/sd-bus-message-dump
Lennart Poettering [Sun, 2 Feb 2020 16:27:50 +0000 (17:27 +0100)] 
Merge pull request #14645 from keszybz/sd-bus-message-dump

sd_bus_message_dump

4 years agoMerge pull request #14699 from yuwata/dhcp6-fix-t1-t2
Lennart Poettering [Sun, 2 Feb 2020 16:16:31 +0000 (17:16 +0100)] 
Merge pull request #14699 from yuwata/dhcp6-fix-t1-t2

dhcp6: do not use T1 and T2 longer than one provided by the lease

4 years agoutil: uid_t, gid_t, and pid_t must be 32bit
Yu Watanabe [Thu, 30 Jan 2020 14:25:12 +0000 (23:25 +0900)] 
util: uid_t, gid_t, and pid_t must be 32bit

We already have assert_cc(sizeof(uid_t) == sizeof(uint32_t)) or friends
at various places.

4 years agomeson: fix feature list
Yu Watanabe [Thu, 30 Jan 2020 15:03:38 +0000 (00:03 +0900)] 
meson: fix feature list

4 years agoMerge pull request #14719 from yuwata/sd-boot-fix-warnings
Lennart Poettering [Sun, 2 Feb 2020 15:57:17 +0000 (16:57 +0100)] 
Merge pull request #14719 from yuwata/sd-boot-fix-warnings

sd-boot: fix warnings

4 years agosysusers: support creating users with a specific primary group
David Michael [Thu, 30 Jan 2020 19:04:14 +0000 (14:04 -0500)] 
sysusers: support creating users with a specific primary group

This extends the "uid:gid" syntax for "u" lines so that a group
name can be given instead of a GID.  This requires that the group
is either queued for creation by sysusers, or it is already defined
on the system.

Closes #14340

4 years agoMerge pull request #14672 from yuwata/network-routing-policy-uidrange
Yu Watanabe [Sun, 2 Feb 2020 13:46:04 +0000 (22:46 +0900)] 
Merge pull request #14672 from yuwata/network-routing-policy-uidrange

network: support UID based routing policy

4 years agotest-network: add test for UID based routing policy 14672/head
Yu Watanabe [Sun, 26 Jan 2020 13:39:32 +0000 (22:39 +0900)] 
test-network: add test for UID based routing policy

4 years agonetwork: support UID based routing policy
Yu Watanabe [Sun, 26 Jan 2020 13:22:38 +0000 (22:22 +0900)] 
network: support UID based routing policy

Closes #14666.

4 years agoutil: add parse_uid_range() helper function
Yu Watanabe [Sun, 26 Jan 2020 12:51:12 +0000 (21:51 +0900)] 
util: add parse_uid_range() helper function

4 years agomeson, man: do not install pam_systemd_home(8) when pam or homed is disabled
Yu Watanabe [Sat, 1 Feb 2020 02:01:41 +0000 (11:01 +0900)] 
meson, man: do not install pam_systemd_home(8) when pam or homed is disabled

Fixes #14725.

4 years agotest: don't install /etc/securetty
Frantisek Sumsal [Fri, 31 Jan 2020 10:51:05 +0000 (11:51 +0100)] 
test: don't install /etc/securetty

Having /etc/securetty in test containers prevents root from logging into
them:

```
Jan 31 10:15:11 systemd-testsuite login[69]: pam_securetty(login:auth): access denied: tty 'pts/0' is not secure !
Jan 31 10:15:11 systemd-testsuite login[69]: FAILED LOGIN 1 FROM pts/0 FOR root, Authentication failure
```