]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
5 years agocore: when we cannot open an image file for write, try read-only 14508/head
Lennart Poettering [Tue, 7 Jan 2020 15:56:05 +0000 (16:56 +0100)] 
core: when we cannot open an image file for write, try read-only

Closes: #14442
5 years agonamespace: tweak checks whether we can mount image read-only
Lennart Poettering [Tue, 7 Jan 2020 15:25:11 +0000 (16:25 +0100)] 
namespace: tweak checks whether we can mount image read-only

So far we set up a loopback file read-only iff ProtectSystem= and
ProtectHome= both where set to values that mark these dirs read-only.
Let's extend that and also be happy if /home and the root dir are marked
read-only by some other means.

Fixes: #14442
5 years agoinstall: use path_strv_contains() where appropriate
Lennart Poettering [Tue, 7 Jan 2020 15:42:25 +0000 (16:42 +0100)] 
install: use path_strv_contains() where appropriate

5 years agopath-util: express PATH_IN_SET() through path_strv_contains()
Lennart Poettering [Wed, 8 Jan 2020 11:23:57 +0000 (12:23 +0100)] 
path-util: express PATH_IN_SET() through path_strv_contains()

5 years agopath-util: introduce path_strv_contains() helper
Lennart Poettering [Tue, 7 Jan 2020 15:24:33 +0000 (16:24 +0100)] 
path-util: introduce path_strv_contains() helper

it's like strv_contains() but uses path_equal() rather than streq() to
compare strings.

5 years agoMerge pull request #14523 from keszybz/refactorings
Yu Watanabe [Thu, 9 Jan 2020 03:50:11 +0000 (12:50 +0900)] 
Merge pull request #14523 from keszybz/refactorings

Refactorings inspired by recent pull requests

5 years agosd-event: use _cleanup_ in one more place 14523/head
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2020 15:22:23 +0000 (16:22 +0100)] 
sd-event: use _cleanup_ in one more place

5 years agosd-event: use RAII for struct epoll_event
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2020 15:20:20 +0000 (16:20 +0100)] 
sd-event: use RAII for struct epoll_event

Inspired by #14353.

5 years agonetwork: use automatic stack allocation and structured init
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2020 11:08:48 +0000 (12:08 +0100)] 
network: use automatic stack allocation and structured init

5 years agonetwork: do not require ethtool_get_permanent_macaddr() to get an fd
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2020 11:02:01 +0000 (12:02 +0100)] 
network: do not require ethtool_get_permanent_macaddr() to get an fd

5 years agotest: minor typo fix
Lennart Poettering [Wed, 8 Jan 2020 11:12:16 +0000 (12:12 +0100)] 
test: minor typo fix

As pointed out on: https://github.com/systemd/systemd/pull/14465#discussion_r364152064

5 years agoMerge pull request #14448 from yuwata/network-permanent-mac-address
Lennart Poettering [Wed, 8 Jan 2020 14:36:27 +0000 (15:36 +0100)] 
Merge pull request #14448 from yuwata/network-permanent-mac-address

network, udev: support permanent mac address

5 years agoMerge pull request #14518 from keszybz/interface-text
Lennart Poettering [Wed, 8 Jan 2020 13:26:33 +0000 (14:26 +0100)] 
Merge pull request #14518 from keszybz/interface-text

doc: tweak grammar in CONTAINER_INTERFACE description

5 years agoMerge pull request #14511 from keszybz/sleep-check-rework
Lennart Poettering [Wed, 8 Jan 2020 13:26:17 +0000 (14:26 +0100)] 
Merge pull request #14511 from keszybz/sleep-check-rework

Sleep check rework

5 years agoMerge pull request #14512 from poettering/root-image-devices
Lennart Poettering [Wed, 8 Jan 2020 11:18:38 +0000 (12:18 +0100)] 
Merge pull request #14512 from poettering/root-image-devices

Make RootImage= work reliable with DeviceAllow= in the mix

5 years agotest: pin meson to 0.52.1 for fuzzit/fuzzbuzz
Frantisek Sumsal [Wed, 8 Jan 2020 09:44:10 +0000 (10:44 +0100)] 
test: pin meson to 0.52.1 for fuzzit/fuzzbuzz

Latest meson doesn't work with older python 3.5, which is present on
Ubuntu 16.04. Let's pin in to the latest working version (0.52.1) until
we properly bump all necessary Ubuntu images to 18.04.

See: https://github.com/mesonbuild/meson/issues/6427

5 years agonetwork: rename *fd to *ethtool_fd
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2020 10:55:07 +0000 (11:55 +0100)] 
network: rename *fd to *ethtool_fd

5 years agoman: use xi:include to avoid duplication
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2020 10:43:09 +0000 (11:43 +0100)] 
man: use xi:include to avoid duplication

... and fix some unwarranted discrepancies between the two man pages.

5 years agoMerge pull request #14465 from poettering/setprio-rework
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2020 10:06:46 +0000 (11:06 +0100)] 
Merge pull request #14465 from poettering/setprio-rework

When Nice= is used, clamp to RLIMIT_NICE

5 years agoMerge pull request #14488 from yuwata/networkctl-show-logs
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2020 09:49:39 +0000 (10:49 +0100)] 
Merge pull request #14488 from yuwata/networkctl-show-logs

networkctl: status command also shows logs of networkd

5 years agoman: fix option name 14518/head
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2020 09:39:44 +0000 (10:39 +0100)] 
man: fix option name

5 years agodoc: tweak grammar in CONTAINER_INTERFACE description
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2020 09:29:10 +0000 (10:29 +0100)] 
doc: tweak grammar in CONTAINER_INTERFACE description

The only non-stylistic change is to replace descriptions of how we are
encouraging people to use PrivateTmp= and such, because now they are widely
used.

5 years agoMerge pull request #14494 from poettering/container-interface
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2020 08:58:57 +0000 (09:58 +0100)] 
Merge pull request #14494 from poettering/container-interface

Let's import the container interface description text from the fdo wiki

5 years agonetworkctl: show permanent mac address if it is not used now 14448/head
Yu Watanabe [Mon, 7 Jan 2019 11:16:20 +0000 (20:16 +0900)] 
networkctl: show permanent mac address if it is not used now

5 years agonetwork, udev: introduce PermanentMACAddress= setting in [Match] section
Yu Watanabe [Mon, 7 Jan 2019 11:16:19 +0000 (20:16 +0900)] 
network, udev: introduce PermanentMACAddress= setting in [Match] section

Closes #13983.

5 years agoSupport Plugable UD-PRO8 dock
ezst036 [Wed, 8 Jan 2020 00:47:15 +0000 (19:47 -0500)] 
Support Plugable UD-PRO8 dock

Add support for Plugable Pro8 docking station for auto-configuring seat

5 years agoethtool: introduce ethtool_get_permanent_macaddr()
Yu Watanabe [Mon, 7 Jan 2019 11:16:18 +0000 (20:16 +0900)] 
ethtool: introduce ethtool_get_permanent_macaddr()

Will be used in later commits.

5 years agogpt-auto: don't assume XBOOTLDR is vfat
Lennart Poettering [Tue, 7 Jan 2020 16:21:24 +0000 (17:21 +0100)] 
gpt-auto: don't assume XBOOTLDR is vfat

Let's not assume "umask=" is a valid mount option for XBOOTLDR
partitions unconditionally.

Fixes: #14165
5 years agonetwork, meson: allow statically linked build
Robert Scheck [Wed, 8 Jan 2020 01:36:07 +0000 (02:36 +0100)] 
network, meson: allow statically linked build

Build option "link-networkd-shared" to build a statically linked
systemd-networkd by using

  -Dlink-udev-shared=false -Dlink-networkd-shared=false

on systems with full systemd stack except systemd-networkd, such
as RHEL/CentOS 8.

5 years agoMerge pull request #14510 from poettering/net-naming-scheme-fixlets
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2020 08:46:49 +0000 (09:46 +0100)] 
Merge pull request #14510 from poettering/net-naming-scheme-fixlets

some net naming scheme documentation fixes

5 years agozsh: Complete systemctl subcommands in separate tags
Daniel Shahaf [Tue, 7 Jan 2020 20:17:26 +0000 (20:17 +0000)] 
zsh: Complete systemctl subcommands in separate tags

Fixes #14422

5 years agoshared/sleep-config: do not ignore resume_offset when resume not set 14511/head
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jan 2020 17:16:01 +0000 (18:16 +0100)] 
shared/sleep-config: do not ignore resume_offset when resume not set

This is most likely a user error, let's make it easier to diagnose.

5 years agoshared/sleep-config: make swap detection stricter again
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jan 2020 15:44:12 +0000 (16:44 +0100)] 
shared/sleep-config: make swap detection stricter again

To make this easier to understand, let's always log (at debug level)
when we accept or reject each device:
/swapfile: detection of swap file offset on Btrfs is not supported
/swapfile: is a candidate device.
/dev/zram0: ignoring zram swap
/dev/vdb: ignoring device with lower priority
/dev/vdc: ignoring device with lower usable space
...

If we know that hibernation will fail, refuse. This includes cases where
/sys/power/resume is set and doesn't match any device, or
/sys/power/resume_offset is set and we're not on btrfs and it doesn't match.
If /sys/power/resume is not set at all, we still accept the device with the
highest priority (see 6d176522f5480ea9e9a83de5ef5ea5e0d95b79cb and
88bc86fcf895da0d51ddaf93d17b4280f4e60d74)

Tested cases:
1. no swap active → refuse
2. just zram swap active → refuse
3. swapfile on btrfs with /sys/power/resume{,_offset} set → OK
4. swapfile on btrfs with /sys/power/resume set, offset not set → refuse
5. swapfile on btrfs with /sys/power/resume set to nonexistent device, offset set → refuse
6. /sys/power/resume not set, offset set, candidate exists → OK (*)
7. /sys/power/resume not set, offset not set, candidate exists → OK

(*) I think this should fail, but I'm leaving that for the next commit.

5 years agoMerge pull request #14423 from danielshahaf/zsh-add-missing-completions
Chris Down [Tue, 7 Jan 2020 19:34:55 +0000 (19:34 +0000)] 
Merge pull request #14423 from danielshahaf/zsh-add-missing-completions

zsh: Add missing completions

5 years agoboot: fix osrel parser
Lennart Poettering [Tue, 7 Jan 2020 14:20:32 +0000 (15:20 +0100)] 
boot: fix osrel parser

let's check VERSION instead of VERSION_ID where appropriate.

Fixes: #14493
5 years agoMerge pull request #14472 from poettering/test-43-fixes
Anita Zhang [Tue, 7 Jan 2020 18:53:13 +0000 (10:53 -0800)] 
Merge pull request #14472 from poettering/test-43-fixes

Various robustness fixes for TEST-43-PRIVATEUSER-UNPRIV

5 years agoMerge pull request #14499 from yuwata/network-gateway-dhcp
Lennart Poettering [Tue, 7 Jan 2020 18:17:51 +0000 (19:17 +0100)] 
Merge pull request #14499 from yuwata/network-gateway-dhcp

network: static route via DHCP gateway

5 years agoman: stop recommending modprobe -abq in ExecStartPre= 14512/head
Lennart Poettering [Tue, 7 Jan 2020 18:00:56 +0000 (19:00 +0100)] 
man: stop recommending modprobe -abq in ExecStartPre=

5 years agounits: tweaks to modprobe@.service
Lennart Poettering [Tue, 7 Jan 2020 17:54:24 +0000 (18:54 +0100)] 
units: tweaks to modprobe@.service

Let's use uppercase wording in the description string, like we usually
do.

Let's allow using this service in early boot.

If it's pulled into the initial transaction it's better to finish
loading this before sysinit.target.

Don't bother with this in containers that lack CAP_SYS_MODULE

5 years agounit: make sure to pull in modprobe@loop.service when RootImage= is used with DeviceA...
Lennart Poettering [Tue, 7 Jan 2020 17:53:31 +0000 (18:53 +0100)] 
unit: make sure to pull in modprobe@loop.service when RootImage= is used with DeviceAllow=

Fixes: #14214
5 years agobpf-devices: line-break some overly long function signatures
Lennart Poettering [Tue, 7 Jan 2020 17:21:26 +0000 (18:21 +0100)] 
bpf-devices: line-break some overly long function signatures

5 years agounits: Split modprobing out into a separate service unit
Iain Lane [Tue, 7 Jan 2020 14:33:29 +0000 (14:33 +0000)] 
units: Split modprobing out into a separate service unit

Devices referred to by `DeviceAllow=` sandboxing are resolved into their
corresponding major numbers when the unit is loaded by looking at
`/proc/devices`. If a reference is made to a device which is not yet
available, the `DeviceAllow` is ignored and the unit's processes cannot
access that device.

In both logind and nspawn, we have `DeviceAllow=` lines, and `modprobe`
in `ExecStartPre=` to load some kernel modules. Those kernel modules
cause device nodes to become available when they are loaded: the device
nodes may not exist when the unit itself is loaded. This means that the
unit's processes will not be able to access the device since the
`DeviceAllow=` will have been resolved earlier and denied it.

One way to fix this would be to re-evaluate the available devices and
re-apply the policy to the cgroup, but this cannot work atomically on
cgroupsv1. So we fall back to a second approach: instead of running
`modprobe` via `ExecStartPre`, we move this out to a separate unit and
order it before the units which want the module.

Closes #14322.
Fixes: #13943.
5 years agoudev: use dot_or_dot_dot() where appropriate 14510/head
Lennart Poettering [Tue, 7 Jan 2020 17:02:53 +0000 (18:02 +0100)] 
udev: use dot_or_dot_dot() where appropriate

5 years agoman: fix documentation of IBM VIO device naming
Lennart Poettering [Tue, 7 Jan 2020 17:02:15 +0000 (18:02 +0100)] 
man: fix documentation of IBM VIO device naming

We generate "v" in two different ways, and they got mixed up.

5 years agoman: slightly extend documentation on difference between ID_NET_NAME_ONBOARD and...
Lennart Poettering [Tue, 7 Jan 2020 17:01:56 +0000 (18:01 +0100)] 
man: slightly extend documentation on difference between ID_NET_NAME_ONBOARD and ID_NET_LABEL_ONBOARD

5 years agoshared/sleep: use stat() instead of open()+fstat() in one place
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jan 2020 15:20:35 +0000 (16:20 +0100)] 
shared/sleep: use stat() instead of open()+fstat() in one place

No functional change.

5 years agoudev: do not use exact match of file permission
Yu Watanabe [Tue, 7 Jan 2020 10:22:59 +0000 (19:22 +0900)] 
udev: do not use exact match of file permission

This partially reverts 25de7aa7b90c23d33ea50ada1e50c5834a414237.

Fixes #14473.

5 years agoMerge pull request #14481 from yuwata/virt-string-table
Lennart Poettering [Tue, 7 Jan 2020 14:16:31 +0000 (15:16 +0100)] 
Merge pull request #14481 from yuwata/virt-string-table

virt: use string table to detect VM or container

5 years agonspawn: set original ifname as alternative if it is truncated
Yu Watanabe [Sat, 4 Jan 2020 20:35:13 +0000 (05:35 +0900)] 
nspawn: set original ifname as alternative if it is truncated

5 years agonetwork: append INTERFACE= attributes for logs corresponds to a netif 14488/head
Yu Watanabe [Tue, 7 Jan 2020 03:53:19 +0000 (12:53 +0900)] 
network: append INTERFACE= attributes for logs corresponds to a netif

5 years agotest-network: suppress logs in status command
Yu Watanabe [Tue, 7 Jan 2020 02:32:04 +0000 (11:32 +0900)] 
test-network: suppress logs in status command

5 years agonetworkctl: status command also shows logs of networkd
Yu Watanabe [Tue, 7 Jan 2020 02:32:03 +0000 (11:32 +0900)] 
networkctl: status command also shows logs of networkd

Closes #14050.

5 years agoman: drop unnecessary white space
Yu Watanabe [Tue, 7 Jan 2020 08:54:55 +0000 (17:54 +0900)] 
man: drop unnecessary white space

5 years agolocale-util: extend comments on unicode glyph use, and drop mdash (that actually...
Lennart Poettering [Tue, 7 Jan 2020 09:51:50 +0000 (10:51 +0100)] 
locale-util: extend comments on unicode glyph use, and drop mdash (that actually was an ndash)

Let's add the actual unicode names of the glyphs we use. Let's also add
in comments what the width expectations of these glyphs are on the
console.

Also, remove the "mdash" definition. First of all it wasn't used, but
what's worse the glyph encoded was actually an "ndash"...

Fixes: #14075
5 years agoMerge pull request #14420 from DaanDeMeyer/nspawn-fix-read-only-overlay-rootfs
Lennart Poettering [Tue, 7 Jan 2020 11:14:24 +0000 (12:14 +0100)] 
Merge pull request #14420 from DaanDeMeyer/nspawn-fix-read-only-overlay-rootfs

nspawn: Don't mount read-only if we have a custom mount on root.

5 years agotest-network: add test for Gateway=DHCP 14499/head
Yu Watanabe [Tue, 7 Jan 2020 05:55:58 +0000 (14:55 +0900)] 
test-network: add test for Gateway=DHCP

5 years agonetwork: static routes via DHCP gateway
Yu Watanabe [Tue, 7 Jan 2020 05:43:09 +0000 (14:43 +0900)] 
network: static routes via DHCP gateway

This makes Gateway= also take "DHCP". If "DHCP" is set, then the gateway
address provided by DHCP or IPv6 RA is used.

Closes #8213.

5 years agovirt: drop trailing white spaces 14481/head
Yu Watanabe [Tue, 7 Jan 2020 02:49:40 +0000 (11:49 +0900)] 
virt: drop trailing white spaces

5 years agovirt: use string table to detect VM or container
Yu Watanabe [Tue, 7 Jan 2020 02:49:39 +0000 (11:49 +0900)] 
virt: use string table to detect VM or container

5 years agopkcs11-util: don't mask return value of the first asprintf()
Frantisek Sumsal [Mon, 6 Jan 2020 09:44:19 +0000 (10:44 +0100)] 
pkcs11-util: don't mask return value of the first asprintf()

Fixes CID#1409666

5 years agonetwork: lower the log-level of harmless message
Yu Watanabe [Mon, 6 Jan 2020 07:48:27 +0000 (16:48 +0900)] 
network: lower the log-level of harmless message

Closes #14285.

5 years agomeson: drop unnecessary linking of libudev_core
Yu Watanabe [Mon, 6 Jan 2020 03:16:53 +0000 (12:16 +0900)] 
meson: drop unnecessary linking of libudev_core

5 years agosd-netlink: fix copy and paste mistake
Yu Watanabe [Mon, 6 Jan 2020 10:32:22 +0000 (19:32 +0900)] 
sd-netlink: fix copy and paste mistake

5 years agoman: change links to container interface doc to https://systemd.io/ 14494/head
Lennart Poettering [Mon, 6 Jan 2020 17:15:07 +0000 (18:15 +0100)] 
man: change links to container interface doc to https://systemd.io/

Now that we converted the documentation we should also link to it.

5 years agodocs: move container interface docs from wiki to markdown
Lennart Poettering [Mon, 6 Jan 2020 17:12:19 +0000 (18:12 +0100)] 
docs: move container interface docs from wiki to markdown

Let's move
https://www.freedesktop.org/wiki/Software/systemd/ContainerInterface/
into our tree and convert it to Markdown.

This also incldues some minor fixes and other changes.

5 years agosd-netlink: use uint8_t* for non-character data
Yu Watanabe [Mon, 6 Jan 2020 01:48:42 +0000 (10:48 +0900)] 
sd-netlink: use uint8_t* for non-character data

5 years agotestsuite: drop "systemctl is-system-running --wait" invocation 14472/head
Lennart Poettering [Mon, 6 Jan 2020 12:40:36 +0000 (13:40 +0100)] 
testsuite: drop "systemctl is-system-running --wait" invocation

We wait for "basic.target" being reached in the user instance anyway
before allowing the user's session to start, hence doing such a wait is
unnecessary, since that would just mean we'd wait for "default.target"
on top of "basic.target", but we shouldn#t need anything of that...

Hence, let's simplify this, reduce explicit sync points.

5 years agotest: don't rely on "nobody" user for TEST-43
Lennart Poettering [Fri, 3 Jan 2020 17:27:14 +0000 (18:27 +0100)] 
test: don't rely on "nobody" user for TEST-43

The name is not as universal as we want, still, hence let's use our own
user we create with sysusers.d/. That should yield same behaviour
everywhere (and also test sysusers a bit as side effect).

5 years agotest: hardcode shell to use
Lennart Poettering [Fri, 3 Jan 2020 17:25:51 +0000 (18:25 +0100)] 
test: hardcode shell to use

let's make sure we always invoke our commands through /bin/sh, since
on some distros su will use /bin/nologin (or whatever is listed in
/etc/passwd) as shell otherwise and we don#t want that.

5 years agosystemd-sleep: always attempt hibernation if configured 14270/head
Zach Smith [Sat, 7 Dec 2019 00:37:22 +0000 (16:37 -0800)] 
systemd-sleep: always attempt hibernation if configured

When calculation of swap file offset is unsupported, rely on the
/sys/power/resume & /sys/power/resume_offset values if configured
rather than requiring a matching swap entry to be identified.

Refactor to use dev_t for comparison of resume= device instead of string.

5 years agodbus-execute: avoid extra strdup()
Topi Miettinen [Thu, 2 Jan 2020 17:59:48 +0000 (19:59 +0200)] 
dbus-execute: avoid extra strdup()

bind_mount_add does the strdup(), so we can avoid
strdup()ing the strings.

5 years agotest: use symlinks for Makefiles
Lennart Poettering [Fri, 3 Jan 2020 17:00:03 +0000 (18:00 +0100)] 
test: use symlinks for Makefiles

for some reason the newer tests used file copyies instead of symlinks.
let's fix that.

5 years agojob: Don't mark as redundant if deps are relevant
Kevin Kuehler [Tue, 19 Nov 2019 21:43:58 +0000 (13:43 -0800)] 
job: Don't mark as redundant if deps are relevant

In the steps given in #13850, the resulting graph looks like:

    C (Anchor) -> B -> A

Since B is inactive, it will be flagged as redundant and removed from
the transaction, causing A to get garbage collected. The proposed fix is
to not mark nodes as redundant if doing so causes a relevant node to be
garbage collected.

Fixes #13850

5 years agoMerge pull request #14194 from yuwata/network-multipath-routing-12541
Lennart Poettering [Fri, 3 Jan 2020 14:38:03 +0000 (15:38 +0100)] 
Merge pull request #14194 from yuwata/network-multipath-routing-12541

network: introduce multipath routing

5 years agoMerge pull request #14469 from aburch/man-tmpfiles.d-minor-improvements
Lennart Poettering [Fri, 3 Jan 2020 13:18:16 +0000 (14:18 +0100)] 
Merge pull request #14469 from aburch/man-tmpfiles.d-minor-improvements

man: tmpfiles.d: minor improvements

5 years agonspawn: Make a custom mount on root imply --read-only. 14420/head
Daan De Meyer [Tue, 24 Dec 2019 10:40:03 +0000 (11:40 +0100)] 
nspawn: Make a custom mount on root imply --read-only.

5 years agonspawn: Don't mount read-only if we have a custom mount on root.
Daan De Meyer [Mon, 23 Dec 2019 10:50:02 +0000 (11:50 +0100)] 
nspawn: Don't mount read-only if we have a custom mount on root.

5 years agoMerge pull request #14401 from DaanDeMeyer/nspawn-move-veth-back-to-host
Lennart Poettering [Fri, 3 Jan 2020 11:47:03 +0000 (12:47 +0100)] 
Merge pull request #14401 from DaanDeMeyer/nspawn-move-veth-back-to-host

nspawn: move virtual interfaces added with --network-interface back to the host

5 years agoman: tmpfiles.d: only list "v" once 14469/head
Ansgar Burchardt [Fri, 3 Jan 2020 11:21:57 +0000 (20:21 +0900)] 
man: tmpfiles.d: only list "v" once

5 years agoman: tmpfiles.d: "b", "c" options require major and minor numbers
Ansgar Burchardt [Fri, 3 Jan 2020 11:13:51 +0000 (20:13 +0900)] 
man: tmpfiles.d: "b", "c" options require major and minor numbers

5 years agohwdb: Lenovo T490 Synaptics Touchpad hwdb entry
Mike Auty [Fri, 3 Jan 2020 00:44:54 +0000 (00:44 +0000)] 
hwdb: Lenovo T490 Synaptics Touchpad hwdb entry

The Synaptics Touchpad that comes with the T490 doesn't explicitly set
its resolution, so these lines are needed to provide that, in order to
help the libinput code detect overly large jumps.  Since this device
contains buttons under the lower section of the touchpad, large jumps
are common, so having the resolution helps libinput greatly reduce
the number of occurances of pointer jump.

This comes from
https://gitlab.freedesktop.org/libinput/libinput/issues/402.

5 years agoMerge pull request #14467 from poettering/nspawn-short-names-rework
Lennart Poettering [Fri, 3 Jan 2020 08:55:29 +0000 (09:55 +0100)] 
Merge pull request #14467 from poettering/nspawn-short-names-rework

nspawn: change how we truncate --network-veth names

5 years agotest: add test case for setpriority_closest() 14465/head
Lennart Poettering [Thu, 2 Jan 2020 16:33:51 +0000 (17:33 +0100)] 
test: add test case for setpriority_closest()

5 years agocore: in execute, Never fail setting Nice priority
Dimitri John Ledkov [Tue, 1 Aug 2017 16:38:05 +0000 (17:38 +0100)] 
core: in execute, Never fail setting Nice priority

Instead, push to the closest possible Nice priority setting.

Replaces: #11397

5 years agonspawn: Generate unique short veth names 14467/head
Kai Krakow [Sun, 23 Jun 2019 22:24:18 +0000 (00:24 +0200)] 
nspawn: Generate unique short veth names

This commit lowers the chance of having veth name conflicts for machines
created with similar names.

Replaces: #12865
Fixes: #13417
5 years agoudev: move naming-scheme.[ch] into src/shared/
Lennart Poettering [Thu, 2 Jan 2020 18:33:29 +0000 (19:33 +0100)] 
udev: move naming-scheme.[ch] into src/shared/

That way we can use it from non-udev code too, for example nspawn.

5 years agoMerge pull request #13748 from jwrdegoede/hwdb-updates2
Lennart Poettering [Thu, 2 Jan 2020 14:43:04 +0000 (15:43 +0100)] 
Merge pull request #13748 from jwrdegoede/hwdb-updates2

Add LCD menu key mappings for the Logitech MX5000 and MX5500

5 years agosystemctl: show 'VENDOR PRESET' column in 'list-unit-files'
Frantisek Sumsal [Sat, 28 Dec 2019 14:38:43 +0000 (15:38 +0100)] 
systemctl: show 'VENDOR PRESET' column in 'list-unit-files'

Show the install value presets would suggest for each service in a
separate column.

5 years agosystemctl: skip non-existent units in the 'cat' verb
Frantisek Sumsal [Sat, 28 Dec 2019 11:29:19 +0000 (12:29 +0100)] 
systemctl: skip non-existent units in the 'cat' verb

When processing list of units (either provided manually or as a
wildcard), let's skip units for which we don't have an on-disk
counterpart, but note the -ENOENT error code and propagate it back to
the user.

Fixes: #14082
5 years agoMerge pull request #14444 from yuwata/network-codel-more
Lennart Poettering [Thu, 2 Jan 2020 13:51:55 +0000 (14:51 +0100)] 
Merge pull request #14444 from yuwata/network-codel-more

network: more CoDel settings

5 years agosystemd.exec: document the file system for EnvironmentFile paths
Topi Miettinen [Sat, 28 Dec 2019 17:38:27 +0000 (19:38 +0200)] 
systemd.exec: document the file system for EnvironmentFile paths

Files specified with EnvironmentFile are read from PID1 mount namespace, before
any file system operations like RootImage or BindPaths are in effect.

5 years agonspawn: Move --network-interface interfaces back to the host. 14401/head
Daan De Meyer [Thu, 19 Dec 2019 20:17:57 +0000 (21:17 +0100)] 
nspawn: Move --network-interface interfaces back to the host.

5 years agoMerge pull request #14441 from GothAck/gothack_type.d_dropin_test_master
Lennart Poettering [Thu, 2 Jan 2020 12:41:16 +0000 (13:41 +0100)] 
Merge pull request #14441 from GothAck/gothack_type.d_dropin_test_master

Fix type.d drop-in ordering for #14439 - duplicate against master

5 years agohwdb: 60-sensor.hwdb Chuwi Hi10 CWI515 accelerometer orientation.
Rafa Couto [Sun, 29 Dec 2019 18:44:32 +0000 (19:44 +0100)] 
hwdb: 60-sensor.hwdb Chuwi Hi10 CWI515 accelerometer orientation.

5 years agoUpdate Galician translations
Fran Dieguez [Sun, 29 Dec 2019 21:37:31 +0000 (22:37 +0100)] 
Update Galician translations

5 years agosystemd-analyze: fixed typo in documentation
Tobias Stoeckmann [Tue, 31 Dec 2019 12:56:02 +0000 (13:56 +0100)] 
systemd-analyze: fixed typo in documentation

The example shows the output of critical-chain, which means
that the title is wrong.

5 years agotree-wide: yet another batch of coccinelle recommendations
Frantisek Sumsal [Wed, 1 Jan 2020 18:17:15 +0000 (19:17 +0100)] 
tree-wide: yet another batch of coccinelle recommendations

Prettify certain parts of the codebase using coccinelle transformations
(no functional changes).

5 years agonetwork: bump netlink receive buffer size to 128M
Yu Watanabe [Thu, 26 Dec 2019 06:29:26 +0000 (15:29 +0900)] 
network: bump netlink receive buffer size to 128M

Prompted by #14417.

5 years agotravis: wait for the container to fully boot up
Frantisek Sumsal [Mon, 23 Dec 2019 19:54:08 +0000 (20:54 +0100)] 
travis: wait for the container to fully boot up

This avoids nasty race conditions between dnf/apt-get and unfinished
population of /tmp (among other things), as `docker exec` allows commands
to run before the system is fully booted (i.e. initializing/starting
state reported by `systemctl is-system-running`).

5 years agotest-network: add a test case for CoDel 14444/head
Yu Watanabe [Sat, 28 Dec 2019 13:25:49 +0000 (22:25 +0900)] 
test-network: add a test case for CoDel