]>
git.ipfire.org Git - thirdparty/systemd.git/log
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
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.
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
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.
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
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
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.
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
Rafa Couto [Sun, 29 Dec 2019 18:44:32 +0000 (19:44 +0100)]
hwdb: 60-sensor.hwdb Chuwi Hi10 CWI515 accelerometer orientation.
Fran Dieguez [Sun, 29 Dec 2019 21:37:31 +0000 (22:37 +0100)]
Update Galician translations
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.
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).
Yu Watanabe [Thu, 26 Dec 2019 06:29:26 +0000 (15:29 +0900)]
network: bump netlink receive buffer size to 128M
Prompted by #14417.
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`).
Yu Watanabe [Sat, 28 Dec 2019 13:25:49 +0000 (22:25 +0900)]
test-network: add a test case for CoDel
Yu Watanabe [Sat, 28 Dec 2019 13:07:24 +0000 (22:07 +0900)]
network: add more settings for CoDel
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
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
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
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
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
Leonid Evdokimov [Wed, 25 Dec 2019 13:16:27 +0000 (16:16 +0300)]
Fix typo
Felipe Sateler [Tue, 24 Dec 2019 12:50:04 +0000 (09:50 -0300)]
Fix several typos in documentation
Found by lintian
Yu Watanabe [Mon, 23 Dec 2019 14:41:09 +0000 (23:41 +0900)]
network: add one more log message
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
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
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
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.
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
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.
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.
Lennart Poettering [Fri, 20 Dec 2019 15:58:27 +0000 (16:58 +0100)]
umount: remove unneeded variable
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.
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.
Yu Watanabe [Fri, 20 Dec 2019 15:25:47 +0000 (00:25 +0900)]
test-network: add a test case for DHCPv4.SendDecline=
Yu Watanabe [Fri, 20 Dec 2019 15:19:25 +0000 (00:19 +0900)]
network: link should not become configured state during ACD probing
Susant Sahani [Fri, 20 Dec 2019 13:13:18 +0000 (14:13 +0100)]
network: DHCP4 introduce send decline
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
Yu Watanabe [Fri, 20 Dec 2019 02:15:55 +0000 (11:15 +0900)]
network: fix typo
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
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
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.
Zbigniew Jędrzejewski-Szmek [Wed, 18 Dec 2019 10:23:30 +0000 (11:23 +0100)]
man: add section about user manager units
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.
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.
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
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
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.
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.
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.
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
Anita Zhang [Thu, 19 Dec 2019 00:09:49 +0000 (16:09 -0800)]
[man] note which UID ranges will get user journals
Fixes #13926
Anita Zhang [Thu, 19 Dec 2019 00:08:53 +0000 (16:08 -0800)]
[man] fix URL
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.
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.
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.
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
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 .
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
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.
Lennart Poettering [Wed, 18 Dec 2019 15:21:20 +0000 (16:21 +0100)]
Merge pull request #14377 from keszybz/fixups
Fixups
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
Zbigniew Jędrzejewski-Szmek [Wed, 18 Dec 2019 08:38:25 +0000 (09:38 +0100)]
Make openssl dependency optional again
Lennart Poettering [Wed, 18 Dec 2019 10:02:21 +0000 (11:02 +0100)]
update TODO
Lennart Poettering [Wed, 18 Dec 2019 09:59:27 +0000 (10:59 +0100)]
sd-event: don't allocate event queue array on stack
We might have quite a number of event sources, hence allocate this in a
buffer we can reuse on the heap, rather than on the stack.
Lennart Poettering [Mon, 26 Aug 2019 10:06:53 +0000 (12:06 +0200)]
man: add man page for sd_bus_message_sensitive()
Zbigniew Jędrzejewski-Szmek [Tue, 17 Dec 2019 11:32:36 +0000 (12:32 +0100)]
Restore silent handling of BUS_ERROR_SPEED_METER_INACTIVE
This only matters for the case where new networkctl is running against older
networkd. We should still handle the old error to avoid unnecessary warning
about speedmeeter being disabled.
This partially reverts commit
e813de549b17f2601750c95825d8e0740cbee38c .
Zbigniew Jędrzejewski-Szmek [Mon, 16 Dec 2019 13:16:49 +0000 (14:16 +0100)]
shared/loop-util: rename function
As suggested in https://github.com/systemd/systemd/pull/14261#pullrequestreview-
332398625 .
Topi Miettinen [Tue, 17 Dec 2019 13:47:37 +0000 (15:47 +0200)]
shared/dropin: fix assert for invalid drop-in
Don't try to show top level drop-in for non-existent units or when trying to
instantiate non-instantiated units:
$ systemctl cat nonexistent@.service
Assertion 'name' failed at src/shared/dropin.c:143, function unit_file_find_dirs(). Aborting.
$ systemctl cat systemd-journald@.service
Assertion 'name' failed at src/shared/dropin.c:143, function unit_file_find_dirs(). Aborting.
Yu Watanabe [Wed, 18 Dec 2019 02:17:59 +0000 (11:17 +0900)]
Merge pull request #14370 from poettering/homed-preparation-misc
four smaller preparation patches from the homed PR
Yu Watanabe [Wed, 18 Dec 2019 02:16:17 +0000 (11:16 +0900)]
Merge pull request #14369 from poettering/pkcs11-cryptsetup-followup
PKCS#11 cryptsetup support followup
Dimitri John Ledkov [Fri, 13 Dec 2019 23:22:51 +0000 (23:22 +0000)]
initrd: make udev cleanup service confict trigger and settle too
Otherwise, systemd-udev-trigger|settle.service that ran in the initrd may
ramain active, and never re-run again from the system root.
This is observed by forexample examining ESP with udevadm info, which in the
initrd has all the ID_* variables, and none of them in fully booted system.
Lennart Poettering [Tue, 28 May 2019 12:18:49 +0000 (14:18 +0200)]
varlink: add varlink_close_unref() helper
Lennart Poettering [Tue, 16 Apr 2019 16:44:28 +0000 (18:44 +0200)]
chown-recursive: add fd based API
Lennart Poettering [Sun, 23 Dec 2018 18:31:29 +0000 (19:31 +0100)]
chown-recursive: move src/core/chown-recursive.[ch] → src/shared/
We want to use it outside of the core, hence let's moved it to the
shared code directory.
Lennart Poettering [Fri, 22 Nov 2019 11:42:27 +0000 (12:42 +0100)]
basic: add quota-util.[ch] with some helpers for the Linux quotactl() API
Lennart Poettering [Tue, 17 Dec 2019 17:40:46 +0000 (18:40 +0100)]
cryptsetup-pkcs11: just return zero on success, no need to return anything else
Lennart Poettering [Tue, 17 Dec 2019 17:40:26 +0000 (18:40 +0100)]
cryptsetup-pkcs11: line break some overly long lines
Lennart Poettering [Tue, 17 Dec 2019 17:39:53 +0000 (18:39 +0100)]
cryptsetup-pkcs11: refuse keys above 16MiB size
Lennart Poettering [Tue, 17 Dec 2019 17:39:12 +0000 (18:39 +0100)]
man: tweaks to the crypttab(5) man page
cvoinf [Mon, 9 Dec 2019 22:28:09 +0000 (23:28 +0100)]
hwdb: assume all Medion Akoya E-models have the same matrix
Since up to now all known Akoya E* models have the same Matrix, we assume all
other Akoya E* models work the same.
Lennart Poettering [Tue, 17 Dec 2019 10:24:02 +0000 (11:24 +0100)]
man: whitespace fix
Lennart Poettering [Tue, 17 Dec 2019 16:30:55 +0000 (17:30 +0100)]
man: we support growing xfs too these days
Lennart Poettering [Tue, 17 Dec 2019 10:22:17 +0000 (11:22 +0100)]
time-util: deal with systems where userspace has 64bit time_t but kernel does not
Fixes: #14362
Yu Watanabe [Tue, 17 Dec 2019 12:13:49 +0000 (21:13 +0900)]
network: support alternative name to get bus path for the link
Yu Watanabe [Tue, 17 Dec 2019 12:07:46 +0000 (21:07 +0900)]
networkctl: support alternative name to specify interface
Yu Watanabe [Tue, 17 Dec 2019 11:41:21 +0000 (20:41 +0900)]
udev: sort alternative names
Kernel preserves the order of alternative names. So, for user
visibility, let's sort the alternative names.
Yu Watanabe [Tue, 17 Dec 2019 09:28:36 +0000 (18:28 +0900)]
sd-netlink: introduce rtnl_resolve_link_alternative_names()
Lennart Poettering [Tue, 17 Dec 2019 14:30:32 +0000 (15:30 +0100)]
Merge pull request #14267 from poettering/pkcs11-cryptsetup
just the pkcs11 hookup for classic cryptsetup (/etc/crypttab) split out of the homed PR
Yu Watanabe [Tue, 17 Dec 2019 14:30:10 +0000 (23:30 +0900)]
Merge pull request #14337 from yuwata/network-tc-fq-more
network: tc: introduce more FQ settings
Anita Zhang [Tue, 17 Dec 2019 09:08:04 +0000 (01:08 -0800)]
[import] fix stdin/stdout pipe behavior in import/export tar/raw
The code existed in machinectl to use stdin/stdout if the path for
import/export tar/raw was empty or dash (-) but a check to
`fd_verify_regular` in importd prevented it from working.
Update the check instead to explicitly check for regular file or
pipe/fifo.
Fixes #14346
Yu Watanabe [Tue, 17 Dec 2019 14:10:46 +0000 (23:10 +0900)]
Merge pull request #14352 from yuwata/sd-netlink-tiny-fixes
sd-netlink: tiny fixes
Yu Watanabe [Tue, 17 Dec 2019 14:10:08 +0000 (23:10 +0900)]
Merge pull request #14208 from poettering/json-homed-prepare
json bits from homed PR
Jan Alexander Steffens (heftig) [Sat, 14 Dec 2019 22:13:17 +0000 (23:13 +0100)]
hwdb: Add Bluetooth-attached Logitech MX Master
Except for the product IDs, the original MX Master appears identical to
the MX Master 2S.
Zbigniew Jędrzejewski-Szmek [Tue, 17 Dec 2019 11:13:47 +0000 (12:13 +0100)]
Merge pull request #14360 from yuwata/udev-alternative-names-policy
udev: introduce AlternativeNamesPolicy= setting
Bart Willems [Mon, 16 Dec 2019 15:45:59 +0000 (16:45 +0100)]
systemctl: show what verbs support --dry-run in the help page
Signed-off-by: Bart Willems <bwillems@protonmail.com>
Lennart Poettering [Tue, 17 Dec 2019 09:34:43 +0000 (10:34 +0100)]
Merge pull request #14241 from keszybz/resume-timeout
Bump resume timeout to infinity
Yu Watanabe [Mon, 16 Dec 2019 09:42:25 +0000 (18:42 +0900)]
sd-netlink: add a whitespce between cast operator and variable
Yu Watanabe [Mon, 16 Dec 2019 09:40:36 +0000 (18:40 +0900)]
sd-netlink: make netlink_container_parse() takes size_t for rt_len
And use another unsigned short variable for RTA_OK() macro.
Yu Watanabe [Mon, 16 Dec 2019 15:30:38 +0000 (00:30 +0900)]
network: set AlternativeNamesPolicy= in 99-default.link