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

4 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

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

4 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

4 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

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

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

4 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

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

4 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

4 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

4 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

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

4 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

4 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

4 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

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

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

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

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

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

4 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

4 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

4 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

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

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

4 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

4 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

4 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

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

4 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

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

4 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

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

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

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

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

4 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

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

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

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

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

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

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

4 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

4 years agonetwork: add more settings for CoDel
Yu Watanabe [Sat, 28 Dec 2019 13:07:24 +0000 (22:07 +0900)] 
network: add more settings for CoDel

4 years agonetwork: Add support to configure DHCPv4 route MTU
Susant Sahani [Thu, 19 Dec 2019 10:05:16 +0000 (11:05 +0100)] 
network: Add support to configure DHCPv4 route MTU

This is useful for transitioning systems from small frames to jumbo frames.

Closes #14302

4 years agonetwork: tc introduce codel
Susant Sahani [Sat, 21 Dec 2019 19:18:09 +0000 (20:18 +0100)] 
network: tc introduce codel

Please see http://man7.org/linux/man-pages/man8/tc-codel.8.html

4 years agounit drop-in: Fix ordering of special type.d drop-ins 14441/head
Greg "GothAck" Miell [Fri, 27 Dec 2019 14:49:51 +0000 (14:49 +0000)] 
unit drop-in: Fix ordering of special type.d drop-ins

4 years agoAdd failing test to show service.d global drop-in does not get overridden by more...
Greg "GothAck" Miell [Fri, 27 Dec 2019 14:36:49 +0000 (14:36 +0000)] 
Add failing test to show service.d global drop-in does not get overridden by more specific dropins

4 years agotest-condition: fix group check condition
Felipe Sateler [Tue, 24 Dec 2019 01:04:44 +0000 (22:04 -0300)] 
test-condition: fix group check condition

We were checking the uid, whereas we should have checked the gid

4 years agoFix typo
Leonid Evdokimov [Wed, 25 Dec 2019 13:16:27 +0000 (16:16 +0300)] 
Fix typo

4 years agoFix several typos in documentation
Felipe Sateler [Tue, 24 Dec 2019 12:50:04 +0000 (09:50 -0300)] 
Fix several typos in documentation

Found by lintian

4 years agonetwork: add one more log message
Yu Watanabe [Mon, 23 Dec 2019 14:41:09 +0000 (23:41 +0900)] 
network: add one more log message

4 years agonspawn-network: Split off udev checking from parse_interface.
Daan De Meyer [Thu, 19 Dec 2019 20:16:30 +0000 (21:16 +0100)] 
nspawn-network: Split off udev checking from parse_interface.

4 years agobash-completion: move shell-completion for log-level or friends to systemctl
Yu Watanabe [Fri, 20 Dec 2019 02:29:11 +0000 (11:29 +0900)] 
bash-completion: move shell-completion for log-level or friends to systemctl

4 years agoMerge pull request #14409 from poettering/shutdown-modernization
Zbigniew Jędrzejewski-Szmek [Sat, 21 Dec 2019 18:21:10 +0000 (19:21 +0100)] 
Merge pull request #14409 from poettering/shutdown-modernization

some smaller modernizations to the shutdown loop

4 years agoMerge pull request #14407 from ssahani/dhcp-decline
Yu Watanabe [Fri, 20 Dec 2019 23:40:22 +0000 (08:40 +0900)] 
Merge pull request #14407 from ssahani/dhcp-decline

network: DHCP4 introduce send decline

4 years agoumount: when we fail to detach a loopback device, set the auto-clear flag 14409/head
Lennart Poettering [Fri, 20 Dec 2019 17:37:24 +0000 (18:37 +0100)] 
umount: when we fail to detach a loopback device, set the auto-clear flag

We might get lucky and this cleans up things later on automatically for
us.

4 years agoumount: check LO_FLAGS_AUTOCLEAR after LOOP_CLR_FD claimed success
Lennart Poettering [Fri, 20 Dec 2019 16:58:03 +0000 (17:58 +0100)] 
umount: check LO_FLAGS_AUTOCLEAR after LOOP_CLR_FD claimed success

Fixes: #14410
Replaces: #14386

4 years agoumount: detect root loopback device the same way as we detect root DM devices
Lennart Poettering [Fri, 20 Dec 2019 16:02:05 +0000 (17:02 +0100)] 
umount: detect root loopback device the same way as we detect root DM devices

get_block_device() is just the nicer way to do it (since it also odes
btrfs). Also, let's already collect the dev_t of the loopback device
when we enumerate things, that allows us to do the checks simpler
without constantly stat()ing things over and over again.

4 years agoumount: show correct error message
Lennart Poettering [Fri, 20 Dec 2019 15:59:42 +0000 (16:59 +0100)] 
umount: show correct error message

We fucked up errno vs. r two times, let's correct that.

While we are at it, let's handle the error first, like we usually do,
and the clean case without indentation.

4 years agoumount: remove unneeded variable
Lennart Poettering [Fri, 20 Dec 2019 15:58:27 +0000 (16:58 +0100)] 
umount: remove unneeded variable

4 years agoumount: line break comments again
Lennart Poettering [Fri, 20 Dec 2019 15:57:29 +0000 (16:57 +0100)] 
umount: line break comments again

break them like we usually do, taking our intended line width into
account.

4 years agoRevert "Drop dbus activation stub service"
Lennart Poettering [Fri, 20 Dec 2019 11:26:17 +0000 (12:26 +0100)] 
Revert "Drop dbus activation stub service"

This reverts commit 07125d24eedb71693b3bf2b1f0730cd01aaac2dd.

In contrast to what is claimed in #13396 dbus-broker apparently does
care for the service file to be around, and otherwise will claim
"Service Not Activatable" in the time between systemd starting up the
broker and connecting to it, which the stub service file is supposed to
make go away.

Reverting this makes the integration test suite pass again on host with
dbus-broker (i.e. current Fedora desktop).

Tested with dbus-broker-21-6.fc31.x86_64.

4 years agotest-network: add a test case for DHCPv4.SendDecline= 14407/head
Yu Watanabe [Fri, 20 Dec 2019 15:25:47 +0000 (00:25 +0900)] 
test-network: add a test case for DHCPv4.SendDecline=

4 years agonetwork: link should not become configured state during ACD probing
Yu Watanabe [Fri, 20 Dec 2019 15:19:25 +0000 (00:19 +0900)] 
network: link should not become configured state during ACD probing

4 years agonetwork: DHCP4 introduce send decline
Susant Sahani [Fri, 20 Dec 2019 13:13:18 +0000 (14:13 +0100)] 
network: DHCP4 introduce send decline

4 years agoMerge pull request #14329 from anitazha/user_invocation_id
Lennart Poettering [Fri, 20 Dec 2019 09:20:21 +0000 (10:20 +0100)] 
Merge pull request #14329 from anitazha/user_invocation_id

export user units' InvocationID and use as _SYSTEMD_INVOCATION_ID

4 years agonetwork: fix typo
Yu Watanabe [Fri, 20 Dec 2019 02:15:55 +0000 (11:15 +0900)] 
network: fix typo

4 years agocore,journal: export user units' InvocationID and use as _SYSTEMD_INVOCATION_ID 14329/head
Anita Zhang [Thu, 12 Dec 2019 05:15:42 +0000 (21:15 -0800)] 
core,journal: export user units' InvocationID and use as _SYSTEMD_INVOCATION_ID

Write a user unit's invocation ID to /run/user/<uid>/systemd/units/ similar
to how a system unit's invocation ID is written to /run/systemd/units/.

This lets the journal read and add a user unit's invocation ID to the
_SYSTEMD_INVOCATION_ID field of logs instead of the user manager's
invocation ID.

Fixes #12474

4 years agoMerge pull request #14378 from keszybz/unit-docs
Lennart Poettering [Thu, 19 Dec 2019 18:00:14 +0000 (19:00 +0100)] 
Merge pull request #14378 from keszybz/unit-docs

Unit documentation and build-system tweaks

4 years agonetwork: update log message in message_rtnl_process_xyz()
Yu Watanabe [Thu, 19 Dec 2019 11:17:15 +0000 (20:17 +0900)] 
network: update log message in message_rtnl_process_xyz()

Also lower the log level when the family is not supported.

4 years agoman: add section about user manager units 14378/head
Zbigniew Jędrzejewski-Szmek [Wed, 18 Dec 2019 10:23:30 +0000 (11:23 +0100)] 
man: add section about user manager units

4 years agoman: add remote-*.targets to the bootup sequence
Zbigniew Jędrzejewski-Szmek [Wed, 18 Dec 2019 09:32:03 +0000 (10:32 +0100)] 
man: add remote-*.targets to the bootup sequence

I think this makes it easier to see the difference between local and remote
mounts.

Make the graph a bit narrower while at it.

4 years agotime-util: also use 32bit hack on EOVERFLOW
Lennart Poettering [Wed, 18 Dec 2019 13:57:11 +0000 (14:57 +0100)] 
time-util: also use 32bit hack on EOVERFLOW

As per
https://github.com/systemd/systemd/issues/14362#issuecomment-566722686
let's also prepare for EOVERFLOW.

4 years agoMerge pull request #14388 from anitazha/man_uid_updates
Lennart Poettering [Thu, 19 Dec 2019 11:45:59 +0000 (12:45 +0100)] 
Merge pull request #14388 from anitazha/man_uid_updates

man: document uids for user journals

4 years agoMerge pull request #13823 from anitazha/unpriv_privateusers
Lennart Poettering [Thu, 19 Dec 2019 11:03:06 +0000 (12:03 +0100)] 
Merge pull request #13823 from anitazha/unpriv_privateusers

core: PrivateUsers=true for (unprivileged) user managers

4 years agohwdb: ignore keys added in kernel 5.5 13748/head
Zbigniew Jędrzejewski-Szmek [Thu, 19 Dec 2019 10:48:46 +0000 (11:48 +0100)] 
hwdb: ignore keys added in kernel 5.5

python-evdev needs to be rebuilt with new kernel headers. Before that
happens, our test would reject those keys as unknown.

4 years agohwdb: Add LCD menu key mappings for the Logitech MX5000 and MX5500 keyboards
Hans de Goede [Sun, 9 Jun 2019 17:40:32 +0000 (19:40 +0200)] 
hwdb: Add LCD menu key mappings for the Logitech MX5000 and MX5500 keyboards

The kernel now has proper evdev codes for the menu buttons below the
small LCD-s builtin to some keyboards.

Add mappings for these buttons on the Logitech MX5000 and MX5500 keyboards.

4 years agoRevert "cryptsetup: umount encrypted devices before detaching it during shutdown"
Zbigniew Jędrzejewski-Szmek [Thu, 19 Dec 2019 09:42:14 +0000 (10:42 +0100)] 
Revert "cryptsetup: umount encrypted devices before detaching it during shutdown"

This reverts commit 362c378291e85df3e00aaad491d1e08233ad127f.

This commit introduced an ordering loop: remote-cryptsetup.target was both
before and after remote-fs-pre.target. It also globally ordered all cryptsetup
volumes before all mounts. Such global ordering is problematic if people have
stacked storage. Let's look for a different solution.

See https://github.com/systemd/systemd/pull/14378#discussion_r359460109.

4 years agoMerge pull request #14382 from topimiettinen/fix-analyze-security-rootimage
Anita Zhang [Thu, 19 Dec 2019 00:21:36 +0000 (16:21 -0800)] 
Merge pull request #14382 from topimiettinen/fix-analyze-security-rootimage

analyze: badness if neither of RootImage and RootDirectory exists

4 years ago[man] note which UID ranges will get user journals 14388/head
Anita Zhang [Thu, 19 Dec 2019 00:09:49 +0000 (16:09 -0800)] 
[man] note which UID ranges will get user journals

Fixes #13926

4 years ago[man] fix URL
Anita Zhang [Thu, 19 Dec 2019 00:08:53 +0000 (16:08 -0800)] 
[man] fix URL

4 years agotest: add test case for PrivateDevices=y and Group=daemon 13823/head
Anita Zhang [Wed, 20 Nov 2019 01:25:23 +0000 (17:25 -0800)] 
test: add test case for PrivateDevices=y and Group=daemon

For root, group enforcement needs to come after PrivateDevices=y set up
according to 096424d1230e0a0339735c51b43949809e972430. Add a test to
verify this is the case.

4 years agocore: create inaccessible nodes for users when making runtime dirs
Anita Zhang [Tue, 19 Nov 2019 22:24:52 +0000 (14:24 -0800)] 
core: create inaccessible nodes for users when making runtime dirs

To support ProtectHome=y in a user namespace (which mounts the inaccessible
nodes), the nodes need to be accessible by the user. Create these paths and
devices in the user runtime directory so they can be used later if needed.

4 years agocore: add test case for PrivateUsers=true in user manager
Filipe Brandenburger [Wed, 13 Nov 2019 18:32:24 +0000 (10:32 -0800)] 
core: add test case for PrivateUsers=true in user manager

The test exercises that PrivateTmp=yes and ProtectHome={read-only,tmpfs}
directives work as expected when PrivateUsers=yes in a user manager.

Some code is also added to test-functions to help set up test cases that
exercise the user manager.

4 years agocore: PrivateUsers=true for (unprivileged) user managers
Anita Zhang [Wed, 23 Oct 2019 00:37:47 +0000 (17:37 -0700)] 
core: PrivateUsers=true for (unprivileged) user managers

Let per-user service managers have user namespaces too.

For unprivileged users, user namespaces are set up much earlier
(before the mount, network, and UTS namespaces vs after) in
order to obtain capbilities in the new user namespace and enable use of
the other listed namespaces. However for privileged users (root), the
set up for the user namspace is still done at the end to avoid any
restrictions with combining namespaces inside a user namespace (see
inline comments).

Closes #10576

4 years agoanalyze: badness if neither of RootImage and RootDirectory exists 14382/head
Topi Miettinen [Wed, 18 Dec 2019 18:25:03 +0000 (20:25 +0200)] 
analyze: badness if neither of RootImage and RootDirectory exists

Instead of requiring both RootImage and RootDirectory directives, give badness
points if neither is present. Fixes conversion in d737b451f.

4 years agoMerge pull request #14376 from poettering/sd-event-no-stack
Lennart Poettering [Wed, 18 Dec 2019 16:18:07 +0000 (17:18 +0100)] 
Merge pull request #14376 from poettering/sd-event-no-stack

sd-event: don't use stack for event queue array

4 years agonetwork: introduce AddPrefixRoute= and deprecate PrefixRoute=
Yu Watanabe [Sat, 7 Dec 2019 15:32:36 +0000 (00:32 +0900)] 
network: introduce AddPrefixRoute= and deprecate PrefixRoute=

PrefixRoute= was added by e63be0847c39bfdca45c25c505922814374581a7,
but unfortunately, the meaning of PrefixRoute= is inverted; when true
IFA_F_NOPREFIXROUTE flag is added. This introduces AddPrefixRoute=
setting.

4 years agoMerge pull request #14377 from keszybz/fixups
Lennart Poettering [Wed, 18 Dec 2019 15:21:20 +0000 (16:21 +0100)] 
Merge pull request #14377 from keszybz/fixups

Fixups

4 years agotest-network: add test case for multipath routing 14194/head
Yu Watanabe [Thu, 28 Nov 2019 16:45:24 +0000 (01:45 +0900)] 
test-network: add test case for multipath routing

4 years agonetwork: introduce multipath route
Yu Watanabe [Thu, 28 Nov 2019 15:36:02 +0000 (00:36 +0900)] 
network: introduce multipath route

Closes #12541.

4 years agosd-netlink: introduce rtattr_append_attribute()
Yu Watanabe [Wed, 27 Nov 2019 16:28:36 +0000 (01:28 +0900)] 
sd-netlink: introduce rtattr_append_attribute()

It will be used in later commit.

4 years agoMerge pull request #14365 from yuwata/networkctl-altname
Zbigniew Jędrzejewski-Szmek [Wed, 18 Dec 2019 11:44:34 +0000 (12:44 +0100)] 
Merge pull request #14365 from yuwata/networkctl-altname

network, udev: further alternative name support