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.
(cherry picked from commit
f71502c49fd9fce6328f9364f600578383551dce)
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.
(cherry picked from commit
9e7c8f64cfda101496f56f5546097221e8ad5d6a)
Anita Zhang [Thu, 19 Dec 2019 00:09:49 +0000 (16:09 -0800)]
[man] note which UID ranges will get user journals
Fixes #13926
(cherry picked from commit
a1533ad73f099ed7f2c01a69c23ad700fbf249f3)
Anita Zhang [Thu, 19 Dec 2019 00:08:53 +0000 (16:08 -0800)]
[man] fix URL
(cherry picked from commit
d59fc29bb742e4258dab0606ab1a95cfaa1ea473)
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.
(cherry picked from commit
d909b40fda52d6822a0f7201f9c17818df2bd091)
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.
(cherry picked from commit
de697db05b08464180af4a257f6df88b00d60b9e)
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.
(cherry picked from commit
7a670b1dd981c645064f69faf85b04620aadbafb)
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.
(cherry picked from commit
f27bb6abd3b825034e0dde631ae3047128d2162d)
Lennart Poettering [Tue, 17 Dec 2019 16:30:55 +0000 (17:30 +0100)]
man: we support growing xfs too these days
(cherry picked from commit
76b73ce21c0a4063696bd7c777ae12d99cd8fb69)
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
(cherry picked from commit
601f91bec5646a9c6fbd4f1ec5f1b4ae28d3a770)
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
(cherry picked from commit
1209ef94bd09bdc67a7b51f084910a5982f2f010)
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>
(cherry picked from commit
4afb4a9cc574caccb1bca1de0e4012fd0ac37128)
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2019 15:06:47 +0000 (16:06 +0100)]
cryptsetup-generator: unconfuse writing of the device timeout
The code was using timeout=0 as the default option string. This option string
was ultimately passed to generator_write_timeouts(), which only looks for
comment=systemd.device-timeout= or x-systemd.device-timeout=, i.e. the whole
call path was bogus. Let's rework this: generator_write_timeouts() now writes
any timeouts if configured by the user. create_disk() writes out it's own
timeout, but with lower priority. Since the code path that was calling
timeout=0 was not effective, the only change is that we stop overwriting the
timeout if explicitly configured by the user.
In both code paths, ignore failure to write.
(cherry picked from commit
7cecc563163f539c497ecdf5ab00729fcd8c97c1)
Zbigniew Jędrzejewski-Szmek [Fri, 13 Dec 2019 18:25:50 +0000 (19:25 +0100)]
shared/install: log syntax error for invalid DefaultInstance=
Ideally, we would want to report this over back over dbus. But that is pretty hard,
because the unitfile parsing logic doesn't provide any feedback.
systemd-analyze verify also doesn't notice the issue, because it doesn't look
at the [Install] section at all. Let's print a message in the logs at least.
(cherry picked from commit
e51712963b817995781534975470f1b54171702b)
Zbigniew Jędrzejewski-Szmek [Fri, 13 Dec 2019 17:36:29 +0000 (18:36 +0100)]
shared/install: provide a nicer error message for invalid WantedBy=/Required= values
$ build/systemctl --user cat badinstall
# /home/zbyszek/.config/systemd/user/badinstall.service
[Service]
ExecStart=true
[Install]
WantedBy=asdf
$ build/systemctl --user enable badinstall
Failed to enable unit: "asdf" is not a valid unit name.
Fixes #4209.
(cherry picked from commit
d7ceaf72618aa2466fc4465ce8fcebf0cba68cc1)
Dan Streetman [Tue, 29 Oct 2019 14:31:58 +0000 (10:31 -0400)]
network: set ipv6 mtu after link-up or device mtu change
The kernel resets the ipv6 mtu after NETDEV_UP or NETDEV_CHANGEMTU event,
so we must reset the ipv6 mtu to our configured value after we detect
IFF_UP flag set or after we set the device mtu.
Fixes: #13914.
(cherry picked from commit
d236718c167af46bbf4460fc6b82db8396bd43a5)
Lennart Poettering [Wed, 11 Dec 2019 10:52:00 +0000 (11:52 +0100)]
man: fix typo in net-naming-scheme man page
(cherry picked from commit
955ed5d540fe090687e085d894381f6bf0e57688)
Yu Watanabe [Wed, 11 Dec 2019 11:09:11 +0000 (20:09 +0900)]
network: tc: drop unused element
(cherry picked from commit
1f9dd3bfdf0a44e919f35b0e101fa2b5687952b5)
cheese1 [Wed, 11 Dec 2019 09:33:13 +0000 (10:33 +0100)]
man: fix typos (#14304)
(cherry picked from commit
f32d15b0e4f5a0d2c31b22cb66f690a158ae9dfd)
AJ Bagwell [Tue, 10 Dec 2019 16:27:31 +0000 (16:27 +0000)]
ipv4ll: do not reset conflict counter on restart
Don't reset the conflict counter when trying a new pseudo random
address, so that after trying 10 addresses the londer timeout is used in
accordance with the RFC
Fixes #14299.
(cherry picked from commit
e92b60b20f21111a0c28135c1b5c78fc851a4f15)
Lennart Poettering [Mon, 9 Dec 2019 17:24:41 +0000 (18:24 +0100)]
macro: avoid subtraction overflow in ALIGN_POWER2()
(cherry picked from commit
85c267afa7ce4697a1231649de815b2556b3950f)
Yu Watanabe [Sun, 8 Dec 2019 10:54:49 +0000 (19:54 +0900)]
test-network: add a test case for SendOption=
(cherry picked from commit
0810e6d787bd2675630aba94a08f0da7498b3966)
Yu Watanabe [Sun, 8 Dec 2019 10:54:20 +0000 (19:54 +0900)]
network: fix segfault in parsing SendOption=
Fixes #14283.
(cherry picked from commit
83b56c70e6bcca3359b26197a7463e4c22868df1)
Mike Gilbert [Fri, 6 Dec 2019 19:28:13 +0000 (14:28 -0500)]
seccomp: real syscall numbers are >= 0
Real syscall numbers start at 0. The fake seccomp values seem to be
strictly less than 0.
Fixes:
4df8fe8415eaf4abd5b93c3447452547c6ea9e5f
(cherry picked from commit
fb4b0465abbd96e6d342e5606c61c919c99a82ff)
Yu Watanabe [Sat, 7 Dec 2019 14:20:37 +0000 (23:20 +0900)]
network: fix copy and paste mistake
(cherry picked from commit
6d62ec61b9413a78757c758a940cef13f6ce5063)
Yu Watanabe [Thu, 5 Dec 2019 10:54:29 +0000 (19:54 +0900)]
network: do not drop foreign config if interface is in initialized state
If the interface is in initialized state, no network file is assigned to
the interface. If an interface is not managed by networkd, previously,
the foreign configs of the interface was dropped.
Fixes #14250.
(cherry picked from commit
2c7b826ddf52bd09956815dd8e52329e62ce985a)
Christian Ehrhardt [Wed, 4 Dec 2019 10:44:32 +0000 (11:44 +0100)]
seccomp: mmap test results depend on kernel/libseccomp/glibc
Like with shmat already the actual results of the test
test_memory_deny_write_execute_mmap depend on kernel/libseccomp/glibc
of the platform it is running on.
There are known-good platforms, but on the others do not assert success
(which implies test has actually failed as no seccomp blocking was achieved),
but instead make the check dependent to the success of the mmap call
on that platforms.
Finally the assert of the munmap on that valid pointer should return ==0,
so that is what the check should be for in case of p != MAP_FAILED.
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
(cherry picked from commit
49219b5c2a654ee6639887aa21a78b41da0576f1)
Christian Ehrhardt [Wed, 27 Nov 2019 09:53:50 +0000 (10:53 +0100)]
seccomp: use per arch shmat_syscall
At the beginning of seccomp_memory_deny_write_execute architectures
can set individual filter_syscall, block_syscall, shmat_syscall values.
The former two are then used in the call to add_seccomp_syscall_filter
but shmat_syscall is not.
Right now all shmat_syscall values are the same, so the change is a
no-op, but if ever an architecture is added/modified this would be a
subtle source for a mistake so fix it by using shmat_syscall later.
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
(cherry picked from commit
5ef3ed97e3c718be790b1f38928ca66cb68250a8)
Christian Ehrhardt [Wed, 27 Nov 2019 08:57:55 +0000 (09:57 +0100)]
seccomp: ensure rules are loaded in seccomp_memory_deny_write_execute
If seccomp_memory_deny_write_execute was fatally failing to load rules it
already returned a bad retval.
But if any adding filters failed it skipped the subsequent seccomp_load and
always returned an rc of 0 even if no rule was loaded at all.
Lets fix this requiring to (non fatally-failing) load at least one rule set.
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
(cherry picked from commit
903659e7b242c3cc897e32835f1918d380b24e5f)
Christian Ehrhardt [Wed, 27 Nov 2019 08:52:07 +0000 (09:52 +0100)]
seccomp: fix multiplexed system calls
Since libseccomp 2.4.2 more architectures have shmat handled as multiplexed
call. Those will fail to be added due to seccomp_rule_add_exact failing
on them since they'd need to add multiple rules [1].
See the discussion at https://github.com/seccomp/libseccomp/issues/193
After discussions about the options rejected [2][3] the initial thought of
a fallback to the non '_exact' version of the seccomp rule adding the next
option is to handle those now affected (i386, s390, s390x) the same way as
ppc which ignores and does not block shmat.
[1]: https://github.com/seccomp/libseccomp/issues/193
[2]: https://github.com/systemd/systemd/pull/14167#issuecomment-
559136906
[3]: https://github.com/systemd/systemd/commit/
469830d1
(cherry picked from commit
bed4668d1daeb640c1d55e79e6a1725c81118e39)
Timo Wilken [Thu, 5 Dec 2019 18:36:57 +0000 (18:36 +0000)]
Fix typo (duplicate "or")
This fixes a double "or" in the text of `systemctl --help`.
(cherry picked from commit
ab4fae0c8c3fae4d3d67bf6e1176bbda1dfa208e)
Yu Watanabe [Wed, 4 Dec 2019 10:12:36 +0000 (19:12 +0900)]
network: if /sys is rw, then udev should be around
This switches detect_container() to path_is_read_only_rw("/sys"), as if
systemd-udevd.service is conditionalized with that way.
This also updates the log message.
(cherry picked from commit
bf331d87171b7750d1c72ab0b140a240c0cf32c3)
Yu Watanabe [Mon, 2 Dec 2019 15:51:44 +0000 (00:51 +0900)]
nspawn: do not fail if udev is not running
If /sys is read only filesystem, e.g., nspawn is running in container,
then usually udev is not running. In such a case, let's assume that
the interface is already initialized. Also, this makes nspawn refuse
to use the network interface which is under renaming.
Fixes #14223.
(cherry picked from commit
26208d5b9674079dcf2c9d301f09a7c7b23bfdc3)
Jérémy Rosen [Fri, 29 Nov 2019 19:28:35 +0000 (20:28 +0100)]
Create parent directories when creating systemd-private subdirs
This is needed when systemd is compiled without systemd-tmpfiles
(cherry picked from commit
a652f050a78616efb9e75c5b49c925400c64dded)
Yu Watanabe [Mon, 2 Dec 2019 15:29:44 +0000 (00:29 +0900)]
network: do not return error but return UINT64_MAX if speed meter is disabled
Fixes #14222.
(cherry picked from commit
e813de549b17f2601750c95825d8e0740cbee38c)
Topi Miettinen [Tue, 3 Dec 2019 18:36:37 +0000 (20:36 +0200)]
core: swap priority can be negative
Negative priorities are useful for swap targets which should be only used as
last resort.
(cherry picked from commit
7477451b691d288dad67b4c8ce9e519e9b75770d)
Yu Watanabe [Mon, 2 Dec 2019 15:39:28 +0000 (00:39 +0900)]
networkctl: fix to show BSSID
This fixes an issue caused by a typo in
78404d22cca9cbbc8adb9dd7248da2f2725b1dbc.
(cherry picked from commit
33ebda2e81aa1f8cab5c3e5e4449dfd9ffa1583d)
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2019 11:54:52 +0000 (11:54 +0000)]
systemctl: enhance message about kexec missing kernel
Fixes #7730.
(cherry picked from commit
2fec5854baa6f1262b9cb827bc4a8eb27b376b7d)
Slava Kardakov [Mon, 2 Dec 2019 20:39:59 +0000 (23:39 +0300)]
Fixup typo in NEWS
(cherry picked from commit
1e904320aacb21b1b9563015cb8a7f2014088920)
Zbigniew Jędrzejewski-Szmek [Fri, 29 Nov 2019 16:32:36 +0000 (17:32 +0100)]
Merge pull request #14201 from poettering/v244-final
V244 final
afg [Fri, 29 Nov 2019 09:08:05 +0000 (17:08 +0800)]
nspawn: allow Capability=all in systemd.nspawn [EXEC] section
Just like --capability=all is allowed in the systemd-nspawn
command line.
Lennart Poettering [Fri, 29 Nov 2019 13:35:54 +0000 (14:35 +0100)]
hwdb: run another 'hwdb-update'
Lennart Poettering [Fri, 29 Nov 2019 13:29:03 +0000 (14:29 +0100)]
NEWS: update for final 244
Lennart Poettering [Fri, 29 Nov 2019 11:57:22 +0000 (12:57 +0100)]
README: move logo up, like on brand.systemd.io README
Lennart Poettering [Fri, 29 Nov 2019 10:50:59 +0000 (11:50 +0100)]
README: use more appropriate logo format for README
Lennart Poettering [Fri, 29 Nov 2019 10:51:04 +0000 (11:51 +0100)]
update TODO
Yu Watanabe [Thu, 28 Nov 2019 15:37:44 +0000 (00:37 +0900)]
network: fix double free()
Yu Watanabe [Thu, 28 Nov 2019 18:26:57 +0000 (03:26 +0900)]
man: use literal tag at one more place
Lennart Poettering [Wed, 27 Nov 2019 16:11:44 +0000 (17:11 +0100)]
man: document sd_event_source_set_floating()
Let's make sure we get back to 100% man page documentation coverage of
our sd-event APIs. We are bad enough at the others, let's get these ones
right at least.
Jan Tojnar [Thu, 28 Nov 2019 11:42:01 +0000 (12:42 +0100)]
man: use mkswap@ instead of makeswap@
That is what is linked from systemd.swap(5) and also what the systemd.generator produces.
Lennart Poettering [Mon, 25 Nov 2019 13:08:53 +0000 (14:08 +0100)]
journald: don't ask for the machine ID if we don't need it
Lennart Poettering [Tue, 26 Nov 2019 10:28:33 +0000 (11:28 +0100)]
journalctl: pager_close() calls fflush(stdout) anyway as first thing
Lennart Poettering [Wed, 27 Nov 2019 12:03:26 +0000 (13:03 +0100)]
journald: remove unused field
Lennart Poettering [Mon, 25 Nov 2019 17:44:40 +0000 (18:44 +0100)]
journalctl: return EOPNOTSUPP if pcre is not enabled
Lennart Poettering [Wed, 27 Nov 2019 18:24:44 +0000 (19:24 +0100)]
man: don't claim journalctl would still use signals
It's using the varlink interface these days.
Lennart Poettering [Wed, 27 Nov 2019 20:29:32 +0000 (21:29 +0100)]
man: add reference to journald man page from systemd.journal-fields(7)
We had none so far. Which is weird.
Lennart Poettering [Thu, 28 Nov 2019 09:01:49 +0000 (10:01 +0100)]
man: apparently we lowercased STDOUT/STDERR everywhere else in docs, do so here too
Lennart Poettering [Thu, 28 Nov 2019 13:22:30 +0000 (14:22 +0100)]
Merge pull request #14179 from poettering/help-fixlets
--help fixlets
Lennart Poettering [Thu, 28 Nov 2019 09:36:08 +0000 (10:36 +0100)]
man: drop reference to machined, add one for journald instead
We dropped documentation from sd_journal_open_container() long ago
(since the call is obsolete), hence drop the reference to machined. But
add one in for journald instead.
Lennart Poettering [Thu, 28 Nov 2019 09:51:05 +0000 (10:51 +0100)]
notify: add color to --help
We do that for most tools now, do so here now, too.
Lennart Poettering [Thu, 28 Nov 2019 09:51:31 +0000 (10:51 +0100)]
nspawn: highlight description string in --help text
We do so in most tools now, do so here, too.
Yu Watanabe [Thu, 28 Nov 2019 08:23:30 +0000 (17:23 +0900)]
Merge pull request #14166 from keszybz/transient-unit-settings
Fix docs and some transient unit property passing
Lennart Poettering [Wed, 27 Nov 2019 17:25:52 +0000 (18:25 +0100)]
test-functions: make sure we use the right library path for binaries without RPATH
Meson appears to set the rpath only for some binaries it builds, but not
all. (The rules are not clear to me, but that's besides the point of
this commit).
Let's make sure if our test script operates on a binary that has no
rpath set we fall back preferably to the BUILD_DIR rather than directly
to the host.
This matters if a test uses a libsystemd symbol introduced in a version
newer than the one on the host. In that case "ldd" will not work on the
test binary if rpath is not set. With this fix that behaviour is
corrected, and "ldd" works correctly even in this case.
(Or in other words: before this fix on binaries lacking rpath we'd base
dependency info on the libraries of the host, not the buidl tree, if
they exist in both.)
Kevin Kuehler [Thu, 28 Nov 2019 00:35:15 +0000 (16:35 -0800)]
shared/ask-password-api: modify keyctl break value
We can break if KEYCTL_READ return value is equal to our buffer size.
From keyctl(2):
On a successful return, the return value is always the total size of
the payload data. To determine whether the buffer was of sufficient
size, check to see that the return value is less than or equal to the
value supplied in arg4.
Lennart Poettering [Wed, 27 Nov 2019 13:52:30 +0000 (14:52 +0100)]
systemctl: fix indentation of cgroup tree
Follow-up for
0d588deae21234c9a9d64d9eddbcbe7da5c9a39d.
In that commit the output got moved a 2 chars to the right, hence make
sure to also shift the cgroup tree to the right, so that it gets
properly aligned under the cgroup path again.
Michal Sekletár [Wed, 27 Nov 2019 13:27:58 +0000 (14:27 +0100)]
cryptsetup: reduce the chance that we will be OOM killed
cryptsetup introduced optional locking scheme that should serialize
unlocking keyslots which use memory hard key derivation
function (argon2). Using the serialization should prevent OOM situation
in early boot while unlocking encrypted volumes.
Lennart Poettering [Wed, 27 Nov 2019 17:32:30 +0000 (18:32 +0100)]
Merge pull request #14164 from poettering/exec-start-transient-fix
fix ExecStart= line generation for transient units
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2019 13:53:39 +0000 (14:53 +0100)]
Merge pull request #14145 from poettering/process-bypass
/proc bypass in various process-util.c calls
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2019 12:47:01 +0000 (13:47 +0100)]
doc: update list of transient units
Doing this manually seem to work only so well, but it is indeed hard to generate
automatically. Let's add the stuff that is missing for now.
AddRef= is not a unit file setting, remove it from the list.
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2019 12:42:57 +0000 (13:42 +0100)]
pid1: make TimeoutAbortSec settable for transient units
It was documented to be, but implementation was missing.
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2019 12:13:17 +0000 (13:13 +0100)]
pid1: fix setting of DefaultTimeoutAbortSec
This partially reverts
a07a7324adf504381e9374d1f1a5db6edaa46435.
We have two pieces of information: the value and a boolean.
config_parse_timeout_abort() added in the reverted commit would write
the boolean to the usec_t value, making a mess.
The code is reworked to have just one implementation and two wrappers
which pass two pointers.
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2019 11:33:48 +0000 (12:33 +0100)]
shared/conf-parser: remove unnecessary whitespace skipping
The conf-parser machinery already removed whitespace before and after "=", no
need to repeat this step.
The test is adjusted to pass. It was testing an code path that doesn't happen
normally, no point in doing that.
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2019 10:44:57 +0000 (11:44 +0100)]
shared/bus-unit-util: word wrap
Having all the names squished on the same line makes it hard to see
what settings are missing.
Lennart Poettering [Wed, 27 Nov 2019 11:05:57 +0000 (12:05 +0100)]
core: prefer non-@ syntax for ExecStart=
If the zeroth and first argv[] element on the same we don't need to
generate the "@" syntax for ExecStart= and friends.
Lennart Poettering [Wed, 27 Nov 2019 11:05:38 +0000 (12:05 +0100)]
core: write out correct field name when creating transient service units
Yu Watanabe [Wed, 27 Nov 2019 10:16:12 +0000 (19:16 +0900)]
Merge pull request #14160 from mwilck/fix-shutdown-hang
Fix shutdown hang caused by recent udev change
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2019 10:04:36 +0000 (11:04 +0100)]
doc: drop rhs from transient settings list
I don't know why these particular ones had them.
Paul Menzel [Tue, 26 Nov 2019 21:52:17 +0000 (22:52 +0100)]
man/systemd.link: Add missing verb *be*
Martin Wilck [Tue, 26 Nov 2019 17:39:09 +0000 (18:39 +0100)]
udevd: don't use monitor after manager_exit()
If udevd receives an exit signal, it releases its reference on the udev
monitor in manager_exit(). If at this time a worker is hanging, and if
the event timeout for this worker expires before udevd exits, udevd
crashes in on_sigchld()->udev_monitor_send_device(), because the monitor
has already been freed.
Fix this by testing the validity of manager->monitor in on_sigchld().
Martin Wilck [Tue, 26 Nov 2019 17:36:46 +0000 (18:36 +0100)]
Revert "udevd: fix crash when workers time out after exit is signal caught"
This reverts commit
5db454b8031c58a743cc4ee3d5d1dd01dcff17e8.
See https://github.com/systemd/systemd/issues/14128
Lennart Poettering [Mon, 25 Nov 2019 14:15:38 +0000 (15:15 +0100)]
test-fileio: cast EOF to (char) before comparing with char explicitly
EOF is defined to -1, hence on platforms that have "char" unsigned we
can't compare it as-is, except if we accept an implicit cast. let's make
it an explicit cast, acknowledging the issue.
Fixes: #14118
Yu Watanabe [Tue, 26 Nov 2019 05:01:25 +0000 (14:01 +0900)]
udev: tiny update for log messages
Yu Watanabe [Tue, 26 Nov 2019 03:41:54 +0000 (12:41 +0900)]
network: also assume Table=local for ipv6 route if Type=local, broadcast, anycast or nat (#14148)
Also, if Type=multicast and scope is not set, then assume Scope=link.
Fixes #14122.
Yu Watanabe [Tue, 26 Nov 2019 03:40:30 +0000 (12:40 +0900)]
Merge pull request #14134 from keszybz/variables-and-docs
Documentation and option parsing fixes
Anita Zhang [Mon, 25 Nov 2019 23:56:33 +0000 (15:56 -0800)]
Merge pull request #14151 from mk-fg/fix-timer-dump-syntax-bug
core.timer: fix "systemd-analyze dump" and docs syntax inconsistencies wrt OnTimezoneChange=
Mike Kazantsev [Mon, 25 Nov 2019 23:29:03 +0000 (04:29 +0500)]
core.timer: fix "systemd-analyze dump" and docs syntax inconsistencies wrt OnTimezoneChange=
Anita Zhang [Mon, 25 Nov 2019 20:09:00 +0000 (12:09 -0800)]
Merge pull request #14112 from keszybz/restart-no-log
core/service: downgrade "scheduling restart" message to debug
Lennart Poettering [Mon, 25 Nov 2019 13:59:01 +0000 (14:59 +0100)]
process-util: shortcut get_process_state() for our own process
Lennart Poettering [Mon, 25 Nov 2019 13:58:24 +0000 (14:58 +0100)]
process-util: shortcut get_process_comm() for our own process
Let's bypass /proc if we can.
Lennart Poettering [Mon, 25 Nov 2019 13:55:50 +0000 (14:55 +0100)]
process-util: tweak get_process_cwd() when calling for own process
Let's bypass /proc if we can.
Zbigniew Jędrzejewski-Szmek [Sun, 24 Nov 2019 15:14:52 +0000 (16:14 +0100)]
man: refer to systemd.syntax(7) from systemd.nspawn(5)
systemd.nspawn(5) contained a partial repeat of the stuff that is now in the
dedicated man page. Let's just refer to that.
While at it, do s/searched/searched for/ where appropriate and reword some
sentences for brevity.
Zbigniew Jędrzejewski-Szmek [Sun, 24 Nov 2019 13:19:50 +0000 (14:19 +0100)]
fuzz-unit-file: add new items to the corpus
Zbigniew Jędrzejewski-Szmek [Sun, 24 Nov 2019 13:14:43 +0000 (14:14 +0100)]
pid1: fix the names of AllowedCPUs= and AllowedMemoryNodes=
The original PR was submitted with CPUSetCpus and CPUSetMems, which was later
changed to AllowedCPUs and AllowedMemmoryNodes everywhere (including the parser
used by systemd-run), but not in the parser for unit files.
Since we already released -rc1, let's keep support for the old names. I think
we can remove it in a release or two if anyone remembers to do that.
Fixes #14126. Follow-up for
047f5d63d7a1ab75073f8485e2f9b550d25b0772.
hadess [Mon, 25 Nov 2019 10:59:38 +0000 (11:59 +0100)]
Merge pull request #14129 from jlxawk/hwdb-sensor-jumper-ezpad-go
hwdb: add accel sensor entry for Jumper EZpad Go
Mike Gilbert [Mon, 25 Nov 2019 01:24:44 +0000 (20:24 -0500)]
test-proc-cmdline: disable EFI-dependent tests when EFI is disabled
Fixes: https://github.com/systemd/systemd/issues/14116
Haochen Tong [Wed, 20 Nov 2019 20:47:14 +0000 (21:47 +0100)]
hwdb: add bluetooth entry for Logitech MX Anywhere 2S
Steve Ramage [Mon, 25 Nov 2019 07:31:39 +0000 (23:31 -0800)]
man: restores ConditionVirtualization documentation (#14138)
Resolves #14137. Error introduced in
337b733449924860eb71190e6eff95729909ede6.
Zbigniew Jędrzejewski-Szmek [Sun, 24 Nov 2019 12:59:32 +0000 (13:59 +0100)]
man: document all pager variables for systemctl and systemd
In those two pages, we need to include individual entries with xi:include to
merge the list less-variables.xml with the other entries, which is obviously
error prone. All variables are supported in both tools so add them.
Zbigniew Jędrzejewski-Szmek [Sun, 24 Nov 2019 12:59:22 +0000 (13:59 +0100)]
basic/terminal-util: add support for $NO_COLOR
See inline comments. Fixes #13752.
Yu Watanabe [Sun, 24 Nov 2019 09:29:57 +0000 (18:29 +0900)]
travis: add missing closing quote sign
Fixes #14127.