Frantisek Sumsal
ea1cdaf262
fuzz: add a memleak reproducer for fuzz-nspawn-settings
2019-03-11 14:13:09 +01:00
Frantisek Sumsal
b5b499b32c
fuzz: add nspawn-settings fuzzer
2019-03-11 14:13:00 +01:00
Frantisek Sumsal
18d51b4509
fuzz: add env-file fuzzer
2019-03-11 14:11:28 +01:00
Yu Watanabe
1ec38b8574
test: add test for ID_RENAMING= udev property handling by pid1
2019-03-07 17:28:19 +09:00
Zbigniew Jędrzejewski-Szmek
f27abfccd0
fuzz-dns-packet: add test case with lots of labels
...
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13422
2019-03-04 15:53:37 +01:00
Lennart Poettering
46d4d67d79
Merge pull request #11820 from dm0-/chase
...
Allow tmpfiles to create files in a root under an unprivileged directory
2019-03-04 13:04:45 +01:00
Yu Watanabe
26bf9c302d
test-network: add tests for address pool
2019-03-01 16:34:55 +09:00
David Michael
8595c4588c
TEST-22: add test for unprivileged dirs in root prefixes
...
This verifies the fix for the issue described in:
https://github.com/systemd/systemd/pull/11820
2019-02-28 13:06:07 -05:00
Zbigniew Jędrzejewski-Szmek
2fe4c28d30
Merge pull request #11834 from martinpitt/network-test-fixes
...
networkd-test fix/improvement
2019-02-28 17:48:41 +01:00
Yu Watanabe
af3b1498c6
test-network: add testcase for #1850
2019-02-28 10:34:27 +09:00
Yu Watanabe
9cb8c55934
network: rename GatewayOnlink= to GatewayOnLink=
...
But still GatewayOnlink= is supported for backward compatibility.
2019-02-28 10:00:22 +09:00
Martin Pitt
09b8826ea3
networkd-test: ignore failures of test_route_only_dns* in containers
...
This test exposes a race condition when running in LXC, see issue #11848
for details. Until that is understood and fixed, skip the test as it's
not a recent regression.
2019-02-27 23:15:31 +01:00
Martin Pitt
829c0672e0
networkd-test: specify Address= with prefix length
...
This avoids a warning:
An address '192.168.42.100' is specified without prefix length. The
behavior of parsing addresses without prefix length will be changed
in the future release. Please specify prefix length explicitly.
2019-02-27 22:53:57 +01:00
Martin Pitt
74c13b7659
networkd-test: show service journal on startup failure
...
This provides easier evaluation of failed tests.
2019-02-27 22:53:57 +01:00
Lennart Poettering
dc16327c48
Merge pull request #11795 from yuwata/fix-network-routing-policy-11280
...
network: fix routing policy rule issue #11280
2019-02-27 18:43:56 +01:00
Lennart Poettering
200fb167a2
Merge pull request #11844 from keszybz/networkd-fuzzer-fixes
...
Networkd fuzzer fixes
2019-02-27 17:45:55 +01:00
Zbigniew Jędrzejewski-Szmek
c448459d56
networkd: refuse more than 128 NTP servers
...
This test case is a bit silly, but it shows that our code is unprepared to
handle so many network servers, with quadratic complexity in various places.
I don't think there are any valid reasons to have hundres of NTP servers
configured, so let's just emit a warning and cut the list short.
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13354
2019-02-27 14:52:33 +01:00
Zbigniew Jędrzejewski-Szmek
83ec459276
networkd: fix memleak when the same NetDev is specified twice
...
hashmap_put() returns 0 if the (key, value) pair is already present in the
hashmap, and -EEXIST if the key exists, but the value is different.
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13433
2019-02-27 14:31:28 +01:00
Yu Watanabe
b677774d69
test-network: add testcase for issue #11280
2019-02-27 19:24:13 +09:00
Yu Watanabe
703bc7a2a6
test-network: drop relevant ip routing policy rules before testing
2019-02-27 19:23:46 +09:00
Yu Watanabe
72b7f1b976
test-network: add test for MTUBytes= in vlan or macvlan devices
2019-02-27 10:05:02 +09:00
Lennart Poettering
f3892edd5e
Merge pull request #11824 from keszybz/fuzzer-fixes
...
Fuzzer fixes
2019-02-26 19:02:12 +01:00
Lennart Poettering
8c28360a21
Merge pull request #11823 from keszybz/more-fuzz-coverage
...
More fuzz coverage
2019-02-26 17:21:32 +01:00
Zbigniew Jędrzejewski-Szmek
92e068b465
basic/utf8: do not read past end of string when looking for a multi-byte character
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9341 .
2019-02-26 12:37:40 +01:00
Yu Watanabe
10f6188b67
fuzz: add a sample for fuzz-udev-database
2019-02-26 13:28:30 +09:00
Lennart Poettering
510dc4da13
Merge pull request #11767 from yuwata/network-bridge-enslaved
...
network: extend 'enslaved' state to bridge slave
2019-02-25 19:29:30 +01:00
Zbigniew Jędrzejewski-Szmek
4c4589227e
fuzz-unit-file: add some directives for stuff coverage reports as not covered
...
Some of those directives appear in the corpus, but without arguments, so maybe
the fuzzing libraries can't trigger the right cases. Let's help them.
2019-02-25 15:46:23 +01:00
Yu Watanabe
eac31d708f
fuzz: add directives.link and 99-default.link for fuzz-link-parser
...
Also adds several reproducers of errors fixed in earlier commits.
2019-02-25 12:40:42 +09:00
Yu Watanabe
6609924c32
test-network: add more tests for IgnoreCarrierLoss=
...
Suggested by @amishmm in #9262 .
2019-02-25 09:34:14 +09:00
Yu Watanabe
2be6c5d2ec
test-network: add more tests for Bridge=
2019-02-25 09:34:14 +09:00
Yu Watanabe
cc3e488c7d
test-network: testing with two bond slaves
2019-02-23 19:43:25 +09:00
Yu Watanabe
3dd2d52414
test-udev: fix alignment and drop unnecessary white spaces
2019-02-22 06:50:21 +09:00
Yu Watanabe
84a0819c9d
test-udev: add more tests for line continuation
2019-02-22 06:50:20 +09:00
Lennart Poettering
953a1af082
Merge pull request #11776 from keszybz/networkd-ordered-sets
...
Store domains lists in OrderedSets in networkd
2019-02-21 15:15:11 +01:00
Martin Pitt
f5cf985e9c
networkd-test: fix test_dropin()
...
- This test needs resolved, so make sure it is started. In some Debian
environments it is not.
- It was an unnecessary, and now failing assumption that name servers
get atomically written to the resolved's resolv.conf. Wait until both
expected name servers are in the file.
2019-02-21 12:37:08 +01:00
Martin Pitt
ca56805c8d
networkd-test: use a complete domain name in test_route_only_dns()
...
Since version 241 (commit ea4678?), querying MX type records for
single-label domains does not actually forward the query to the DNS
server any more. Use "example.com" instead, which is the recommended
test domain anyway.
2019-02-21 12:37:08 +01:00
Martin Pitt
6592c9c850
networkd-test: disable DNSSEC in domain-restricted DNS test
...
dnsmasq 2.80 changed behaviour when being queried by resolved with
enabled DNSSEC: It returns errors for SOA and DS queries which cause the
entire query to fail. As we don't configure DNSSEC in this test anyway,
just disable it so that we retain compatibility with old and new dnsmasq
versions.
2019-02-21 12:37:06 +01:00
Zbigniew Jędrzejewski-Szmek
95b2903bde
tests: shorten the fuzz test case
...
The test was failing in Ubuntu CI with a 30s timeout. It makes
sense to keep the file so exercise the set allocation logic, but
we can make it shorter.
2019-02-21 12:30:13 +01:00
Zbigniew Jędrzejewski-Szmek
5e2a51d588
networkd: use OrderedSets instead of strvs to store lists of domains
...
We were already using OrderedSets in the manager object, but strvs in the
configuration parsing code. Using sets gives us better scaling when many
domains are used.
In oss-fuzz #13059 the attached reproducer takes approximately 30.5 s to be
parsed. Converting to sets makes this go down to 10s. This is not _vastly_
faster, but using sets seems like a nicer approach anyway. In particular, we
avoid the quadratic de-unification operation after each addition.
2019-02-21 12:04:27 +01:00
Yu Watanabe
4da3315452
test-network: add testcases for handling disable_ipv6 sysctl property
2019-02-21 11:08:07 +09:00
Yu Watanabe
ecdd039246
test-network: update cosmetic workaround
...
Almost all tests call copy_unit_to_networkd_unit_path() at first.
So, let's move the line break there.
2019-02-21 10:55:46 +09:00
Anita Zhang
7ca69792e5
core: add ':' prefix to ExecXYZ= skip env var substitution
2019-02-20 17:58:14 +01:00
Yu Watanabe
2dcaf38020
Merge pull request #11764 from yuwata/network-verify
...
network: introduce network_verify() and drop incompatible settings
2019-02-20 06:13:53 +09:00
Yu Watanabe
0cc972aac3
test-network: add tests for meaningless settings which should be ignored by networkd
2019-02-20 06:12:54 +09:00
Yu Watanabe
71064bd5ac
Merge pull request #11759 from yuwata/fix-test-dropin
...
test-network: check whether ethtool support driver field for dummy interfaces
2019-02-20 06:11:11 +09:00
Yu Watanabe
b1b10691be
Merge pull request #11757 from yuwata/test-udev-continuation
...
test-udev: add more tests for line continuations and comments
2019-02-20 06:10:37 +09:00
Yu Watanabe
232152bcb1
test-network: check whether ethtool support driver field for dummy interfaces
...
Fixes #11758 .
2019-02-19 22:00:06 +09:00
Yu Watanabe
f32c600935
test-network: disable test for Driver field in networkctl
...
CentOS CI does not like the test. Let's at least tentatively disable the test.
2019-02-19 17:39:05 +09:00
Yu Watanabe
fde66c2120
test-network: update format used by networkctl status
2019-02-19 17:38:30 +09:00
Yu Watanabe
d35976c670
test-udev: add more tests for line continuations and comments
2019-02-19 09:22:45 +09:00