Lennart Poettering [Wed, 15 Jul 2020 15:44:03 +0000 (17:44 +0200)]
load-fragment: downgrade log messages we ignore to LOG_WARNING
We typically don't log above LOG_WARNING about issues we then go on to
ignore. Do so here, too
Lennart Poettering [Wed, 15 Jul 2020 15:43:10 +0000 (17:43 +0200)]
mountpoint-util: fix error handling
Lennart Poettering [Wed, 15 Jul 2020 16:49:08 +0000 (18:49 +0200)]
core: fix invalid assertion
We miscounted here, and would hit an assert once too early.
Christian Göttsche [Wed, 15 Jul 2020 15:09:11 +0000 (17:09 +0200)]
network: fix typo
Lennart Poettering [Wed, 15 Jul 2020 15:41:34 +0000 (17:41 +0200)]
update TODO
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jul 2020 13:45:38 +0000 (15:45 +0200)]
Merge pull request #16396 from yuwata/network-configured-flag
network: about xxx_configured flags
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jul 2020 11:40:22 +0000 (13:40 +0200)]
Merge pull request #16468 from keszybz/two-unrelated-patches
Two unrelated patches
Yu Watanabe [Tue, 14 Jul 2020 18:40:26 +0000 (03:40 +0900)]
network: drop doubled white space
Yu Watanabe [Tue, 14 Jul 2020 17:00:06 +0000 (02:00 +0900)]
network: free address when it is removed
Yu Watanabe [Tue, 14 Jul 2020 16:30:09 +0000 (01:30 +0900)]
network: dhcp4: do not assign new address before old one is not removed
If DHCP4 client lost a lease, and then soon acquire new lease, then
the removal of the old address may not be completed. If that happens,
and the new and old addresses are the same, then the new address will be
considered as a foreign address. Such a situation can occur when the
DHCP4 server is restarted.
This makes networkd wait for the removal of the old address when a new
lease is acquired.
This also makes the link in configuring state when renewing address.
Yu Watanabe [Tue, 14 Jul 2020 03:48:02 +0000 (12:48 +0900)]
network: do not call link_check_ready() in link_request_set_routing_policy_rule()
It will be called in link_request_set_nexthop() or serveral handlers().
Yu Watanabe [Sun, 12 Jul 2020 18:12:11 +0000 (03:12 +0900)]
network: make link_request_set_nexthop() called from link_request_set_routes() or route_handler()
Then we can drop static_routes_ready() flag.
Yu Watanabe [Sun, 12 Jul 2020 05:57:45 +0000 (14:57 +0900)]
network: do not make link in configured state when no address is assigned
When DHCP6 and RA are enabled, and RA does not provide any addresses,
then link may become configured state even if no address is assigned,
due to the time-lag between RA completion and DHCP reply.
This makes if DHCP is explicitly enabled, then link must have at least
one valid address to be in the configured state.
Yu Watanabe [Sun, 12 Jul 2020 04:55:44 +0000 (13:55 +0900)]
network: ndisc: split ndisc_configured flag into for addresses and routes
Yu Watanabe [Sun, 12 Jul 2020 04:26:53 +0000 (13:26 +0900)]
network: ndisc: do not ignore remaining addresses
Follow-up for
c24c83dc67a63c88b0a537f4fa7f605b1fcbac39.
Yu Watanabe [Sun, 12 Jul 2020 00:28:53 +0000 (09:28 +0900)]
test-network: wait for addresses are not in tentative state
Yu Watanabe [Sat, 11 Jul 2020 23:23:19 +0000 (08:23 +0900)]
network: add debugging log why link is not in configured state yet
Yu Watanabe [Sat, 11 Jul 2020 21:26:34 +0000 (06:26 +0900)]
test-network: check assigned address is not tentative state
Yu Watanabe [Wed, 8 Jul 2020 06:56:47 +0000 (15:56 +0900)]
test-network: set IPv6AcceptRA=no if no dynamic addresses are not required
Yu Watanabe [Fri, 10 Jul 2020 15:36:38 +0000 (00:36 +0900)]
network: make link_request_set_nexthop() static
Yu Watanabe [Sat, 11 Jul 2020 20:08:57 +0000 (05:08 +0900)]
network: add a debugging log
Yu Watanabe [Sat, 11 Jul 2020 20:13:43 +0000 (05:13 +0900)]
network: include error code in the log message
Yu Watanabe [Wed, 8 Jul 2020 02:19:13 +0000 (11:19 +0900)]
network: set dhcp6_xxx_configured flag after routes/addresses are assigned
Lennart Poettering [Tue, 14 Jul 2020 09:25:18 +0000 (11:25 +0200)]
logs: when embedding catalog info in log output use a dash of color and unicode
let's separate things out a bit, to make it easier to discern log output
and catalog data.
catalog data is now colored green (which is a color we don't use for log
data currently), and prefixed with a block shade.
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jul 2020 07:24:49 +0000 (09:24 +0200)]
Merge pull request #16398 from poettering/machined-varlink
machined: move UID/GID resolution logic to userdb, i.e. from nss-mymachines to nss-systemd
Filipe Brandenburger [Fri, 10 Jul 2020 21:24:00 +0000 (14:24 -0700)]
timer: Adjust calendar timers based on monotonic timer instead of realtime
When the RTC time at boot is off in the future by a few days, OnCalendar=
timers will be scheduled based on the time at boot. But if the time has been
adjusted since boot, the timers will end up scheduled way in the future, which
may cause them not to fire as shortly or often as expected.
Update the logic so that the time will be adjusted based on monotonic time.
We do that by calculating the adjusted manager startup realtime from the
monotonic time stored at that time, by comparing that time with the realtime
and monotonic time of the current time.
Added a test case to validate this works as expected. The test case creates a
QEMU virtual machine with the clock 3 days in the future. Then we adjust the
clock back 3 days, and test creating a timer with an OnCalendar= for every 15
minutes. We also check the manager startup timestamp from both `systemd-analyze
dump` and from D-Bus.
Test output without the corresponding code changes that fix the issue:
Timer elapse outside of the expected 20 minute window.
next_elapsed=
1594686119
now=
1594426921
time_delta=259198
With the code changes in, the test passes as expected.
Evgeny Vereshchagin [Tue, 14 Jul 2020 21:47:43 +0000 (00:47 +0300)]
Revert "ci: turn off the "upstream-systemd-ci" ppa"
This reverts commit
d4ff79bbe1f33fb17e7add3bd520c08f405a79b1.
Filipe Brandenburger [Tue, 14 Jul 2020 21:05:17 +0000 (14:05 -0700)]
test: Add "finish" rule to .PHONY
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jul 2020 06:56:28 +0000 (08:56 +0200)]
Merge pull request #16462 from keszybz/rpm-macro-warnings
Emit better errors for rpm macro misuse
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jul 2020 20:18:38 +0000 (22:18 +0200)]
test-fs-util: use log_info instead of printf
The test is failing in koji, and the line from printf() does not end up
in the logs for some reason. log_info() works fine, so let's just use
that here too.
Evgeny Vereshchagin [Tue, 14 Jul 2020 04:03:32 +0000 (04:03 +0000)]
ci: turn off the "upstream-systemd-ci" ppa
Judging by https://launchpad.net/~upstream-systemd-ci/+archive/ubuntu/systemd-ci/+packages,
it got updated about 15 hours ago and the "build check" action has been
failing with
```
The following packages have unmet dependencies:
kbd : Depends: console-setup but it is not going to be installed or
E: Unable to correct problems, you have held broken packages.
console-setup-mini but it is not going to be installed
```
since then
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jul 2020 17:59:48 +0000 (19:59 +0200)]
Merge pull request #16340 from keszybz/var-tmp-readonly
Create ro private /var/tmp dir when /var/tmp is read-only
Zbigniew Jędrzejewski-Szmek [Sun, 28 Jun 2020 17:54:49 +0000 (19:54 +0200)]
pid1: create ro private tmp dirs when /tmp or /var/tmp is read-only
Read-only /var/tmp is more likely, because it's backed by a real device. /tmp
is (by default) backed by tmpfs, but it doesn't have to be. In both cases the
same consideration applies.
If we boot with read-only /var/tmp, any unit with PrivateTmp=yes would fail
because we cannot create the subdir under /var/tmp to mount the private directory.
But many services actually don't require /var/tmp (either because they only use
it occasionally, or because they only use /tmp, or even because they don't use the
temporary directories at all, and PrivateTmp=yes is used to isolate them from
the rest of the system).
To handle both cases let's create a read-only directory under /run/systemd and
mount it as the private /tmp or /var/tmp. (Read-only to not fool the service into
dumping too much data in /run.)
$ sudo systemd-run -t -p PrivateTmp=yes bash
Running as unit: run-u14.service
Press ^] three times within 1s to disconnect TTY.
[root@workstation /]# ls -l /tmp/
total 0
[root@workstation /]# ls -l /var/tmp/
total 0
[root@workstation /]# touch /tmp/f
[root@workstation /]# touch /var/tmp/f
touch: cannot touch '/var/tmp/f': Read-only file system
This commit has more changes than I like to put in one commit, but it's touching all
the same paths so it's hard to split.
exec_runtime_make() was using the wrong cleanup function, so the directory would be
left behind on error.
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jul 2020 17:31:21 +0000 (19:31 +0200)]
man: document F1 in sd-boot too
As suggested in https://github.com/systemd/systemd/issues/15125#issuecomment-
658114524.
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jul 2020 14:30:46 +0000 (16:30 +0200)]
rpm: include macro name in errors for two args macros too
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jul 2020 14:25:32 +0000 (16:25 +0200)]
rpm: adjust various macros to print macro name in the error message
Based on initial patch by Jan Engelhardt <jengelh@inai.de>.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=
1856122.
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jul 2020 17:02:09 +0000 (19:02 +0200)]
Merge pull request #16430 from mikhailnov/fix-rpm-create-package-macros
Fix RPM *_create_package macros
Lennart Poettering [Tue, 7 Jul 2020 10:00:41 +0000 (12:00 +0200)]
update TODO
Lennart Poettering [Tue, 7 Jul 2020 19:58:12 +0000 (21:58 +0200)]
nss-mymachines: drop support for UID/GID resolving
Now that we make the user/group name resolving available via userdb and
thus nss-systemd, we do not need the UID/GID resolving support in
nss-mymachines anymore. Let's drop it hence.
We keep the module around, since besides UID/GID resolving it also does
hostname resolving, which we care about. (One of those days we should
replace that by some Varlink logic between
nss-resolve/systemd-resolved.service too)
The hooks are kept in the NSS module, but they do not resolve anything
anymore, in order to keep compat at a maximum.
Lennart Poettering [Tue, 7 Jul 2020 19:29:21 +0000 (21:29 +0200)]
man: document new varlink service
Lennart Poettering [Tue, 7 Jul 2020 09:59:10 +0000 (11:59 +0200)]
machined: implement user/group lookup varlink API in machined too
Let's natively support our own API in machined too.
This allows us to remove half of nss-mymachines in a later commit.
Lennart Poettering [Tue, 7 Jul 2020 09:58:06 +0000 (11:58 +0200)]
machined: refactor UID/GID machine translation
Let's move the heavy lifting out of the bus call implemntations, and
into generic code.
This allows us to expose them easily via Varlink too in a later commit.
Lennart Poettering [Tue, 14 Jul 2020 14:59:22 +0000 (16:59 +0200)]
process-util: make sure procfs_file_alloca() works for non-literal field names too
Lennart Poettering [Tue, 7 Jul 2020 09:55:21 +0000 (11:55 +0200)]
docs: permit user/group services that do not support enumeration
sssd people don't like enumeration and for some other cases it's not
nice to support either, in particular when synthesizing records for
container/userns UID/GID ranges.
Hence, let's make enumeration optional.
Lennart Poettering [Tue, 14 Jul 2020 13:06:29 +0000 (15:06 +0200)]
update TODO
Lennart Poettering [Tue, 14 Jul 2020 10:21:47 +0000 (12:21 +0200)]
analyze: make testing ConditionPathExistsGlob= work
Fixes: #16439
Alternative-To: #16440
Lennart Poettering [Fri, 10 Jul 2020 07:53:26 +0000 (09:53 +0200)]
update TODO
Lennart Poettering [Wed, 8 Jul 2020 15:51:55 +0000 (17:51 +0200)]
udevadm: beef up deprecation log warning
Let's add a catalog entry explaining further details.
Most importantly though: talk to PID 1 directly, via the private D-Bus
socket, so that this actually works correctly during early boot, where
D-Bus is not around.
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jul 2020 09:35:29 +0000 (11:35 +0200)]
meson: do not install testdata when -Dinstall-tests=false
Fixes #16447.
szb512 [Mon, 13 Jul 2020 15:58:09 +0000 (11:58 -0400)]
Update .clang-format
szb512 [Thu, 9 Jul 2020 13:23:32 +0000 (09:23 -0400)]
Make the instructions slightly easier to read
Evgeny Vereshchagin [Sun, 12 Jul 2020 22:42:39 +0000 (01:42 +0300)]
Merge pull request #16437 from systemd/coverity-gcc-10
coverity: switch back to Fedora 31
Evgeny Vereshchagin [Sun, 12 Jul 2020 22:17:50 +0000 (22:17 +0000)]
coverity: install systemd
Apparently systemd is no longer installed in fedora containers
by default
```
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348:
starting container process caused "exec: \"/sbin/init\": stat /sbin/init: no such file or directory": unknown.
The command "$CI_MANAGERS/fedora.sh SETUP" failed and exited with 127 during .
```
Evgeny Vereshchagin [Sun, 12 Jul 2020 22:00:16 +0000 (22:00 +0000)]
coverity: switch back to Fedora 31
Apparently 6 days ago fedora:latest started to point to fedora:32,
which comes with gcc-10. Coverity doesn't support it yet.
Zbigniew Jędrzejewski-Szmek [Sat, 11 Jul 2020 14:19:03 +0000 (16:19 +0200)]
repart: include more relevant information in the warning message, fix test
The test would always fail with a long uname. In F33 this is right
now "5.8.0-0.rc2.20200622git625d3449788f.1.fc33.x86_64" which caused the
test to always fail.
Yu Watanabe [Sun, 12 Jul 2020 12:46:22 +0000 (21:46 +0900)]
Merge pull request #16435 from gaoyi1988/master
fix multi matches when use "||"
Yu Watanabe [Sun, 12 Jul 2020 08:13:57 +0000 (17:13 +0900)]
NEWS: mention source mode for MACVLAN or MACVTAP
Zbigniew Jędrzejewski-Szmek [Sun, 12 Jul 2020 09:55:44 +0000 (11:55 +0200)]
Merge pull request #16432 from cgzones/selinux_err_fix
SELlinux followup error/logging fixes
gaoyi [Sun, 12 Jul 2020 07:27:45 +0000 (03:27 -0400)]
test: add test case for multi matches when use "||"
Signed-off-by: gaoyi <ymuemc@163.com>
gaoyi [Sun, 12 Jul 2020 07:24:42 +0000 (03:24 -0400)]
udev: specify the end of value
NULSTR_FOREACH may read the illegal match
Signed-off-by: gaoyi <ymuemc@163.com>
fangxiuning [Sat, 11 Jul 2020 10:13:01 +0000 (18:13 +0800)]
bus: use bus_log_parse_error to print message
Christian Göttsche [Sat, 11 Jul 2020 19:12:55 +0000 (21:12 +0200)]
namespace: unify logging in mount_tmpfs
Fixes:
abad72be4df9d5a13ceecd5b4d073adb370882b7
Follow up: #16426
Christian Göttsche [Sat, 11 Jul 2020 19:12:08 +0000 (21:12 +0200)]
shared: fix error handling in make_inaccessible_nodes
_label wrappers return -errno on failure instead of returning -1 and
setting global errno.
Fixes:
8d9cbd809db492df9d94c0c664bd0d2e53416531
Follow up: #16426
Mikhail Novosyolov [Sat, 11 Jul 2020 14:13:54 +0000 (17:13 +0300)]
rpm: avoid hiding errors and output in *_create_package macros
Commit
b0ca726585 "rpm: avoid hiding errors from systemd commands" remove hiding errors and output
for other macros, but did not do that for %sysusers_create_package and %tmpfiles_create_package.
This change syncs their behaviour with %sysusers_create and %tmpfiles_create
Signed-off-by: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
Mikhail Novosyolov [Sat, 11 Jul 2020 14:08:00 +0000 (17:08 +0300)]
rpm: avoid odd symbols in EOF indicator
The last line in this macros was actually "SYSTEMD_INLINE_EOF " with a space at the end,
but the shell was instructed to look for a line without space.
Macros %sysusers_create_inline and %tmpfiles_create_inline did not have this mistake.
An example:
[root@rosa-2019 bind-server]# cat /etc/passwd | grep named
[root@rosa-2019 bind-server]# cat /tmp/bs
systemd-sysusers --replace=/usr/lib/sysusers.d/named.conf - <<SYSTEMD_INLINE_EOF >/dev/null 2>&1 || :
u named - "BIND DNS Server" /var/lib/named
g named - -
m named named
SYSTEMD_INLINE_EOF
[root@rosa-2019 bind-server]# sh /tmp/bs
/tmp/bs: line 5: warning: here-document at line 1 delimited by end-of-file (wanted `SYSTEMD_INLINE_EOF')
[root@rosa-2019 bind-server]# bash /tmp/bs
/tmp/bs: line 5: warning: here-document at line 1 delimited by end-of-file (wanted `SYSTEMD_INLINE_EOF')
[root@rosa-2019 bind-server]# bash --version
GNU bash, version 5.0.17(1)-release (x86_64-openmandriva-linux-gnu)
The user and group named were NOT created!
Now I remove the trailing space after "SYSTEMD_INLINE_EOF" and rerun:
[root@rosa-2019 bind-server]# sh /tmp/bs
[root@rosa-2019 bind-server]# tail -n 1 /etc/group
named:x:485:named
[root@rosa-2019 bind-server]#
The user and group have been created correctly.
Signed-off-by: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
Zbigniew Jędrzejewski-Szmek [Sat, 11 Jul 2020 11:35:34 +0000 (13:35 +0200)]
Merge pull request #16424 from keszybz/cap-bpf-compat
Handle new capabilities gracefully
Zbigniew Jędrzejewski-Szmek [Sat, 11 Jul 2020 11:32:00 +0000 (13:32 +0200)]
Merge pull request #16426 from cgzones/run_user_label
selinux: create standard user-runtime nodes with default context
Anita Zhang [Fri, 10 Jul 2020 22:05:23 +0000 (15:05 -0700)]
man: fix some manvolnum
Christian Göttsche [Fri, 10 Jul 2020 20:08:50 +0000 (22:08 +0200)]
namespace: fix MAC labels of TemporaryFileSystem=
Reproducible with:
systemd-run -p TemporaryFileSystem=/root -t /bin/bash
ls -dZ /root
Prior:
root:object_r:tmpfs_t:s0 /root
Past:
root:object_r:user_home_dir_t:s0 /root
Christian Göttsche [Fri, 10 Jul 2020 19:48:02 +0000 (21:48 +0200)]
selinux: create standard user-runtime nodes with default context
Currently systemd-user-runtime-dir does not create the files in
/run/user/$UID/systemd/inaccessible with the default SELinux label.
The user and role part of these labels should be based on the user
related to $UID and not based on the process context of
systemd-user-runtime-dir.
Since v246-rc1 (
9664be199af6) /run/user/$UID/systemd is also created by
systemd-user-runtime-dir and should also be created with the default
SELinux context.
Christian Göttsche [Fri, 10 Jul 2020 19:37:44 +0000 (21:37 +0200)]
basic: add helper function mknod_label()
Clinton Roy [Fri, 10 Jul 2020 16:58:30 +0000 (02:58 +1000)]
NEWS: grammar improvements (#16413)
Filippo Falezza [Thu, 9 Jul 2020 17:12:20 +0000 (19:12 +0200)]
Added MSI Prestige15 A10SC specific keycodes
This commit enables the microphone mute button and the screen rotate button, even if the latter is improperly linked. I have documented how to achieve this in https://wiki.archlinux.org/index.php/MSI_P15#Fn_Keys .
Surhud More [Thu, 9 Jul 2020 19:14:29 +0000 (00:44 +0530)]
Add support for HP Elitebook x360 1040 G6 micmute button
Florian Mayer [Fri, 10 Jul 2020 16:40:36 +0000 (18:40 +0200)]
Explain how to determine hierarchy type from shell
This makes it easier for people than just recommending the syscall.
Zbigniew Jędrzejewski-Szmek [Thu, 9 Jul 2020 21:23:07 +0000 (23:23 +0200)]
basic/cap-list: reduce scope of variables
Zbigniew Jędrzejewski-Szmek [Fri, 10 Jul 2020 14:53:51 +0000 (16:53 +0200)]
basic/capability-util: let cap_last_cap() return unsigned integer
We never return anything higher than 63, so using "long unsigned"
as the type only confused the reader. (We can still use "long unsigned"
and safe_atolu() to parse the kernel file.)
Zbigniew Jędrzejewski-Szmek [Thu, 9 Jul 2020 21:15:47 +0000 (23:15 +0200)]
basic/cap-list: parse/print numerical capabilities
We would refuse to print capabilities which were didn't have a name
for. The kernel adds new capabilities from time to time, most recently
cap_bpf. 'systmectl show -p CapabilityBoundingSet ...' would fail with
"Failed to parse bus message: Invalid argument" because
capability_set_to_string_alloc() would fail with -EINVAL. So let's
print such capabilities in hexadecimal:
CapabilityBoundingSet=cap_chown cap_dac_override cap_dac_read_search
cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap
cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin
cap_net_raw cap_ipc_lock cap_ipc_owner 0x10 0x11 0x12 0x13 0x14 0x15 0x16
0x17 0x18 0x19 0x1a ...
For symmetry, also allow capabilities that we don't know to be specified.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=
1853736.
fangxiuning [Wed, 8 Jul 2020 14:04:08 +0000 (22:04 +0800)]
install: fix wrong data type
Lennart Poettering [Fri, 10 Jul 2020 08:04:37 +0000 (10:04 +0200)]
NEWS: drop duplicate entry, add --image= entry
Zbigniew Jędrzejewski-Szmek [Thu, 9 Jul 2020 06:33:39 +0000 (08:33 +0200)]
NEWS: add date
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 20:23:24 +0000 (22:23 +0200)]
userdb: fix dlopen call
The call would always fail with:
systemd-userwork[780]: Failed to dlopen(libnss_systemd.so.2), ignoring: /usr/lib64libnss_systemd.so.2: cannot open shared object file: No such file or directory
Yu Watanabe [Thu, 9 Jul 2020 05:01:45 +0000 (14:01 +0900)]
Merge pull request #16411 from ddstreet/bridge_without_carrier_fails
Bridge without carrier fails
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 22:02:55 +0000 (00:02 +0200)]
NEWS: add blurb about os-release and $container_host_*
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 21:52:13 +0000 (23:52 +0200)]
Merge pull request #15891 from bluca/host_os_release
Container Interface: expose the host's os-release metadata to nspawn and portable guests
Dan Streetman [Wed, 8 Jul 2020 21:05:03 +0000 (17:05 -0400)]
test-netowrk: in test_bridge_configure_without_carrier, avoid strange test failures
For some reason the wait-online is failing intermittently; it's unclear
exactly why, but this hopefully avoids the failure for unrelated PR.
This is a workaround (not fix) for #16105
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 20:31:42 +0000 (22:31 +0200)]
Merge pull request #16405 from sipraga/master
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 20:18:17 +0000 (22:18 +0200)]
Merge pull request #15955 from anitazha/nullorempty
core: check null_or_empty_path for masked units instead of /dev/null
Dan Streetman [Wed, 8 Jul 2020 20:13:14 +0000 (16:13 -0400)]
test-network: don't print networkctl output for passing subtests
This just clutters up the logs.
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 20:10:44 +0000 (22:10 +0200)]
Merge pull request #16404 from keszybz/release-246-prep
Prepare v246-rc1
Frantisek Sumsal [Wed, 8 Jul 2020 12:42:43 +0000 (14:42 +0200)]
test: bump the TEST-47 sleeps once again
Several recent failed runs show that the test is still racy in two ways:
1) Sometimes it takes a while before the PID file is created, leading
to:
```
[ 10.950540] testsuite-47.sh[308]: ++ cat /leakedtestpid
[ 10.959712] testsuite-47.sh[308]: cat: /leakedtestpid: No such file or directory
[ 10.959824] testsuite-47.sh[298]: + leaked_pid=
```
2) Again, sometimes we check the leaked PID before the unit is actually
stopped, leading to a false negative:
```
[ 18.099599] testsuite-47.sh[346]: ++ cat /leakedtestpid
[ 18.116462] testsuite-47.sh[333]: + leaked_pid=342
[ 18.117101] testsuite-47.sh[333]: + systemctl stop testsuite-47-repro
...
[ 20.033907] testsuite-47.sh[333]: + ps -p 342
[ 20.080050] testsuite-47.sh[351]: PID TTY TIME CMD
[ 20.080050] testsuite-47.sh[351]: 342 ? 00:00:00 sleep
[ 20.082040] testsuite-47.sh[333]: + exit 42
```
Alvin Šipraga [Wed, 8 Jul 2020 13:52:23 +0000 (15:52 +0200)]
network: add support for MACVLAN source mode
Add support for creating a MACVLAN interface in "source" mode by
specifying Mode=source in the [MACVLAN] section of a .netdev file.
A list of allowed MAC addresses for the corresponding MACVLAN can also
be specified with the SourceMACAddress= option of the [MACVLAN] section.
An example .netdev file:
[NetDev]
Name=macvlan0
Kind=macvlan
MACAddress=02:DE:AD:BE:EF:00
[MACVLAN]
Mode=source
SourceMACAddress=02:AB:AB:AB:AB:01 02:CD:CD:CD:CD:01
SourceMACAddress=02:EF:EF:EF:EF:01
The same keys can also be specified in [MACVTAP] for MACVTAP kinds of
interfaces, with the same semantics.
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 15:35:54 +0000 (17:35 +0200)]
meson: bump version numbers for v246
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 15:33:36 +0000 (17:33 +0200)]
NEWS: update contributors list for v246-rc
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 15:31:43 +0000 (17:31 +0200)]
git-contrib: simplify implementation a bit
Zbigniew Jędrzejewski-Szmek [Sat, 27 Jun 2020 11:23:08 +0000 (13:23 +0200)]
core: wrap some long lines and other formatting changes
Lennart Poettering [Wed, 8 Jul 2020 10:12:29 +0000 (12:12 +0200)]
Merge pull request #16385 from JackFangXN/master
table add table_log_xx_error()
Yu Watanabe [Wed, 8 Jul 2020 01:35:45 +0000 (10:35 +0900)]
sd-device: use log_device_debug_errno()
fangxiuning [Wed, 8 Jul 2020 07:16:52 +0000 (15:16 +0800)]
table use table_log_print_error() instead of table_log_show_error
fangxiuning [Tue, 7 Jul 2020 02:29:14 +0000 (10:29 +0800)]
table add table_log_sort_error()