]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agonetwork: read link specific sysctl value
Yu Watanabe [Fri, 14 Jun 2019 00:42:51 +0000 (09:42 +0900)] 
network: read link specific sysctl value

This introduce link_sysctl_ipv6_enabled() and replaces
manager_sysctl_ipv6_enabled() with it.

4 years agoMerge pull request #12796 from yuwata/test-network-use-wait-online
Zbigniew Jędrzejewski-Szmek [Sat, 15 Jun 2019 12:53:04 +0000 (14:53 +0200)] 
Merge pull request #12796 from yuwata/test-network-use-wait-online

test-network: several cleanups

4 years agoMerge pull request #12794 from yuwata/network-configure-without-carrier
Zbigniew Jędrzejewski-Szmek [Sat, 15 Jun 2019 12:50:41 +0000 (14:50 +0200)] 
Merge pull request #12794 from yuwata/network-configure-without-carrier

network: skip to check dynamic addresses when ConfigureWithoutCarrier=yes

4 years agoMerge pull request #12761 from evverx/try-fuzzit
Evgeny Vereshchagin [Sat, 15 Jun 2019 03:46:38 +0000 (06:46 +0300)] 
Merge pull request #12761 from evverx/try-fuzzit

Turn on UBSan on Fuzzit

4 years agotravis: add more ASan options 12761/head
Evgeny Vereshchagin [Sat, 15 Jun 2019 00:07:17 +0000 (02:07 +0200)] 
travis: add more ASan options

4 years agotravis: clean up bash variables a bit
Evgeny Vereshchagin [Fri, 14 Jun 2019 23:16:07 +0000 (01:16 +0200)] 
travis: clean up bash variables a bit

in preparation for adding more ASan options

4 years agotravis: use UBSan checks from OSS-Fuzz
Evgeny Vereshchagin [Fri, 14 Jun 2019 22:44:27 +0000 (00:44 +0200)] 
travis: use UBSan checks from OSS-Fuzz

This should help to silence UBSan reports mentioned in
https://github.com/systemd/systemd/pull/12771#issuecomment-502139157
for now.

4 years agotravis: turn on UBSan on Fuzzit
Evgeny Vereshchagin [Fri, 14 Jun 2019 22:09:15 +0000 (00:09 +0200)] 
travis: turn on UBSan on Fuzzit

4 years agoMerge pull request #12799 from evverx/fuzzit-follow-up
Evgeny Vereshchagin [Fri, 14 Jun 2019 20:28:56 +0000 (23:28 +0300)] 
Merge pull request #12799 from evverx/fuzzit-follow-up

travis: run Coverity after Fuzzit-Fuzzing

4 years agotravis: add 5 more fuzz targets 12799/head
Evgeny Vereshchagin [Fri, 14 Jun 2019 19:47:31 +0000 (21:47 +0200)] 
travis: add 5 more fuzz targets

4 years agotravis: always run the "Build & test" stage first
Evgeny Vereshchagin [Fri, 14 Jun 2019 19:16:41 +0000 (21:16 +0200)] 
travis: always run the "Build & test" stage first

Now that the other stages are explicitly listed in the "stages"
section, we should include "Built & test" there to make sure
it's run first.

4 years agotravis: skip the Fuzzit-Sanity stage when it's run by cron
Evgeny Vereshchagin [Fri, 14 Jun 2019 18:56:10 +0000 (20:56 +0200)] 
travis: skip the Fuzzit-Sanity stage when it's run by cron

4 years agotravis: run Coverity after Fuzzit-Fuzzing
Evgeny Vereshchagin [Fri, 14 Jun 2019 18:42:19 +0000 (20:42 +0200)] 
travis: run Coverity after Fuzzit-Fuzzing

Coverity is unpredictable and, according to a notification I received
yeserday, it will be upgraded on June 17. During the upgrade
it might be offline for 3 days, af far as I understand. Anyway, Travis
stops as soon as a stage fails so it makes sense to put stages that
are likely to fail at the end so that the others have a chance to
do what they are supposed to do.

https://community.synopsys.com/s/topic/0TO2H0000001CN7WAM/coverity-scan-status

4 years agoContinuous Fuzzing Integration with Fuzzit
Jeka Pats [Tue, 11 Jun 2019 06:25:45 +0000 (09:25 +0300)] 
Continuous Fuzzing Integration with Fuzzit

includes two travis ci steps:

1) Every pull-request/push all fuzzing targets will do a quick
sanity run on the generated corpus and crashes (via Fuzzit)
2) On a daily basis the fuzzing targets will be compiled (from
master) and will and their respectible fuzzing job on Fuzzit
will be updated to the new binary.

4 years agoNEWS: add more hint about MACAddressPolicy= change
Yu Watanabe [Fri, 14 Jun 2019 14:15:55 +0000 (23:15 +0900)] 
NEWS: add more hint about MACAddressPolicy= change

C.f. https://bugzilla.suse.com/show_bug.cgi?id=1136600

4 years agotest-network: drop redundant operstate checking 12796/head
Yu Watanabe [Fri, 14 Jun 2019 07:50:07 +0000 (16:50 +0900)] 
test-network: drop redundant operstate checking

4 years agotest-network: replace check_link_exists() with wait_online()
Yu Watanabe [Fri, 14 Jun 2019 07:49:39 +0000 (16:49 +0900)] 
test-network: replace check_link_exists() with wait_online()

4 years agotest-network: explicitly set sleep time
Yu Watanabe [Fri, 14 Jun 2019 07:47:06 +0000 (16:47 +0900)] 
test-network: explicitly set sleep time

4 years agotest-network: suppress error message in cleanup process
Yu Watanabe [Fri, 14 Jun 2019 07:45:50 +0000 (16:45 +0900)] 
test-network: suppress error message in cleanup process

4 years agotest-network: add test for ConfigureWithoutCarrier= 12794/head
Yu Watanabe [Thu, 13 Jun 2019 20:25:00 +0000 (05:25 +0900)] 
test-network: add test for ConfigureWithoutCarrier=

4 years agonetwork: skip to check dynamic addresses when ConfigureWithoutCarrier=yes
Yu Watanabe [Thu, 13 Jun 2019 20:16:11 +0000 (05:16 +0900)] 
network: skip to check dynamic addresses when ConfigureWithoutCarrier=yes

Otherwise, the interface cannot be in "configured" state, as ipv6 link local
addressing is enabled by default. Note that even if ConfigureWithoutCarrier=
is set, all dynamic configurations are checked when the interface has
carrier.

4 years agoDocument that gpt-auto-generator supports decrypting rootfs
Arian van Putten [Wed, 12 Jun 2019 17:18:04 +0000 (19:18 +0200)] 
Document that gpt-auto-generator supports decrypting rootfs

When systemd is running in initrd, we actually support decrypting a LUKS rootfs.

Fixes #12786

4 years agonetworkctl: fix use of uninitialized value
Yu Watanabe [Thu, 13 Jun 2019 04:27:42 +0000 (13:27 +0900)] 
networkctl: fix use of uninitialized value

4 years agoMerge pull request #12777 from yuwata/libudev-enumerate-issue-12776
Yu Watanabe [Wed, 12 Jun 2019 22:45:01 +0000 (07:45 +0900)] 
Merge pull request #12777 from yuwata/libudev-enumerate-issue-12776

libudev: rescan devices when filter is updated

4 years agoMerge pull request #12783 from keszybz/a-few-unrelated-fixes
Frantisek Sumsal [Wed, 12 Jun 2019 17:52:48 +0000 (17:52 +0000)] 
Merge pull request #12783 from keszybz/a-few-unrelated-fixes

A few unrelated fixes

4 years agojournal: also disable memory tricks when hashing under msan 12783/head
Zbigniew Jędrzejewski-Szmek [Wed, 12 Jun 2019 15:24:22 +0000 (17:24 +0200)] 
journal: also disable memory tricks when hashing under msan

Might help with #11738.

4 years agotest-bus-marshall: add a hopefully helpful comment
Zbigniew Jędrzejewski-Szmek [Wed, 12 Jun 2019 15:23:32 +0000 (17:23 +0200)] 
test-bus-marshall: add a hopefully helpful comment

4 years agozsh: add completion for systemctl preset-all
Zbigniew Jędrzejewski-Szmek [Tue, 11 Jun 2019 06:52:42 +0000 (08:52 +0200)] 
zsh: add completion for systemctl preset-all

4 years agosystem-update-generator: do not emit bogus warning if no /system-update symlink
Zbigniew Jędrzejewski-Szmek [Fri, 7 Jun 2019 09:49:03 +0000 (11:49 +0200)] 
system-update-generator: do not emit bogus warning if no /system-update symlink

We only need to check for the kernel cmdline override our symlink is there.

4 years agolibudev: hide definition of struct udev_device 12777/head
Yu Watanabe [Wed, 12 Jun 2019 06:15:06 +0000 (15:15 +0900)] 
libudev: hide definition of struct udev_device

4 years agolibudev: rescan devices when filter is updated
Yu Watanabe [Wed, 12 Jun 2019 02:10:52 +0000 (11:10 +0900)] 
libudev: rescan devices when filter is updated

Fixes #12776.

4 years agolibudev: re-implement libudev-list with LIST and hashmap
Yu Watanabe [Wed, 12 Jun 2019 06:06:24 +0000 (15:06 +0900)] 
libudev: re-implement libudev-list with LIST and hashmap

4 years agolibudev: hide definition of struct udev_list from other libudev components
Yu Watanabe [Wed, 12 Jun 2019 04:03:19 +0000 (13:03 +0900)] 
libudev: hide definition of struct udev_list from other libudev components

In the later commit, udev_list will be just a wrapper of hashmap or LIST.
So, allocating udev_list does not increase much cost.

4 years agoMerge pull request #12424 from poettering/logind-brightness
Zbigniew Jędrzejewski-Szmek [Wed, 12 Jun 2019 12:28:09 +0000 (14:28 +0200)] 
Merge pull request #12424 from poettering/logind-brightness

logind: add SetBrightness() bus call as minimal API for setting "leds" and "backlight" kernel class device brightness

4 years agoMerge pull request #12779 from pwithnall/minor-fixes
Zbigniew Jędrzejewski-Szmek [Wed, 12 Jun 2019 12:20:32 +0000 (14:20 +0200)] 
Merge pull request #12779 from pwithnall/minor-fixes

Minor fixes

4 years agoservice: Fix typo in warning message 12779/head
Philip Withnall [Wed, 12 Jun 2019 07:24:45 +0000 (08:24 +0100)] 
service: Fix typo in warning message

The directive is `RuntimeMaxSec=`, not `MaxRuntimeSec=`.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
4 years agopam_systemd: Fix some option names in error messages
Philip Withnall [Wed, 12 Jun 2019 08:43:47 +0000 (09:43 +0100)] 
pam_systemd: Fix some option names in error messages

Signed-off-by: Philip Withnall <withnall@endlessm.com>
4 years agoman: Add missing <literal> tags in various man pages
Philip Withnall [Wed, 12 Jun 2019 08:08:53 +0000 (09:08 +0100)] 
man: Add missing <literal> tags in various man pages

A minor formatting improvement brought to you by the wonders of `git
grep`.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
4 years agoman: Fix typo in sd_notify man page
Philip Withnall [Wed, 12 Jun 2019 07:03:35 +0000 (08:03 +0100)] 
man: Fix typo in sd_notify man page

Signed-off-by: Philip Withnall <withnall@endlessm.com>
4 years agolibudev: drop unused variable
Yu Watanabe [Wed, 12 Jun 2019 03:30:05 +0000 (12:30 +0900)] 
libudev: drop unused variable

4 years agoMerge pull request #12774 from yuwata/network-ignore-ipv6-settings-when-sysctl-disabl...
Yu Watanabe [Wed, 12 Jun 2019 05:46:00 +0000 (14:46 +0900)] 
Merge pull request #12774 from yuwata/network-ignore-ipv6-settings-when-sysctl-disable-ipv6

network: ignore ipv6 settings when sysctl disable ipv6

4 years agoresolved: Fix incorrect use of OpenSSL BUF_MEM
Tomas Mraz [Tue, 11 Jun 2019 13:10:21 +0000 (15:10 +0200)] 
resolved: Fix incorrect use of OpenSSL BUF_MEM

Fixes: #12763
4 years agotest-network: add more test cases when ipv6 is disabled 12774/head
Yu Watanabe [Wed, 12 Jun 2019 02:01:32 +0000 (11:01 +0900)] 
test-network: add more test cases when ipv6 is disabled

4 years agonetwork: ignore requested ipv6 fdb entry when ipv6 is disabled by sysctl
Yu Watanabe [Tue, 11 Jun 2019 14:33:22 +0000 (23:33 +0900)] 
network: ignore requested ipv6 fdb entry when ipv6 is disabled by sysctl

4 years agonetwork: ignore requested ipv6 routing policy rule when ipv6 is disabled by sysctl
Yu Watanabe [Tue, 11 Jun 2019 14:29:57 +0000 (23:29 +0900)] 
network: ignore requested ipv6 routing policy rule when ipv6 is disabled by sysctl

4 years agonetwork: ignore requested ipv6 route when ipv6 is disabled by sysctl
Yu Watanabe [Tue, 11 Jun 2019 14:26:11 +0000 (23:26 +0900)] 
network: ignore requested ipv6 route when ipv6 is disabled by sysctl

4 years agonetwork: ignore requested ipv6 addresses when ipv6 is disabled by sysctl
Yu Watanabe [Tue, 11 Jun 2019 14:20:56 +0000 (23:20 +0900)] 
network: ignore requested ipv6 addresses when ipv6 is disabled by sysctl

4 years agoman: fix reference to sd_bus_add_fallback_vtable
Peter A. Bigot [Sun, 9 Jun 2019 17:15:09 +0000 (12:15 -0500)] 
man: fix reference to sd_bus_add_fallback_vtable

4 years agoMerge pull request #12685 from yuwata/network-dhcp-assign-adn-remove-12676
Zbigniew Jędrzejewski-Szmek [Tue, 11 Jun 2019 07:52:26 +0000 (09:52 +0200)] 
Merge pull request #12685 from yuwata/network-dhcp-assign-adn-remove-12676

network: assign new DHCP address before removing old lease address

4 years agosystemd-mount: don't check for non-normalized WHAT for network FS
Karel Zak [Mon, 10 Jun 2019 13:18:47 +0000 (15:18 +0200)] 
systemd-mount: don't check for non-normalized WHAT for network FS

The WHAT string could be whatever for many filesystems. The common
example are network filesystems.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1708996

4 years agoman/systemd-veritysetup-generator: Fix grammar
Theo Ouzhinski [Sat, 8 Jun 2019 21:43:59 +0000 (17:43 -0400)] 
man/systemd-veritysetup-generator: Fix grammar

4 years agonetwork: assign new DHCP address before removing old lease address 12685/head
Yu Watanabe [Fri, 7 Jun 2019 06:31:07 +0000 (15:31 +0900)] 
network: assign new DHCP address before removing old lease address

Closes #12676.

4 years agonetwork: ignore callback calls when link is in failed state
Yu Watanabe [Fri, 7 Jun 2019 06:04:11 +0000 (15:04 +0900)] 
network: ignore callback calls when link is in failed state

4 years agonetwork: drop unnecessary link_enter_failed() calls
Yu Watanabe [Fri, 7 Jun 2019 05:28:09 +0000 (14:28 +0900)] 
network: drop unnecessary link_enter_failed() calls

As the function called soon later anyway.

4 years agonetwork: check earlier the existence of lifetime in lease
Yu Watanabe [Fri, 7 Jun 2019 05:22:13 +0000 (14:22 +0900)] 
network: check earlier the existence of lifetime in lease

4 years agonetwork: make all failures in route configuration fatal
Yu Watanabe [Fri, 7 Jun 2019 05:18:55 +0000 (14:18 +0900)] 
network: make all failures in route configuration fatal

4 years agoMerge pull request #12756 from cdown/uninit
Yu Watanabe [Fri, 7 Jun 2019 06:58:30 +0000 (15:58 +0900)] 
Merge pull request #12756 from cdown/uninit

a couple of correctness fixups

4 years agocgroup: Prevent theoretical nullptr deref in unit mask calculation 12756/head
Chris Down [Fri, 7 Jun 2019 05:28:10 +0000 (06:28 +0100)] 
cgroup: Prevent theoretical nullptr deref in unit mask calculation

4 years agosystemctl: Prevent state_missing from being used uninit
Chris Down [Fri, 7 Jun 2019 05:22:41 +0000 (06:22 +0100)] 
systemctl: Prevent state_missing from being used uninit

4 years agoMerge pull request #12738 from yuwata/network-routing-policy-cleanup
Zbigniew Jędrzejewski-Szmek [Thu, 6 Jun 2019 16:53:20 +0000 (18:53 +0200)] 
Merge pull request #12738 from yuwata/network-routing-policy-cleanup

network: several cleanups for routing policy rule

4 years agoMerge pull request #12511 from ssahani/high-avilability-12050
Zbigniew Jędrzejewski-Szmek [Thu, 6 Jun 2019 16:51:46 +0000 (18:51 +0200)] 
Merge pull request #12511 from ssahani/high-avilability-12050

networkd: add new KeepConfiguration= setting

4 years agotest-network: add tests for KeepConfiguration= 12511/head
Yu Watanabe [Mon, 3 Jun 2019 04:21:13 +0000 (13:21 +0900)] 
test-network: add tests for KeepConfiguration=

4 years agoman: add documentation about KeepConfiguration
Yu Watanabe [Mon, 3 Jun 2019 06:37:25 +0000 (15:37 +0900)] 
man: add documentation about KeepConfiguration

4 years agonetwork: make KeepConfiguration=static drop DHCP addresses and routes
Yu Watanabe [Mon, 3 Jun 2019 03:33:13 +0000 (12:33 +0900)] 
network: make KeepConfiguration=static drop DHCP addresses and routes

Also, KeepConfiguration=dhcp drops static foreign addresses and routes.

4 years agonetwork: add KeepConfiguration=dhcp-on-stop
Yu Watanabe [Mon, 3 Jun 2019 17:05:26 +0000 (02:05 +0900)] 
network: add KeepConfiguration=dhcp-on-stop

The option prevents to drop lease address on stop.
By setting this, we can safely restart networkd.

4 years agonetworkd: add support to keep configuration
Susant Sahani [Mon, 3 Jun 2019 03:31:13 +0000 (12:31 +0900)] 
networkd: add support to keep configuration

4 years agoMerge pull request #12748 from keszybz/modernize-networkd-tests-style
Yu Watanabe [Thu, 6 Jun 2019 13:23:09 +0000 (22:23 +0900)] 
Merge pull request #12748 from keszybz/modernize-networkd-tests-style

Modernize networkd-tests.py style

4 years agoNEWS: add note about the CPUAffinity= changes
Zbigniew Jędrzejewski-Szmek [Tue, 4 Jun 2019 08:41:46 +0000 (10:41 +0200)] 
NEWS: add note about the CPUAffinity= changes

4 years agoMerge pull request #12508 from keszybz/no-root-checks
Yu Watanabe [Thu, 6 Jun 2019 12:31:19 +0000 (21:31 +0900)] 
Merge pull request #12508 from keszybz/no-root-checks

Drop many root checks

4 years agonetworkd-tests.py: properly escape pluses in regexps 12748/head
Zbigniew Jędrzejewski-Szmek [Thu, 6 Jun 2019 12:08:01 +0000 (14:08 +0200)] 
networkd-tests.py: properly escape pluses in regexps

Python warns that '\+' is an invalid escape. We need either '\\+' or r'\+'.

4 years agonetworkd-tests.py: remove some java-style boilerplate
Zbigniew Jędrzejewski-Szmek [Wed, 5 Jun 2019 10:08:09 +0000 (12:08 +0200)] 
networkd-tests.py: remove some java-style boilerplate

A class was used to put some utility functions under a namespace. But then this
namespace was inherited into classes, so the namespace split was undone. Let's
just define those functions in the module namespace.

(The Utilities class with a few functions still remain, because of the
unittest-style self.assert* craziness.)

4 years agonetworkd-tests.py: use check_output() instead of unittests' assertEqual()
Zbigniew Jędrzejewski-Szmek [Wed, 5 Jun 2019 10:03:01 +0000 (12:03 +0200)] 
networkd-tests.py: use check_output() instead of unittests' assertEqual()

It's pretty much the same thing, but more in pytest style, without the
unittest boilerplate.

4 years agonetworkd-tests.py: add helpers to common subprocess call patterns
Zbigniew Jędrzejewski-Szmek [Wed, 5 Jun 2019 09:43:28 +0000 (11:43 +0200)] 
networkd-tests.py: add helpers to common subprocess call patterns

For normal shell calls, python syntax is quite verbose. We don't need to punish
ourselves like that. In some places we would fork a shell to do argument splitting
for us. We know that our arguments can be safely split on whitespace, so let's do
that ourselves in all cases, without forking a shell.

We also expect command output to be valid text, so let's always set
universal_newlines=True.

This makes things shorter and easier to read. Development is also easier because
it's possible to paste many of the commands directly to/from a shell.

4 years agonetworkd-tests.py: remove unused import
Zbigniew Jędrzejewski-Szmek [Wed, 5 Jun 2019 10:42:29 +0000 (12:42 +0200)] 
networkd-tests.py: remove unused import

4 years agonetwork: check stored object is euivalent to what we want to remove 12738/head
Yu Watanabe [Wed, 5 Jun 2019 15:42:05 +0000 (00:42 +0900)] 
network: check stored object is euivalent to what we want to remove

When object A is stored in Manager::rules and B is in ::rules_foreign,
and compare function for the object cannot distinguish them,
then freeing A causes B to be removed from rules_foreign or vice versa.

Hopefully fixes #12731.

4 years agoDrop no longer needed halt-local.service.in
Michael Biebl [Wed, 5 Jun 2019 11:35:11 +0000 (13:35 +0200)] 
Drop no longer needed halt-local.service.in

Follow-up for commit 44508946534eee032927c263b79464832656dd6e.

4 years agoMerge pull request #12744 from yuwata/test-network-stability-dhcp-tests
Zbigniew Jędrzejewski-Szmek [Wed, 5 Jun 2019 12:31:24 +0000 (14:31 +0200)] 
Merge pull request #12744 from yuwata/test-network-stability-dhcp-tests

test-network: improve stability of DHCP client tests

4 years agotest-network: do not directly compare two results of "ip address" 12744/head
Yu Watanabe [Tue, 4 Jun 2019 18:57:21 +0000 (03:57 +0900)] 
test-network: do not directly compare two results of "ip address"

As it contains lifetime of the address.

4 years agoMerge pull request #11778 from anitazha/rfe_11654_dbus
Chris Down [Wed, 5 Jun 2019 09:02:00 +0000 (10:02 +0100)] 
Merge pull request #11778 from anitazha/rfe_11654_dbus

core: add ExecStartXYZEx= with dbus support for executable prefixes

4 years agoudev: propagate errors in udev_event_execute_rules()
Yu Watanabe [Tue, 4 Jun 2019 18:09:20 +0000 (03:09 +0900)] 
udev: propagate errors in udev_event_execute_rules()

And do not set initialized flag to the device.

4 years agoudevadm trigger: log errors and return first failure 12508/head
Zbigniew Jędrzejewski-Szmek [Wed, 5 Jun 2019 07:54:54 +0000 (09:54 +0200)] 
udevadm trigger: log errors and return first failure

When udevadm trigger is called, the list of devices to trigger is always
generated through enumeration, and devices can come and go, so we should not
treat -ENOENT as a failure. But other types of failure should be logged.
It seems they were logged until baa30fbc2c04b23209d0b8fb3c86cd15ef9ea81a.

Also, return the first error. (I'm not sure if there are other failure modes
which we want to ignore. If they are, they'll need to be whitelisted like
-ENOENT.).

4 years agotest-network: do not allow addresses in tentative state
Yu Watanabe [Tue, 4 Jun 2019 18:55:32 +0000 (03:55 +0900)] 
test-network: do not allow addresses in tentative state

4 years agoman: mention quoting in description of Parameters=
Zbigniew Jędrzejewski-Szmek [Tue, 4 Jun 2019 11:44:46 +0000 (13:44 +0200)] 
man: mention quoting in description of Parameters=

Also add a short example how to translate nspawn command line to .nspawn settings.

Fixes #12703.

4 years agoMerge pull request #12741 from keszybz/bpf-firewall-warning
Yu Watanabe [Tue, 4 Jun 2019 19:01:44 +0000 (04:01 +0900)] 
Merge pull request #12741 from keszybz/bpf-firewall-warning

Silence BPF firewall warning when not useful

4 years agoMerge pull request #12737 from keszybz/meson-man-nspawn
Yu Watanabe [Tue, 4 Jun 2019 17:45:39 +0000 (02:45 +0900)] 
Merge pull request #12737 from keszybz/meson-man-nspawn

meson: escape dots in man/man helper

4 years agoMerge pull request #12661 from mrc0mmand/debug-journalctl-flush
Yu Watanabe [Tue, 4 Jun 2019 15:46:29 +0000 (00:46 +0900)] 
Merge pull request #12661 from mrc0mmand/debug-journalctl-flush

journal: disable varlink timeout for journalctl --flush or friends

4 years agoman/man: refer to the right build directory in the helpers 12737/head
Zbigniew Jędrzejewski-Szmek [Tue, 4 Jun 2019 15:33:59 +0000 (17:33 +0200)] 
man/man: refer to the right build directory in the helpers

I have no idea how this one slipped through.

4 years agoSilence warning about BPF firewall in containers 12741/head
Zbigniew Jędrzejewski-Szmek [Tue, 4 Jun 2019 15:22:12 +0000 (17:22 +0200)] 
Silence warning about BPF firewall in containers

We'd get a warning on every nspawn invocation:
dev-hugepages.mount: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
(This warning is only shown for the first unit using IP firewalling.)

Before the previous commit, I'd generally get a warning about systemd-udev.service, even though that service is
not started in containers. But are still many other units which that declare a
firewall, which is currently unsupported in containers. Let's stop warning
about this.

The warning is still emitted e.g. if legacy cgroups are used. This is something
that can be configured, so it makes more sense to emit the warning.

4 years agoMove warning about unsupported BPF firewall right before the firewall would be created
Zbigniew Jędrzejewski-Szmek [Tue, 4 Jun 2019 13:01:27 +0000 (15:01 +0200)] 
Move warning about unsupported BPF firewall right before the firewall would be created

There's no need to warn about the firewall when parsing, because the unit might
not be started at all. Let's warn only when we're actually preparing to start
the firewall.

This changes behaviour:
- the warning is printed just once for all unit types, and not once
  for normal units and once for transient units.
- on repeat warnings, the message is not printed at all. There's already
  detailed debug info from bpf_firewall_compile(), so we don't need to repeat
  ourselves.
- when we are not root, let's say precisely that, not "lack of necessary privileges"
  and "the local system does not support BPF/cgroup firewalling".

Fixes #12673.

4 years agojournalctl: make 'journalctl --flush' or friends not fail with varlink timeout 12661/head
Yu Watanabe [Fri, 24 May 2019 13:32:08 +0000 (22:32 +0900)] 
journalctl: make 'journalctl --flush' or friends not fail with varlink timeout

Closes #12570.

4 years agomeson: escape dots in man/man helper
Zbigniew Jędrzejewski-Szmek [Tue, 4 Jun 2019 10:56:14 +0000 (12:56 +0200)] 
meson: escape dots in man/man helper

It was impossible to view systemd.nspawn(5), because systemd-nspawn(1) was matched
also, and happened to be earlier in the list. The solution in this patch is pretty
crude, but is should be enough for our purposes, since we don't have any regexp
special characters in man page names except for the dot.

4 years agoMerge pull request #12733 from keszybz/sd-bus-error-reporting
Zbigniew Jędrzejewski-Szmek [Tue, 4 Jun 2019 10:01:52 +0000 (12:01 +0200)] 
Merge pull request #12733 from keszybz/sd-bus-error-reporting

Bus error reporting improvements

4 years agoMerge pull request #12734 from keszybz/cpu-set-util-on-i386
Zbigniew Jędrzejewski-Szmek [Tue, 4 Jun 2019 10:01:20 +0000 (12:01 +0200)] 
Merge pull request #12734 from keszybz/cpu-set-util-on-i386

Fixes for test-cpu-set-util on i386

4 years agobash-completion: support "networkctl delete"
Yu Watanabe [Tue, 4 Jun 2019 08:13:07 +0000 (17:13 +0900)] 
bash-completion: support "networkctl delete"

4 years agojournalctl: mention --smart-relinquish-var in log message
Yu Watanabe [Mon, 27 May 2019 20:17:27 +0000 (05:17 +0900)] 
journalctl: mention --smart-relinquish-var in log message

4 years agojournalctl: fix error cause in log message
Yu Watanabe [Fri, 24 May 2019 13:22:21 +0000 (22:22 +0900)] 
journalctl: fix error cause in log message

If varlink_call() returns negative errno, then `error` is null.

4 years agotest-cpu-set-util: fix allocation size check on i386 12734/head
Zbigniew Jędrzejewski-Szmek [Tue, 4 Jun 2019 07:40:38 +0000 (09:40 +0200)] 
test-cpu-set-util: fix allocation size check on i386

We get just 28 bytes not 32 as on 64-bit architectures (__cpu_set_t is 4 bytes,
we need at least 26, so 28 satisfies the constraints).

4 years agotest-cpu-set-util: fix comparison for allocation size
Zbigniew Jędrzejewski-Szmek [Tue, 4 Jun 2019 07:19:04 +0000 (09:19 +0200)] 
test-cpu-set-util: fix comparison for allocation size

On i386, __cpu_mask is 4 bytes, so we'd check if c.allocated >= 0, and
gcc would warn about a bogus comparison. Let's round up.

Fixes #12726.

4 years agonetwork: remove unused argument in routing_policy_rule_configure()
Yu Watanabe [Tue, 4 Jun 2019 05:40:21 +0000 (14:40 +0900)] 
network: remove unused argument in routing_policy_rule_configure()

4 years agonetwork: fix double free on error path
Yu Watanabe [Tue, 4 Jun 2019 05:25:09 +0000 (14:25 +0900)] 
network: fix double free on error path