]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
5 years agofs-util: add new CHASE_WARN flag to chase_symlinks()
Franck Bui [Thu, 29 Nov 2018 10:08:52 +0000 (11:08 +0100)] 
fs-util: add new CHASE_WARN flag to chase_symlinks()

This flag can be used to make chase_symlinks() emit a warning when it
encounters an error.

Such flag can be useful for generating a comprehensive and detailed warning
since chase_symlinks() can generate a warning with a full context.

For now only warnings for unsafe transitions are produced.

5 years agoNEWS: extend docs on RLIMIT_NOFILE
Lennart Poettering [Wed, 28 Nov 2018 20:58:51 +0000 (21:58 +0100)] 
NEWS: extend docs on RLIMIT_NOFILE

We now settled on 512K, and forgot to update NEWS.

Moreover, explain why 512K was chosen.

5 years agocatalog: reject entries where the language is too short early
Evgeny Vereshchagin [Thu, 29 Nov 2018 02:05:20 +0000 (03:05 +0100)] 
catalog: reject entries where the language is too short early

Closes https://oss-fuzz.com/testcase-detail/5674475278827520

5 years agonetworkd: slightly rework route establishment logic
Lennart Poettering [Wed, 28 Nov 2018 20:25:47 +0000 (21:25 +0100)] 
networkd: slightly rework route establishment logic

Use a for() loop to merge the two very similar loops into one, and add
more comments explaining the logic behing this.

Follow-up for 0d34228fc03f9dc47d1024268b66a23df1914914

5 years agoMerge pull request #10977 from yuwata/test-network-remove-state-file
Yu Watanabe [Thu, 29 Nov 2018 04:38:08 +0000 (13:38 +0900)] 
Merge pull request #10977 from yuwata/test-network-remove-state-file

test-network: optionally remove state file of networkd

5 years agoMerge pull request #10797 from poettering/run-generator
Zbigniew Jędrzejewski-Szmek [Wed, 28 Nov 2018 21:40:55 +0000 (22:40 +0100)] 
Merge pull request #10797 from poettering/run-generator

add new "systemd-run-generator" for running arbitrary commands from the kernel command line as system services using the "systemd.run=" kernel command line switch

5 years agotest-network: stop systemd-networkd.socket during testing 10977/head
Yu Watanabe [Wed, 28 Nov 2018 21:00:19 +0000 (22:00 +0100)] 
test-network: stop systemd-networkd.socket during testing

To suppress noisy warning messages.

5 years agotest-network: clear state file before starting networkd
Yu Watanabe [Wed, 28 Nov 2018 19:03:56 +0000 (20:03 +0100)] 
test-network: clear state file before starting networkd

Otherwise, some tests may disturb others, e.g.,
NetworkdNetWorkTests.test_routing_policy_rule_port_range and
NetworkdNetWorkTests.test_routing_policy_rule.

5 years agotest-network: use /run instead of legacy /var/run
Yu Watanabe [Wed, 28 Nov 2018 18:55:01 +0000 (19:55 +0100)] 
test-network: use /run instead of legacy /var/run

5 years agoMerge pull request #10970 from yuwata/from-name-return-negative-errno
Yu Watanabe [Wed, 28 Nov 2018 18:18:03 +0000 (03:18 +0900)] 
Merge pull request #10970 from yuwata/from-name-return-negative-errno

util: make *_from_name() returns negative errno on error

5 years agoMerge pull request #10948 from ssahani/iprule-port-proto
Yu Watanabe [Wed, 28 Nov 2018 18:17:36 +0000 (03:17 +0900)] 
Merge pull request #10948 from ssahani/iprule-port-proto

networkd: add support to configure ip rule port range and protocol.

5 years agomeson: let's bump RLIMIT_NOFILE hard limit to 512K
Lennart Poettering [Thu, 15 Nov 2018 08:50:42 +0000 (09:50 +0100)] 
meson: let's bump RLIMIT_NOFILE hard limit to 512K

Prompted by:

https://lists.freedesktop.org/archives/systemd-devel/2018-October/041578.html

5 years agosysctl.d: switch net.ipv4.conf.all.rp_filter from 1 to 2
Lubomir Rintel [Wed, 28 Nov 2018 10:44:20 +0000 (11:44 +0100)] 
sysctl.d: switch net.ipv4.conf.all.rp_filter from 1 to 2

This switches the RFC3704 Reverse Path filtering from Strict mode to Loose
mode. The Strict mode breaks some pretty common and reasonable use cases,
such as keeping connections via one default route alive after another one
appears (e.g. plugging an Ethernet cable when connected via Wi-Fi).

The strict filter also makes it impossible for NetworkManager to do
connectivity check on a newly arriving default route (it starts with a
higher metric and is bumped lower if there's connectivity).

Kernel's default is 0 (no filter), but a Loose filter is good enough. The
few use cases where a Strict mode could make sense can easily override
this.

The distributions that don't care about the client use cases and prefer a
strict filter could just ship a custom configuration in
/usr/lib/sysctl.d/ to override this.

5 years agonetworkd: add support to configure ip rule port range and protocol. 10948/head
Susant Sahani [Tue, 27 Nov 2018 05:28:54 +0000 (10:58 +0530)] 
networkd: add support to configure ip rule port range and protocol.

Please see:

iprule: support for ip_proto, sport and dport match options
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=f686f764682745daf6a93b0a6330ba42a961f858

Closes 10622

5 years agofix: systemd-networkd reverse route ordering
Susant Sahani [Mon, 26 Nov 2018 17:13:17 +0000 (22:43 +0530)] 
fix: systemd-networkd reverse route ordering

We missing a default route. Add gateway first.

This fixes https://github.com/systemd/systemd/issues/5430

5 years agoresolved: Increase size of TCP stub replies
Victor Tapia [Wed, 21 Nov 2018 13:01:04 +0000 (14:01 +0100)] 
resolved: Increase size of TCP stub replies

DNS_PACKET_PAYLOAD_SIZE_MAX is limiting the size of the stub replies to
512 with EDNS off or 4096 with EDNS on, without checking the protocol
used. This makes TCP replies for clients without EDNS support to be
limited to 512, making the truncate flag useless if the query result is
bigger than 512 bytes.

This commit increases the size of TCP replies to DNS_PACKET_SIZE_MAX

Fixes: #10816
5 years agoutil: make *_from_name() returns negative errno on error 10970/head
Yu Watanabe [Wed, 28 Nov 2018 08:54:04 +0000 (17:54 +0900)] 
util: make *_from_name() returns negative errno on error

5 years agoutil: also move scripts related to socket-protocol-list.[ch] to shared/
Yu Watanabe [Wed, 28 Nov 2018 11:20:29 +0000 (20:20 +0900)] 
util: also move scripts related to socket-protocol-list.[ch] to shared/

The source files were moved to shared/. Let's also move the relevant scripts.

5 years agotools: move generate-gperfs.py to tools/
Yu Watanabe [Wed, 28 Nov 2018 11:19:41 +0000 (20:19 +0900)] 
tools: move generate-gperfs.py to tools/

5 years agomissing.h: remove duplicate definition of 'struct ethtool_link_settings'
Lennart Poettering [Wed, 28 Nov 2018 07:52:52 +0000 (08:52 +0100)] 
missing.h: remove duplicate definition of 'struct ethtool_link_settings'

Fixes: #10966
5 years agoMerge pull request #10961 from poettering/busctl-monitor-json
Lennart Poettering [Wed, 28 Nov 2018 09:30:53 +0000 (10:30 +0100)] 
Merge pull request #10961 from poettering/busctl-monitor-json

busctl: support json mode also for 'busctl monitor'

5 years agocore: USB function properties do not change dynamically, don't claim so
Lennart Poettering [Tue, 27 Nov 2018 19:08:03 +0000 (20:08 +0100)] 
core: USB function properties do not change dynamically, don't claim so

This reduces our PropertiesChanged signals a bit in size as we don't
keep out blasting properties that cannot change anyway all the time.

5 years agoMerge pull request #10954 from poettering/install-all-fixo
Zbigniew Jędrzejewski-Szmek [Wed, 28 Nov 2018 09:28:05 +0000 (10:28 +0100)] 
Merge pull request #10954 from poettering/install-all-fixo

correct of enabling logic for template units without DefaultInstall=

5 years agoinstall: when enabling a template unit without DefaultInstance= nor specified instanc... 10954/head
Lennart Poettering [Tue, 27 Nov 2018 12:50:37 +0000 (13:50 +0100)] 
install: when enabling a template unit without DefaultInstance= nor specified instance don't do anything

Previously, we'd link the unit file into /etc in this case, but that
should only be done if the unit file is not in the search path anyway,
and this is already done implicitly anyway for all enabled unit files,
hence no reason to duplicate this here.

Fixes: #10253
5 years agoinstall: use structured initializers
Lennart Poettering [Tue, 27 Nov 2018 12:39:20 +0000 (13:39 +0100)] 
install: use structured initializers

5 years agosystemctl: separate out paragraphs in long message with empty line
Lennart Poettering [Tue, 27 Nov 2018 12:52:54 +0000 (13:52 +0100)] 
systemctl: separate out paragraphs in long message with empty line

5 years agosystemctl: bullet lists FTW!
Lennart Poettering [Tue, 27 Nov 2018 12:52:04 +0000 (13:52 +0100)] 
systemctl: bullet lists FTW!

There's no reason to number these items, let's make this a bit nicer by
using proper bullets.

5 years agosystemctl: downgrade log message to LOG_NOTICE
Lennart Poettering [Tue, 27 Nov 2018 12:40:19 +0000 (13:40 +0100)] 
systemctl: downgrade log message to LOG_NOTICE

This log message is not problematic at all, it is merely explanatory,
hence LOG_WARN is too high for this.

5 years agosystemctl: suffix unit file settings with = in our output
Lennart Poettering [Tue, 27 Nov 2018 12:39:28 +0000 (13:39 +0100)] 
systemctl: suffix unit file settings with = in our output

We do this in our man pages and log messages, and hence also in this
explanatory text.

5 years agolocale-util: add unicode bullet to special glyphs
Lennart Poettering [Tue, 27 Nov 2018 12:50:28 +0000 (13:50 +0100)] 
locale-util: add unicode bullet to special glyphs

5 years agobusctl: use new JSON_BUILD_PAIR_CONDITIONAL() for minimizing bus message JSON transfo... 10961/head
Lennart Poettering [Tue, 27 Nov 2018 21:30:30 +0000 (22:30 +0100)] 
busctl: use new JSON_BUILD_PAIR_CONDITIONAL() for minimizing bus message JSON transformations

Let's not generate object fields that aren't defined for a message.

5 years agojson: teach json builder "conditional" object fields
Lennart Poettering [Tue, 27 Nov 2018 21:26:21 +0000 (22:26 +0100)] 
json: teach json builder "conditional" object fields

Quite often when we generate objects some fields should only be
generated in some conditions. Let's add high-level support for that.
Matching the existing JSON_BUILD_PAIR() this adds
JSON_BUILD_PAIR_CONDITIONAL() which is very similar, but takes an
additional parameter: a boolean condition. If "true" this acts like
JSON_BUILD_PAIR(), but if false then the whole pair is suppressed.

This sounds simply, but requires a tiny bit of complexity: when complex
sub-variants are used in fields, then we also need to suppress them.

5 years agobusctl: support json mode also for 'busctl monitor'
Lennart Poettering [Tue, 27 Nov 2018 19:07:58 +0000 (20:07 +0100)] 
busctl: support json mode also for 'busctl monitor'

5 years agoMerge pull request #10967 from evverx/check-directives
Yu Watanabe [Wed, 28 Nov 2018 05:02:42 +0000 (14:02 +0900)] 
Merge pull request #10967 from evverx/check-directives

travis: make sure that *.perf and directives.* files are in sync

5 years agotests: update test/fuzz/fuzz-netdev-parser/directives.netdev 10967/head
Evgeny Vereshchagin [Wed, 28 Nov 2018 04:13:17 +0000 (05:13 +0100)] 
tests: update test/fuzz/fuzz-netdev-parser/directives.netdev

This is a follow-up to 2266864b04257d7a.

5 years agotravis: make sure that *.perf and directives.* files are in sync
Evgeny Vereshchagin [Wed, 28 Nov 2018 03:50:04 +0000 (04:50 +0100)] 
travis: make sure that *.perf and directives.* files are in sync

New features are constantly added to networkd. Apparently, not everybody
knows that the "directives" files should be updated too to make
the fuzzers aware of them.

5 years agotree-wide: more IOVEC_MAKE() conversions
Lennart Poettering [Tue, 27 Nov 2018 09:34:32 +0000 (10:34 +0100)] 
tree-wide: more IOVEC_MAKE() conversions

5 years agotest: make TEST-27 non-racy
Lennart Poettering [Tue, 27 Nov 2018 16:30:23 +0000 (17:30 +0100)] 
test: make TEST-27 non-racy

Not sure how I missed this, but we of course need to wait for the
"systemd-run" commands to finish before we can check the output files
this generated.

5 years agoMerge pull request #10952 from evverx/keep-fuzz-udev-rules-going
Yu Watanabe [Wed, 28 Nov 2018 02:33:27 +0000 (11:33 +0900)] 
Merge pull request #10952 from evverx/keep-fuzz-udev-rules-going

tests: make fuzz-udev-rules work also in the environment created by run_minijail

5 years agotests: suppress "unwanted log lines" in several fuzzers
Evgeny Vereshchagin [Tue, 27 Nov 2018 20:57:33 +0000 (21:57 +0100)] 
tests: suppress "unwanted log lines" in several fuzzers

According to https://oss-fuzz.com/fuzzer-stats/by-fuzzer/fuzzer/libFuzzer/job/libfuzzer_asan_systemd,
fuzz-network-parser, fuzz-netdev-parser and fuzz-journal-remote produce
a lot of unwanted log lines. Let's set the maximum log level to LOG_CRIT
as we do in the other fuzzers.

5 years agotests: make fuzz-udev-rules work also in the environment created by run_minijail 10952/head
Evgeny Vereshchagin [Wed, 28 Nov 2018 00:29:57 +0000 (01:29 +0100)] 
tests: make fuzz-udev-rules work also in the environment created by run_minijail

This should close https://oss-fuzz.com/testcase?key=5642013043589120.

See also https://github.com/google/oss-fuzz/issues/1983.

5 years agoMerge pull request #10951 from thom311/network-dhcp-route-option
Lennart Poettering [Tue, 27 Nov 2018 21:37:22 +0000 (22:37 +0100)] 
Merge pull request #10951 from thom311/network-dhcp-route-option

add accessor for sd_dhcp_route's "option"

5 years agoman,factory: update factory config for nsswitch.conf to match the man pages
Zbigniew Jędrzejewski-Szmek [Tue, 27 Nov 2018 16:02:20 +0000 (17:02 +0100)] 
man,factory: update factory config for nsswitch.conf to match the man pages

Also add a note in the man pages to remind people to adjust the factory config
and other man pages at the same time.

5 years agoMerge pull request #10955 from keszybz/rc-local-more-info
Lennart Poettering [Tue, 27 Nov 2018 16:12:57 +0000 (17:12 +0100)] 
Merge pull request #10955 from keszybz/rc-local-more-info

Provide more information in rc-local-generator

5 years agorc-local-generator: provide more debugging information 10955/head
Zbigniew Jędrzejewski-Szmek [Tue, 27 Nov 2018 14:24:07 +0000 (15:24 +0100)] 
rc-local-generator: provide more debugging information

C.f. https://bugzilla.redhat.com/show_bug.cgi?id=1516188.

5 years agorc-local-generator: use macro to define main()
Zbigniew Jędrzejewski-Szmek [Tue, 27 Nov 2018 14:23:35 +0000 (15:23 +0100)] 
rc-local-generator: use macro to define main()

5 years agoMerge pull request #10944 from poettering/redirect-file-fix
Lennart Poettering [Tue, 27 Nov 2018 12:18:26 +0000 (13:18 +0100)] 
Merge pull request #10944 from poettering/redirect-file-fix

StandardOutput=file: fixes

5 years agoMerge pull request #10902 from poettering/highlight-status
Zbigniew Jędrzejewski-Szmek [Tue, 27 Nov 2018 11:53:43 +0000 (12:53 +0100)] 
Merge pull request #10902 from poettering/highlight-status

Highlight status

5 years agotests: keep going even if setup_mount_namespace has failed
Evgeny Vereshchagin [Tue, 27 Nov 2018 11:47:06 +0000 (12:47 +0100)] 
tests: keep going even if setup_mount_namespace has failed

This should address https://github.com/google/oss-fuzz/issues/1983.

5 years agonetwork: use sd_dhcp_route_get_option() accessor in link_set_dhcp_routes() 10951/head
Thomas Haller [Tue, 27 Nov 2018 11:18:29 +0000 (12:18 +0100)] 
network: use sd_dhcp_route_get_option() accessor in link_set_dhcp_routes()

5 years agonetwork: add sd_dhcp_route_get_option() accessor
Thomas Haller [Tue, 27 Nov 2018 11:09:52 +0000 (12:09 +0100)] 
network: add sd_dhcp_route_get_option() accessor

Since sd_dhcp_lease_get_routes() returns the list of all routes,
the caller may need to differenciate whether the route was option
33 (static-routes) or 121 (classless-static-route).

Add an accessor for the internal field.

5 years agoMerge pull request #10813 from poettering/cgroup-exec-start-pre
Lennart Poettering [Tue, 27 Nov 2018 09:29:17 +0000 (10:29 +0100)] 
Merge pull request #10813 from poettering/cgroup-exec-start-pre

make sure ExecStartPre= and Delegate=yes mix well

5 years agotree-wide: use IOVEC_MAKE() at many places
Lennart Poettering [Mon, 26 Nov 2018 20:52:36 +0000 (21:52 +0100)] 
tree-wide: use IOVEC_MAKE() at many places

5 years agotest: add a test for StandardError=file:… 10944/head
Lennart Poettering [Mon, 26 Nov 2018 20:09:07 +0000 (21:09 +0100)] 
test: add a test for StandardError=file:…

This deserves a test of its, given how broken on so many levels this
previously was.

5 years agocore: be more careful when inheriting stdout fds to stderr
Lennart Poettering [Mon, 26 Nov 2018 20:07:48 +0000 (21:07 +0100)] 
core: be more careful when inheriting stdout fds to stderr

We need to compare the fd name/file name if we inherit an fd from stdout
to stderr. Let's do that.

Fixes: #10875
5 years agobus-unit-util: properly accept StandardOutput=append:… settings
Lennart Poettering [Mon, 26 Nov 2018 20:07:39 +0000 (21:07 +0100)] 
bus-unit-util: properly accept StandardOutput=append:… settings

5 years agodbus-execute: generate the correct transient unit setting
Lennart Poettering [Mon, 26 Nov 2018 20:07:06 +0000 (21:07 +0100)] 
dbus-execute: generate the correct transient unit setting

5 years agodbus-execute: fix indentation
Lennart Poettering [Mon, 26 Nov 2018 20:06:19 +0000 (21:06 +0100)] 
dbus-execute: fix indentation

5 years agocore: drop references to 'StandardOutputFileToCreate'
Lennart Poettering [Mon, 26 Nov 2018 20:05:37 +0000 (21:05 +0100)] 
core: drop references to 'StandardOutputFileToCreate'

This property never existed, let's drop any reference to it.

5 years agoMerge pull request #10949 from yuwata/man-improve-unset
Zbigniew Jędrzejewski-Szmek [Tue, 27 Nov 2018 09:04:20 +0000 (10:04 +0100)] 
Merge pull request #10949 from yuwata/man-improve-unset

man: slightly update man pages of network related units

5 years agoupdate TODO 10797/head
Lennart Poettering [Fri, 16 Nov 2018 11:21:12 +0000 (12:21 +0100)] 
update TODO

5 years agoman: document systemd-run-generator
Lennart Poettering [Fri, 16 Nov 2018 11:15:50 +0000 (12:15 +0100)] 
man: document systemd-run-generator

5 years agoman: document FailureActionExitStatus=/SuccessActionExitStatus=
Lennart Poettering [Fri, 16 Nov 2018 11:40:28 +0000 (12:40 +0100)] 
man: document FailureActionExitStatus=/SuccessActionExitStatus=

5 years agoadd new run-generator
Lennart Poettering [Thu, 15 Nov 2018 21:09:29 +0000 (22:09 +0100)] 
add new run-generator

This is really useful for running commands like this:

        # systemd-run -i someimage.raw -b systemd.run='"some command line"'

This will now run the command line inside a small Type=oneshot service
and even propagate the exit code of the command back to the parent. And
all that with the full system booted up.

By default this causes the system to shutdown right after the command
completed, but this can be tweaked with systemd.run_success_action= and
systemd.run_failure_action=.

Note that when used in VMs the exit status can of course not be
propagate, as VMs don't really know a concept for that.

5 years agocore: allow to set exit status when using SuccessAction=/FailureAction=exit in units
Lennart Poettering [Fri, 16 Nov 2018 10:41:18 +0000 (11:41 +0100)] 
core: allow to set exit status when using SuccessAction=/FailureAction=exit in units

This adds SuccessActionExitStatus= and FailureActionExitStatus= that may
be used to configure the exit status to propagate in when
SuccessAction=exit or FailureAction=exit is used.

When not specified let's also propagate the exit status of the main
process we fork off for the unit.

5 years agoman: update explanation for boolean options 10949/head
Yu Watanabe [Tue, 27 Nov 2018 06:07:58 +0000 (15:07 +0900)] 
man: update explanation for boolean options

5 years agoman: improve the explanation of "Defaults to unset"
Yu Watanabe [Tue, 27 Nov 2018 05:40:25 +0000 (14:40 +0900)] 
man: improve the explanation of "Defaults to unset"

5 years agotest: add test for setting service manager environment variables
Lennart Poettering [Mon, 26 Nov 2018 20:16:27 +0000 (21:16 +0100)] 
test: add test for setting service manager environment variables

This is a follow-up for #10594. I somehow forgot to commit this when I
worked on that.

5 years agoMerge pull request #10947 from poettering/sd-radv-fixes
Yu Watanabe [Tue, 27 Nov 2018 05:24:43 +0000 (14:24 +0900)] 
Merge pull request #10947 from poettering/sd-radv-fixes

sd-radv fixes

5 years agojournald: don't try to rotate user journals in /var/log/journal/ if we are still...
Lennart Poettering [Mon, 26 Nov 2018 16:48:22 +0000 (17:48 +0100)] 
journald: don't try to rotate user journals in /var/log/journal/ if we are still in log-to-runtime-journal mode

Fixes: #10879
5 years agonetworkd: Add support for ERSPAN tunnel
Susant Sahani [Mon, 26 Nov 2018 11:50:09 +0000 (17:20 +0530)] 
networkd: Add support for ERSPAN tunnel

Please see: https://patchwork.ozlabs.org/patch/800327/
```
[NetDev]
Name=erspan-test
Kind=erspan

[Tunnel]
Independent=true
ERSPANIndex=123
Local = 172.16.1.200
Remote = 172.16.1.100
Key=101
SerializeTunneledPackets=true
```

5 years agoFirst restructuration of Logitech mice in 70-mouse.hwdb
Claudius Ellsel [Mon, 26 Nov 2018 20:10:42 +0000 (21:10 +0100)] 
First restructuration of Logitech mice in 70-mouse.hwdb

Untested, just carefully copy and pasted under the created sections. First approach to #10941

5 years agosd-radv: use struct initializers 10947/head
Lennart Poettering [Mon, 26 Nov 2018 21:13:36 +0000 (22:13 +0100)] 
sd-radv: use struct initializers

5 years agosd-radv: per our CODING_STYLE don't use 'bool' in public headers
Lennart Poettering [Mon, 26 Nov 2018 21:13:15 +0000 (22:13 +0100)] 
sd-radv: per our CODING_STYLE don't use 'bool' in public headers

5 years agosd-radv: no need to initialize r to zero
Lennart Poettering [Mon, 26 Nov 2018 21:12:53 +0000 (22:12 +0100)] 
sd-radv: no need to initialize r to zero

5 years agosd-radv: make sure we can deal with in_addr_to_string() failing
Lennart Poettering [Mon, 26 Nov 2018 21:12:38 +0000 (22:12 +0100)] 
sd-radv: make sure we can deal with in_addr_to_string() failing

5 years agosd-radv: when receiving a too short packet, make sure we dequeue it
Lennart Poettering [Mon, 26 Nov 2018 21:12:07 +0000 (22:12 +0100)] 
sd-radv: when receiving a too short packet, make sure we dequeue it

5 years agosd-radv: propagate OOM, it's reason to fail
Lennart Poettering [Mon, 26 Nov 2018 21:11:12 +0000 (22:11 +0100)] 
sd-radv: propagate OOM, it's reason to fail

5 years agosd-radv: follow our usualy rule that destructors can take NULL
Lennart Poettering [Mon, 26 Nov 2018 21:09:57 +0000 (22:09 +0100)] 
sd-radv: follow our usualy rule that destructors can take NULL

5 years agosd-radv: simplify IPv6 address is-null check
Lennart Poettering [Mon, 26 Nov 2018 20:54:52 +0000 (21:54 +0100)] 
sd-radv: simplify IPv6 address is-null check

5 years agosd-radv: drop const from non-ptr argument
Lennart Poettering [Mon, 26 Nov 2018 20:54:31 +0000 (21:54 +0100)] 
sd-radv: drop const from non-ptr argument

5 years agosd-radv: use ether_addr_is_null() where appropriate
Lennart Poettering [Mon, 26 Nov 2018 20:53:26 +0000 (21:53 +0100)] 
sd-radv: use ether_addr_is_null() where appropriate

5 years agounits: make fsck/grows/makefs/makeswap units conflict against shutdown.target
Lennart Poettering [Mon, 26 Nov 2018 16:38:52 +0000 (17:38 +0100)] 
units: make fsck/grows/makefs/makeswap units conflict against shutdown.target

They are the only units we shipped/generated where this was missing really. Let's fix these.

Follow-up for: #10933

5 years agotree-wide: use SWAP_TWO a bit more
Lennart Poettering [Mon, 26 Nov 2018 18:10:26 +0000 (19:10 +0100)] 
tree-wide: use SWAP_TWO a bit more

5 years agotest-network: add tests for #5430 and GatewayOnLink=
Yu Watanabe [Mon, 26 Nov 2018 06:46:55 +0000 (15:46 +0900)] 
test-network: add tests for #5430 and GatewayOnLink=

5 years agoMerge pull request #10928 from yuwata/fix-9940
Lennart Poettering [Mon, 26 Nov 2018 17:46:47 +0000 (18:46 +0100)] 
Merge pull request #10928 from yuwata/fix-9940

network: also load foo.netdev.d/*.conf

5 years agoman: link Delegate= documentation up with the markdown docs 10813/head
Lennart Poettering [Fri, 16 Nov 2018 19:29:02 +0000 (20:29 +0100)] 
man: link Delegate= documentation up with the markdown docs

5 years agodocs: document the .control/ subcgroup contract in the docs
Lennart Poettering [Fri, 16 Nov 2018 19:25:54 +0000 (20:25 +0100)] 
docs: document the .control/ subcgroup contract in the docs

5 years agocore: when Delegate=yes is set for a unit, run ExecStartPre= and friends in a subcgro...
Lennart Poettering [Fri, 16 Nov 2018 19:19:07 +0000 (20:19 +0100)] 
core: when Delegate=yes is set for a unit, run ExecStartPre= and friends in a subcgroup of the unit

Otherwise we might conflict with the "no-processes-in-inner-cgroup" rule
of cgroupsv2. Consider nspawn starting up and initializing its cgroup
hierarchy with "supervisor/" and "payload/" as subcgroup, with itself
moved into the former and the payload into the latter. Now, if an
ExecStartPre= is run right after it cannot be placed in the main cgroup,
because that is now in inner cgroup with populated children.

Hence, let's run these helpers in another sub-cgroup .control/ below it.

This is somewhat ugly since it weakens the clear separation of
ownership, but given that this is an explicit contract, and double opt-in should be acceptable.

Fixes: #10482
5 years agounit: tweak status output a bit 10902/head
Lennart Poettering [Fri, 23 Nov 2018 16:46:25 +0000 (17:46 +0100)] 
unit: tweak status output a bit

Let's highlight the unit description string in the status updates, to
separate them a bit more the english sentence they are part of, and thus
make the different casing less surprising.

5 years agoshow-status: use free_and_replace() where we can
Lennart Poettering [Fri, 23 Nov 2018 16:19:24 +0000 (17:19 +0100)] 
show-status: use free_and_replace() where we can

5 years agoshow-status: fold two bool flags function arguments into a flags
Lennart Poettering [Fri, 23 Nov 2018 16:18:48 +0000 (17:18 +0100)] 
show-status: fold two bool flags function arguments into a flags
parameter

5 years agoMerge pull request #10919 from yuwata/sd-device-monitor-fixes
Lennart Poettering [Mon, 26 Nov 2018 17:08:41 +0000 (18:08 +0100)] 
Merge pull request #10919 from yuwata/sd-device-monitor-fixes

sd-device-monitor: several fixes

5 years agogenerator.c: systemd-fsck-root.service conflict with shutdown.target
Harald Hoyer [Mon, 26 Nov 2018 10:41:29 +0000 (11:41 +0100)] 
generator.c: systemd-fsck-root.service conflict with shutdown.target

Otherwise a "reboot" or "poweroff" in the initramfs will have to wait
until systemd-fsck-root.service has completed, which might never happen
if the root device never shows up.

5 years agotest-network: add one more test for netdev dropin .conf files 10928/head
Yu Watanabe [Mon, 26 Nov 2018 13:05:48 +0000 (22:05 +0900)] 
test-network: add one more test for netdev dropin .conf files

For netdev, config files are loaded twice, and the first time,
only Match and NetDev setions are read. So, the test given by
the previous commit covers only the second loading.
This adds another test that also covers the first loading.

5 years agoMerge pull request #10901 from poettering/startswith-list
Yu Watanabe [Mon, 26 Nov 2018 13:40:51 +0000 (22:40 +0900)] 
Merge pull request #10901 from poettering/startswith-list

add new STARTSWITH_SET() macro

5 years agoMerge pull request #10927 from yuwata/udev-ctrl-cleanup
Lennart Poettering [Mon, 26 Nov 2018 13:23:28 +0000 (14:23 +0100)] 
Merge pull request #10927 from yuwata/udev-ctrl-cleanup

udev: update log messages and fix coding style issues

5 years agoMerge pull request #10925 from yuwata/sd-boot-fixes
Lennart Poettering [Mon, 26 Nov 2018 13:20:36 +0000 (14:20 +0100)] 
Merge pull request #10925 from yuwata/sd-boot-fixes

sd-boot: fixes trailing whitespace trimming and updates document

5 years agoMerge pull request #10910 from yuwata/list-cleanups
Lennart Poettering [Mon, 26 Nov 2018 13:19:03 +0000 (14:19 +0100)] 
Merge pull request #10910 from yuwata/list-cleanups

basic/list: tiny fixes

5 years agoMerge pull request #10909 from yuwata/import-cleanups
Lennart Poettering [Mon, 26 Nov 2018 13:18:23 +0000 (14:18 +0100)] 
Merge pull request #10909 from yuwata/import-cleanups

Import: cleanups