Susant Sahani [Sat, 4 May 2019 11:40:54 +0000 (17:10 +0530)]
networkd: Allow DHCP4 client to set the number to attempt to reconfigure.
Otherwise current value is 6 and after 6 it will give up.
Yu Watanabe [Sun, 5 May 2019 15:10:22 +0000 (17:10 +0200)]
sd-dhcp: store number of trial in sd_dhcp_client::attempt
Calling 2^n as attempt is misleading.
Zbigniew Jędrzejewski-Szmek [Mon, 6 May 2019 15:17:22 +0000 (17:17 +0200)]
Merge pull request #12440 from poettering/realloc-again
another shot at the malloc_usable_size() thing
Mike Gilbert [Wed, 1 May 2019 18:15:44 +0000 (14:15 -0400)]
basic/mountpoint-util: whitelist 'exfat' in fstype_can_uid_gid
Susant Sahani [Mon, 6 May 2019 14:06:50 +0000 (19:36 +0530)]
networkd: stop clients when networkd shuts down (#12463)
We not stopping the clients when networkd stops. They
should shut down cleanly and then we need to clean the DS.
One of requirements to implement
https://github.com/systemd/systemd/issues/10820.
```
^CBus bus-api-network: changing state RUNNING → CLOSED
DHCP SERVER: UNREF
DHCP SERVER: STOPPED
DHCP CLIENT (0x60943df0): STOPPED
veth-test: DHCP lease lost
veth-test: Removing address 192.168.5.31
NDISC: Stopping IPv6 Router Solicitation client
DHCP CLIENT (0x0): FREE
==24308==
==24308== HEAP SUMMARY:
==24308== in use at exit: 8,192 bytes in 2 blocks
==24308== total heap usage: 4,230 allocs, 4,228 frees, 1,209,732 bytes allocated
==24308==
==24308== LEAK SUMMARY:
==24308== definitely lost: 0 bytes in 0 blocks
==24308== indirectly lost: 0 bytes in 0 blocks
==24308== possibly lost: 0 bytes in 0 blocks
==24308== still reachable: 8,192 bytes in 2 blocks
==24308== suppressed: 0 bytes in 0 blocks
==24308== Rerun with --leak-check=full to see details of leaked memory
==24308==
==24308== For lists of detected and suppressed errors, rerun with: -s
==24308== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==24308== could not unlink /tmp/vgdb-pipe-from-vgdb-to-24308-by-sus-on-Zeus
==24308== could not unlink /tmp/vgdb-pipe-to-vgdb-from-24308-by-sus-on-Zeus
==24308== could not unlink /tmp/vgdb-pipe-shared-mem-vgdb-24308-by-sus-on-Zeus
```
pEJipE [Mon, 6 May 2019 13:55:22 +0000 (15:55 +0200)]
hwdb: update the Chuwi HI13 pattern (#12469)
Correct the searching pattern for Chuwi Hi13. Follow-up for
c70b51a7b98c3538aba7bbfee455b850b0aa714e.
Rafael Fontenelle [Sat, 4 May 2019 14:40:04 +0000 (11:40 -0300)]
Update Brazilian Portuguese translation
Daniele Medri [Mon, 6 May 2019 13:27:21 +0000 (15:27 +0200)]
Systemd Catalog, Italian translation: minor updates (#12483)
mpe85 [Mon, 6 May 2019 13:18:26 +0000 (15:18 +0200)]
hwdb: add Medion Akoya E3222 MD62450 to 60-sensor.hwdb (#12485)
Frantisek Sumsal [Mon, 6 May 2019 08:48:12 +0000 (10:48 +0200)]
test: return a non-zero return code when 'nobody' user doesn't exist
Lookup of a non-existing user using getpwnam() is not considered
an error, thus the `errno` is not set appropriately, causing
unexpected fails on systems, where 'nobody' user doesn't exist by
default
Yu Watanabe [Sat, 4 May 2019 14:52:07 +0000 (16:52 +0200)]
Merge pull request #12429 from ssahani/link-local-fallback
networkd: Option to use LinkLocalAddressing only when DHCP fails
Yu Watanabe [Fri, 3 May 2019 23:29:45 +0000 (01:29 +0200)]
test-network: add a test for LinkLocalAddressing=fallback
Yu Watanabe [Sat, 4 May 2019 09:25:05 +0000 (11:25 +0200)]
network: warn about Network.IPv4LL= is deprecated
Yu Watanabe [Sat, 4 May 2019 09:16:12 +0000 (11:16 +0200)]
network: disable fallback IPv4ll address assignment when DHCPv4 is disabled
Yu Watanabe [Fri, 3 May 2019 04:46:07 +0000 (06:46 +0200)]
network: use DEFINE_STRING_TABLE_LOOKUP() macro for AddressFamilyBoolean
Yu Watanabe [Sat, 4 May 2019 09:00:33 +0000 (11:00 +0200)]
network: make link_check_ready() handle LinkLocalAddressing=fallback
Yu Watanabe [Fri, 3 May 2019 23:36:51 +0000 (01:36 +0200)]
network: rewrite condition about DHCP in link_check_ready()
Susant Sahani [Wed, 1 May 2019 06:43:23 +0000 (12:13 +0530)]
networkd: Option to use LinkLocalAddressing only when DHCP fails
When LinkLocalAddressing=fallback or LinkLocalAddressing=ipv4-fallback
then IPv4LL will be started only when DHCP fails.
Closes #9648.
Chris Down [Sat, 4 May 2019 03:01:28 +0000 (23:01 -0400)]
Merge pull request #12466 from yuwata/network-fix-issue-12452
network: fix assertion when link get carrier
Chris Down [Fri, 3 May 2019 13:50:47 +0000 (09:50 -0400)]
Merge pull request #12441 from ssahani/bridge-fdb
networkd: add support for bridge fdb destination address.
Wieland Hoffmann [Thu, 2 May 2019 18:10:08 +0000 (20:10 +0200)]
fstab-generator: Prevent double free of reused FILE*
When the .automount unit file already existed for any reason in the
`normal-dir` passed to `systemd-fstab-generator`, but the normal .mount unit
file did not, `f` was closed (but _not_ set to NULL). The call to
`generator_open_unit_file(..., automount_name, &f)` then failed because the
.mount unit file already existed. Now `f` did not point to an open FILE and the
later cleanup from the `_cleanup_fclose_` attribute failed with a double free.
Reset `f` to NULL before reusing it.
Yu Watanabe [Fri, 3 May 2019 04:08:55 +0000 (06:08 +0200)]
test-network: add tests for BridgeFDB.Destination=
Susant Sahani [Tue, 30 Apr 2019 09:23:39 +0000 (14:53 +0530)]
networkd: Add support to configure destination address for bridge FDB
Closes #5145.
Example conf:
```
[Match]
Name=vxlan1309
[BridgeFDB]
MACAddress=00:00:00:00:00:00
Destination=10.0.0.2
[BridgeFDB]
MACAddress=00:00:00:00:00:00
Destination=10.0.0.4
[BridgeFDB]
MACAddress=00:00:00:00:00:00
Destination=10.0.0.5
```
Yu Watanabe [Thu, 2 May 2019 23:13:10 +0000 (01:13 +0200)]
network: fix assertion when link get carrier
This fixes a bug introduced by
bd08ce56156751d58584a44e766ef61340cdae2d.
When link is in LINK_STATE_INITIALIZED, `Link::network` may not be
set yet.
Fixes #12452.
Lennart Poettering [Tue, 30 Apr 2019 08:17:19 +0000 (10:17 +0200)]
test-alloc-util: let's test a few more things around GREEDY_REALLOC()
Lennart Poettering [Tue, 30 Apr 2019 08:13:57 +0000 (10:13 +0200)]
alloc-util: reintroduce malloc_usable_size() into greedy_realloc()
This is another attempt at
d4b604baeadbb2498e4f2c3e260260eed210f5d6 and #12438
Instead of blindly using the extra allocated space, let's do so only
after telling libc about it, via a second realloc(). The second
realloc() should be quick, since it never has to copy memory around.
Zbigniew Jędrzejewski-Szmek [Tue, 30 Apr 2019 06:37:07 +0000 (08:37 +0200)]
udev/cdrom_id: drop unneeded parentheses
Lennart Poettering [Tue, 30 Apr 2019 17:44:17 +0000 (19:44 +0200)]
Merge pull request #12218 from keszybz/use-libmount-more
Use libmount more
Franck Bui [Tue, 30 Apr 2019 14:10:13 +0000 (16:10 +0200)]
meson: make source files including nspawn-settings.h depend on libseccomp
Since nspawn-settings.h includes seccomp.h, any file that includes
nspawn-settings.h should depend on libseccomp so the correct header path where
seccomp.h lives is added to the header search paths.
It's especially important for distros such as openSUSE where seccomp.h is not
shipped in /usr/include but /usr/include/libseccomp.
This patch is similar to
8238423095ca54c48d9408a5da13e0325b31e6f6.
Yu Watanabe [Tue, 30 Apr 2019 16:45:29 +0000 (18:45 +0200)]
udev: drop unnecessary brackets
Follow-up for
ed0cb346821972ec2c505ee11ed3d383aba6256e.
Lennart Poettering [Tue, 30 Apr 2019 09:37:19 +0000 (11:37 +0200)]
Merge pull request #12420 from mrc0mmand/coccinelle-tweaks
Coccinelle improvements
Lennart Poettering [Tue, 30 Apr 2019 09:36:55 +0000 (11:36 +0200)]
Merge pull request #12439 from poettering/simplify-umask-util
simplify RUN_WITH_UMASK()
Lennart Poettering [Tue, 30 Apr 2019 07:53:09 +0000 (09:53 +0200)]
tests: add test for umask-util.h
Lennart Poettering [Tue, 30 Apr 2019 07:52:35 +0000 (09:52 +0200)]
umask-util: simplify RUN_WITH_UMASK()
Why have a struct to store the iteration bit if we actually have plenty
place in mode_t?
Frantisek Sumsal [Mon, 29 Apr 2019 14:12:41 +0000 (16:12 +0200)]
coccinelle: further restrict certain transformations
Some transformations generate results we don't want to keep, so
let's disable such transformations for specific files.
Also, disable const-strlen.cocci everywhere, as the STRLEN macro has a
pretty limited scope, so the transformation generates false positives in
most cases.
Frantisek Sumsal [Mon, 29 Apr 2019 11:15:27 +0000 (13:15 +0200)]
coccinelle: exclude JsonVariant* from the IN_SET transformation
JsonVariant* doesn't work with the current IN_SET implementation, so
let's exclude it from the transformation altogether
Frantisek Sumsal [Mon, 29 Apr 2019 16:22:22 +0000 (18:22 +0200)]
tree-wide: code improvements suggested by Coccinelle
Susant Sahani [Tue, 30 Apr 2019 07:36:10 +0000 (13:06 +0530)]
netword: fdb fix coding style
Zbigniew Jędrzejewski-Szmek [Tue, 30 Apr 2019 06:23:13 +0000 (08:23 +0200)]
Merge pull request #12434 from poettering/rm-rf-children-take-ptr
minor rm_rf_children() modernizations
Aaron Barany [Mon, 29 Apr 2019 22:00:30 +0000 (15:00 -0700)]
alloc-util: don't use malloc_usable_size() to determine allocated size
This reverts commit
d4b604baeadbb2498e4f2c3e260260eed210f5d6.
When realloc() is called, the extra memory between the originally
requested size and the end of malloc_usable_size() isn't copied. (at
least with the version of glibc that currently ships on Arch Linux)
As a result, some elements get lost and use uninitialized memory, most
commonly 0, and can lead to crashes.
fixes #12384
Lennart Poettering [Mon, 29 Apr 2019 19:34:42 +0000 (21:34 +0200)]
Merge pull request #12428 from jwrdegoede/hwdb-logitech-kbds
Hwdb: Add key-mappings for various wireless Logitech keyboards
Yuri Chornoivan [Mon, 29 Apr 2019 16:06:16 +0000 (19:06 +0300)]
Update Ukrainian translation
Lennart Poettering [Mon, 29 Apr 2019 17:07:24 +0000 (19:07 +0200)]
Merge pull request #12414 from keszybz/detect-podman
Detect podman as separate container type
Susant Sahani [Mon, 29 Apr 2019 05:02:34 +0000 (10:32 +0530)]
networkd: Add back static routes after DHCPv4 lease expires.
1. When the DHCPv4 lease expires kernel removes the route. So add it back
when we gain lease again.
Closes https://github.com/systemd/systemd/issues/12426
2. When UseRoutes=false do not remove router
Hans de Goede [Mon, 22 Apr 2019 07:15:40 +0000 (09:15 +0200)]
hwdb: Fix F12 mapping on the Logitech Internet Navigator
Many Logitech keyboards have the following special functions on F9-F12:
F9: file-browser F10: document-browser F11: image-browser F12:
music-browser. These should be bound to:
#define KEY_FILE 144 /* AL Local Machine Browser */
#define KEY_DOCUMENTS 235
#define KEY_IMAGES 0x1ba /* AL Image Browser */
#define KEY_AUDIO 0x188 /* AL Audio Browser */
This commit fixes the wrong binding of F12 to KEY_SOUND (which
translates to XF86AudioPreset) and removes the ?? comments from
both F11 and F12.
Hans de Goede [Sun, 28 Apr 2019 19:21:00 +0000 (21:21 +0200)]
hwdb: Add key mappings for Logitech MX5500 keyboard
Add support for various custom key-codes emitted by the Logitech MX5500
keyboard, both when attached through its Bluetooth-receiver in USB-HID
proxy mode; and when connected as a Bluetooth device.
Hans de Goede [Tue, 2 Apr 2019 15:23:12 +0000 (17:23 +0200)]
hwdb: Add key mappings for Logitech MX5000 keyboard
Add support for various custom key-codes emitted by the Logitech MX5000
keyboard, both when attached through its Bluetooth-receiver in USB-HID
proxy mode; and when connected as a Bluetooth device.
Hans de Goede [Fri, 5 Apr 2019 12:47:04 +0000 (14:47 +0200)]
hwdb: Add key mappings for Logitech 27 MHz S520 keyboard
The upcoming kernel enumerates Logitech 27 MHz wireless keyboards and
mice by there wireless-PID, rather then using the PID of the receiver
which is the same for all 27MHz Logitech devices.
This allows us to add per model keymappings for the special keys on these
keyboards. This commit adds such mappings for the S520 keyboard
(modelnumber Y-RBA97).
Hans de Goede [Fri, 5 Apr 2019 14:18:03 +0000 (16:18 +0200)]
hwdb: Add key mappings for Logitech 27 MHz EX100 keyboard
The upcoming kernel enumerates Logitech 27 MHz wireless keyboards and
mice by there wireless-PID, rather then using the PID of the receiver
which is the same for all 27MHz Logitech devices.
This allows us to add per model keymappings for the special keys on these
keyboards. This commit adds such mappings for the EX100 keyboard
(modelnumber Y-RBH94).
Hans de Goede [Thu, 4 Apr 2019 22:40:40 +0000 (00:40 +0200)]
hwdb: Add key mappings for Logitech 27 MHz MX3200 keyboard
The upcoming kernel enumerates Logitech 27 MHz wireless keyboards and
mice by there wireless-PID, rather then using the PID of the receiver
which is the same for all 27MHz Logitech devices.
This allows us to add per model keymappings for the special keys on these
keyboards. This commit adds such mappings for the MX3200 keyboard
(modelnumber Y-RAV80).
Hans de Goede [Wed, 3 Apr 2019 20:52:06 +0000 (22:52 +0200)]
hwdb: Add key mappings for Logitech 27 MHz MX3000 keyboard
The upcoming kernel enumerates Logitech 27 MHz wireless keyboards and
mice by there wireless-PID, rather then using the PID of the receiver
which is the same for all 27MHz Logitech devices.
This allows us to add per model keymappings for the special keys on these
keyboards. This commit adds such mappings for the MX3000 keyboard
(modelnumber Y-RAM74).
Hans de Goede [Fri, 29 Mar 2019 22:42:56 +0000 (23:42 +0100)]
hwdb: Add key mappings for Logitech 27 MHz "Cordless Rechargeable Desktop" keyboard
The upcoming kernel enumerates Logitech 27 MHz wireless keyboards and
mice by there wireless-PID, rather then using the PID of the receiver
which is the same for all 27MHz Logitech devices.
This allows us to add per model keymappings for the special keys on these
keyboards. This commit adds such mappings for the "Logitech Rechargeable
Desktop" keyboard (modelnumber Y-RK49).
Hans de Goede [Fri, 22 Mar 2019 21:10:32 +0000 (22:10 +0100)]
hwdb: Add key mappings for Logitech 27 MHz "Cordless Access Keyboard"
The upcoming kernel enumerates Logitech 27 MHz wireless keyboards and
mice by there wireless-PID, rather then using the PID of the receiver
which is the same for all 27MHz Logitech devices.
This allows us to add per model keymappings for the special keys on these
keyboards. This commit adds such mappings for the "Logitech Cordless
Access Keyboard" (modelnumber Y-RH35).
Hans de Goede [Thu, 4 Apr 2019 20:39:24 +0000 (22:39 +0200)]
hwdb: Add generic key mapping for Logitech 27 MHz keyboards
The upcoming kernel enumerates Logitech 27 MHz wireless keyboards and
mice by there wireless-PID, rather then using the PID of the receiver
which is the same for all 27MHz Logitech devices.
This will allow us to add per model keymappings for the special keys on
these keyboards, which may differ per model.
This commit adds a default / fallback mapping, assigning the most common
meaning of the custom Logitech c10XX keycodes.
Lennart Poettering [Mon, 29 Apr 2019 14:10:51 +0000 (16:10 +0200)]
units: drop reference to sushell man page
sushell was a Fedoraism, and has been removed since. Hence our upstream
unit files shouldn't reference it either.
Ben Boeckel [Sat, 27 Apr 2019 00:22:40 +0000 (20:22 -0400)]
codespell: fix spelling errors
Lennart Poettering [Mon, 29 Apr 2019 14:21:01 +0000 (16:21 +0200)]
rm-rf: simplify rm_rf_children() a bit by using _cleanup_close_
Lennart Poettering [Mon, 29 Apr 2019 13:45:19 +0000 (15:45 +0200)]
switch-root: modernize rm_rf_children() invocation a bit
Frantisek Sumsal [Sun, 28 Apr 2019 18:43:00 +0000 (20:43 +0200)]
coccinelle: exclude certain paths from the transformations
There's no point in running these transformation for certain files,
mainly anything from src/boot/efi and src/shared/linux, as this code
doesn't have access to our internal utility functions
Frantisek Sumsal [Sun, 28 Apr 2019 15:13:29 +0000 (17:13 +0200)]
coccinelle: ignore function transformations causing recursion
For example, following transformation:
- isempty(s) ? NULL : s
+ empty_to_null(s)
would get applied to the empty_to_null function itself as well,
causing an infinite recursion, like:
--- src/basic/string-util.h
+++ /tmp/cocci-output-307-9f76e6-string-util.h
@@ -50,11 +50,11 @@ static inline bool isempty(const char *p
}
static inline const char *empty_to_null(const char *p) {
- return isempty(p) ? NULL : p;
+ return empty_to_null(p);
}
Let's avoid that by checking the current match position
Zbigniew Jędrzejewski-Szmek [Fri, 26 Apr 2019 12:13:53 +0000 (14:13 +0200)]
basic/virt: treat "podman" as separate container type
We would detect podman as container-other. Let's assign a name to it.
Inspired by https://github.com/containers/libpod/issues/2996.
Zbigniew Jędrzejewski-Szmek [Fri, 26 Apr 2019 11:37:31 +0000 (13:37 +0200)]
basic/virt: try the /proc/1/sched hack also for PID1
If a container manager does not set $container, we could end up
in a strange situation when detect-virt returns container-other when
run as non-pid-1 and none when run as pid-1.
Frantisek Sumsal [Sun, 28 Apr 2019 13:03:47 +0000 (15:03 +0200)]
coccinelle: ignore macro transformations in the macros themselves
For example, the following transformation:
- sizeof(s)-1
+ STRLEN(s)
would replace sizeof by STRLEN even in the STRLEN macro definition
itself, which generates following nonsensical patch:
--- src/basic/macro.h
+++ /tmp/cocci-output-8753-b50773-macro.h
@@ -182,7 +182,7 @@ static inline unsigned long ALIGN_POWER2
* Contrary to strlen(), this is a constant expression.
* @x: a string literal.
*/
-#define STRLEN(x) (sizeof(""x"") - 1)
+#define STRLEN(x) (STRLEN("" x ""))
/*
* container_of - cast a member of a structure out to the containing structure
Let's exclude the macro itself from the transformation to avoid this
Yu Watanabe [Sun, 28 Apr 2019 07:06:13 +0000 (09:06 +0200)]
network: drop invalid assertion
The link may not have corresponding .network file.
Note that in that case, link_ipv4ll_enabled() and link_dhcp4_enabled()
returns false. So, it is safe to drop the assertion.
Fixes #12422.
Lennart Poettering [Sun, 28 Apr 2019 15:43:54 +0000 (17:43 +0200)]
Merge pull request #12322 from ljmf00/hwdb-accel-location-patch
Add support for ACCEL_LOCATION udev property to deal with 2 sensors
Frantisek Sumsal [Sun, 28 Apr 2019 12:32:19 +0000 (14:32 +0200)]
tree-wide: drop !! casts to booleans
Done by coccinelle/bool-cast.cocci
Frantisek Sumsal [Sun, 28 Apr 2019 12:28:49 +0000 (14:28 +0200)]
tree-wide: replace explicit NULL checks with their shorter variants
Done by coccinelle/equals-null.cocci
Luís Ferreira [Sat, 13 Apr 2019 18:12:51 +0000 (19:12 +0100)]
hwdb: add ACCEL_LOCATION property to parse_hwdb.py
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
Luís Ferreira [Sat, 13 Apr 2019 18:12:45 +0000 (19:12 +0100)]
hwdb: add ACCEL_LOCATION to the allowed properties
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
Frantisek Sumsal [Sat, 27 Apr 2019 10:26:22 +0000 (12:26 +0200)]
coccinelle: avoid matching 'errno' as a file descriptor
The `coccinelle/take-fd.cocci` transformation file attempts to rewrite
r = fd;
fd = -1;
to
r = TAKE_FD(fd);
Unfortunately, using `identifier` or `idexpression` as a metavariable
type in this case wouldn't match more complex location descriptions,
like:
x->fd = fd
fd = -1;
Using 'expression' metavariable type generates false positives,
as you can't specify scope of such expression. The only real example
from the current codebase is the global 'errno' variable, which results
in following patch generated by `spatch`:
--- src/basic/errno-util.h
+++ /tmp/cocci-output-28263-971baa-errno-util.h
@@ -15,8 +15,7 @@ static inline void _reset_errno_(int *sa
#define UNPROTECT_ERRNO \
do { \
- errno = _saved_errno_; \
- _saved_errno_ = -1; \
+ errno = TAKE_FD(_saved_errno_); \
} while (false)
static inline int negative_errno(void) {
Let's explicitly state that the matched expression should not equal
'errno' to avoid this. It's not particularly nice, but it should be
enough, at least for now.
Frantisek Sumsal [Fri, 26 Apr 2019 19:42:16 +0000 (21:42 +0200)]
coccinelle: add explicit statement isomorphisms
Coccinelle needs a custom isomorphism file with rules (isomorphisms) how
to correctly rewrite conditions with explicit NULL checks (i.e.
if (ptr == NULL)) to their shorter form (i.e. if (!ptr)). Coccinelle
already contains such isomorphisms in its default .iso file, however,
they're in the opposite direction, which results in useless output from
coccinelle/equals-null.cocci.
With this fix, `spatch` should no longer report patches like:
@@ -628,8 +628,9 @@ static int path_deserialize_item(Unit *u
f = path_result_from_string(value);
if (f < 0)
log_unit_debug(u, "Failed to parse result value: %s", value);
- else if (f != PATH_SUCCESS)
- p->result = f;
+ else {if (f != PATH_SUCCESS)
+ p->result = f;
+ }
} else
log_unit_debug(u, "Unknown serialization key: %s", key);
Lennart Poettering [Fri, 26 Apr 2019 21:43:27 +0000 (23:43 +0200)]
Merge pull request #12407 from keszybz/two-unrelated-cleanups
Two unrelated cleanups
Ben Boeckel [Fri, 26 Apr 2019 19:15:09 +0000 (15:15 -0400)]
nspawn-expose-ports: fix a typo in error message
Yu Watanabe [Wed, 24 Apr 2019 19:52:13 +0000 (21:52 +0200)]
resolve: use bridge or bonding interfaces in degraded-carrier state
Fixes #12285.
Franck Bui [Thu, 25 Apr 2019 05:52:16 +0000 (07:52 +0200)]
sd-bus: bump message queue size again
Simliarly to issue #4068, the current limit turns out to be too small for a
big storage setup that uses many small disks. Let's bump it further.
Franck Bui [Wed, 24 Apr 2019 09:26:42 +0000 (11:26 +0200)]
udevd: notify when max number value of children is reached only once per batch of events
When booting with "udev.log-priority=debug" for example, the output might be
spammed with messages like this:
systemd-udevd[23545]: maximum number (248) of children reached
systemd-udevd[23545]: maximum number (248) of children reached
systemd-udevd[23545]: maximum number (248) of children reached
systemd-udevd[23545]: maximum number (248) of children reached
systemd-udevd[23545]: maximum number (248) of children reached
systemd-udevd[23545]: maximum number (248) of children reached
systemd-udevd[23545]: maximum number (248) of children reached
While the message itself is useful, printing it per batch of events should be
enough.
Zbigniew Jędrzejewski-Szmek [Fri, 26 Apr 2019 06:48:28 +0000 (08:48 +0200)]
Merge pull request #12394 from poettering/oncalendar-tweak
systemd-run --on-calendar= follow-up
Lennart Poettering [Tue, 16 Apr 2019 16:44:12 +0000 (18:44 +0200)]
chown-recursive: also check mode before we bypass
Lennart Poettering [Tue, 8 Jan 2019 17:34:38 +0000 (18:34 +0100)]
json: let's not accept embedded NUL bytes when allocating JSON strings
Let's add an additional paranoia check, and not accept embedded NUL
bytes in strings, just in case.
Lennart Poettering [Tue, 23 Apr 2019 13:26:09 +0000 (15:26 +0200)]
json: make log message more focussed
Frantisek Sumsal [Thu, 25 Apr 2019 18:07:03 +0000 (20:07 +0200)]
bash-completion: accept files for --bind/--bind-ro options
Frantisek Sumsal [Thu, 25 Apr 2019 17:16:06 +0000 (19:16 +0200)]
bash-completion: process only non-template units for systemctl isolate
Frantisek Sumsal [Thu, 25 Apr 2019 17:37:54 +0000 (19:37 +0200)]
bash-completion: don't sort syslog priorities
By default, the available completions are sorted alphabetically, which
is counterproductive in case of syslog priorities. Override the default
behavior using the `nosort` option
Jérémy Rosen [Thu, 25 Apr 2019 22:49:57 +0000 (00:49 +0200)]
Document /etc/initrd-release
When systemd is started, it detects initrd by checking for that file
The usage of that file is not documented anywhere, so mention it early
in the most relevant man-page I could find.
Evgeny Vereshchagin [Thu, 25 Apr 2019 19:17:59 +0000 (22:17 +0300)]
Revert "Revert "README: remove Coverity Scan badge""
This reverts commit
93e4163e912b6895e61c43452a629f30a28eb70c.
Lennart Poettering [Thu, 25 Apr 2019 11:22:55 +0000 (13:22 +0200)]
run: when we determine a timer cannot elapse anymore, really just warn, nothing else
When we determine that a calendar expression cannot elapse anymore,
print a warning but proceed regardless like we normally would.
Quite possibly a remote system has a different understanding of time
(timezone, system clock) than we have, hence we really shouldn't change
behaviour here client side, but log at best, and then leave the decision
what to do to the server side.
Follow-up for #12299
Lennart Poettering [Thu, 25 Apr 2019 11:21:54 +0000 (13:21 +0200)]
calendarspec: make return time value of calendar_spec_next_usec() optional
If noone is interested, there's no reason to return it.
(Also document the ENOENT error code in a comment)
Zbigniew Jędrzejewski-Szmek [Thu, 25 Apr 2019 09:59:37 +0000 (11:59 +0200)]
Merge pull request #12074 from poettering/io-acct
expose IO stats on the bus and in "systemctl status" and "systemd-run --wait"
Frantisek Sumsal [Fri, 12 Apr 2019 18:57:51 +0000 (20:57 +0200)]
run: check if the specified calendar event is not in the past
Check if calendar event specification passed by --on-calendar runs in
some time in the future. If not, execute the given command immediately
Zbigniew Jędrzejewski-Szmek [Thu, 25 Apr 2019 08:41:59 +0000 (10:41 +0200)]
network: drop "return 1" when the return value is ignored by all callers
The reader is tricked into thinking that this has some meaning...
Zbigniew Jędrzejewski-Szmek [Wed, 24 Apr 2019 08:54:44 +0000 (10:54 +0200)]
core: adjust unit_get_ancestor_memory_{low,min}() to work with units which don't have a CGroupContext
Coverity doesn't like the fact that unit_get_cgroup_context() returns NULL for
unit types that don't have a CGroupContext. We don't expect to call those
functions with such unit types, so this isn't an immediate problem, but we can
make things more robust by handling this case.
CID #1400683, #1400684.
Zbigniew Jędrzejewski-Szmek [Thu, 25 Apr 2019 09:06:45 +0000 (11:06 +0200)]
Merge pull request #12332 from cdown/default_min
cgroup: Add support for propagation of memory.min
Dave Ross [Sat, 20 Apr 2019 20:27:22 +0000 (16:27 -0400)]
hwdb: add axis range corrections for the Dell Latitude e7250
Based on touchpad-edge-detector and dimensions confirmed with the owner's manual (https://content.etilize.com/User-Manual/
1037738079.pdf)
Zbigniew Jędrzejewski-Szmek [Thu, 25 Apr 2019 08:55:53 +0000 (10:55 +0200)]
Merge pull request #12382 from yuwata/wireguard-12377
network: fix ListenPort= in [WireGuard] section
Zbigniew Jędrzejewski-Szmek [Thu, 25 Apr 2019 08:54:28 +0000 (10:54 +0200)]
Merge pull request #12316 from yuwata/network-prevent-multiple-initialization-12315
network: prevent interfaces to be initialized multiple times
Yu Watanabe [Mon, 15 Apr 2019 07:38:45 +0000 (16:38 +0900)]
network: fix ref/unref logic for Link object
- bridge or bonding master takes a reference of slave links.
- drop link from bridge or bonding master's slave list when slave link
is removed.
- change type of Link::slaves to Set*,
Fixes #12315.
Yu Watanabe [Mon, 15 Apr 2019 08:34:00 +0000 (17:34 +0900)]
network: prevent interfaces to be initialized multiple times
When a uevent is received during the relevant interface is in
LINK_STATE_PENDING, then the interface may be initialized twice.
To prevent that, this introduces LINK_STATE_INITIALIZED.
Yu Watanabe [Sat, 20 Apr 2019 12:40:24 +0000 (14:40 +0200)]
udev,network: warn when .link or .network file has no [Match] section
Closes #12098.
Yu Watanabe [Wed, 24 Apr 2019 22:39:04 +0000 (00:39 +0200)]
network: fix ListenPort= in [WireGuard] section
This fixes a bug introduced by
f1368a333e5e08575f0b45dfe41e936b106a8627.
Fixes #12377.
Yu Watanabe [Wed, 24 Apr 2019 22:29:20 +0000 (00:29 +0200)]
test-network: fix invalid assertions