Lennart Poettering
81a965187d
update TODO
2022-07-11 17:37:41 +02:00
Yu Watanabe
286bf3a940
test-network: extend timeout for DHCP lease to be expired
...
Fixes #23964 .
2022-07-11 16:54:45 +02:00
Yu Watanabe
4eb5f1db44
sd-device: shorten code a bit
2022-07-11 15:27:21 +02:00
Lennart Poettering
39e419a2b5
tree-wide: trivial tweaks
2022-07-11 15:11:58 +02:00
Lennart Poettering
9c18b36372
update TODO
2022-07-11 15:11:58 +02:00
Luca Boccassi
3a883d36eb
mkosi: update to latest main
...
Fix build failure on SUSE Tumbleweed due to config changes
2022-07-11 13:29:28 +01:00
Yu Watanabe
ef674d0ea3
unit-def: align string tables
2022-07-11 14:19:59 +02:00
Yu Watanabe
5c86cec1f3
virt: align tables
2022-07-11 14:13:33 +02:00
Yu Watanabe
591c186f2f
sd-device: make sd_device_get_is_initialized() not return -ENOENT
2022-07-11 14:08:52 +02:00
Luca Boccassi
8924cbf34a
Merge pull request #23962 from keszybz/taint-flag-support-ended
...
Taint flag "support-ended"
2022-07-10 22:42:56 +01:00
Zbigniew Jędrzejewski-Szmek
4bd035153b
manager: add taint flag "support-ended"
...
In the welcome line, use NAME= as the fallback for PRETTY_NAME=.
PRETTY_NAME= doesn't have to be set, but NAME= should.
Example output:
---
Welcome to Fedora Linux 37 (Rawhide Prerelease)!
[ !! ] This OS version (Fedora Linux 37 (Rawhide Prerelease)) is past its end-of-support date (1999-01-01)
Queued start job for default target graphical.target.
[ OK ] Created slice system-getty.slice.
---
2022-07-10 14:33:52 +02:00
Zbigniew Jędrzejewski-Szmek
8bf9eb7e6b
man: update the description of taint flags
...
We had a description in README, and an outdated list in the man page.
I think we should keep a reference-style list in the man page. The description
in README is more free-form.
2022-07-09 19:18:14 +02:00
Zbigniew Jędrzejewski-Szmek
caa779abb6
man: redefine SUPPORT_END= to mean one day earlier
...
I thought it would be nice to specify the last day of support, because I
thought it'd seem more natural. But in practice this doesn't work well, because
such a truncated timestamp is usually taken to mean midnight that starts the
given date. I.e. 2011-12-13 is a shorthand for 2011-12-13 00:00:00 and not
2011-12-13 23:59:59.999999999999. Let's instead specify that the given date is
the first unsupported day, which is meaningful for humans, and let the computer
treat it as midnight, which gives consistent interpratation.
2022-07-09 18:02:34 +02:00
Yu Watanabe
0d609349ba
resolve: introduce FORMAT_DNS_RCODE() macro
...
Fixes #23958 .
2022-07-09 19:51:23 +09:00
Frantisek Sumsal
c9472f9102
Merge pull request #23959 from yuwata/test-network
...
test-network: several performance improvements
2022-07-09 08:21:32 +00:00
Yu Watanabe
37611ccb19
test-network: use wait_operstate() at one more place
2022-07-09 12:20:11 +09:00
Yu Watanabe
894ff7d1ab
test-network: suppress periodic output in wait_operstate()
2022-07-09 12:19:52 +09:00
Yu Watanabe
163d095fc3
test-network: disable debugging logs from networkctl, resolvectl, and so on
2022-07-09 12:19:20 +09:00
Yu Watanabe
589af70b87
test-network: merge two DHCPv6 client tests
2022-07-09 11:44:25 +09:00
Yu Watanabe
4b31fc88ac
test-network: replace sleep with wait_address() and wait_address_dropped()
2022-07-09 11:44:25 +09:00
Yu Watanabe
0730e3767d
test-network: merge two more tests with test_dhcp_client_ipv4_only
2022-07-09 11:44:25 +09:00
Yu Watanabe
3d8e0aa2de
test-network: merge tests for UseDNS=
2022-07-09 11:44:25 +09:00
Yu Watanabe
2d7a594fee
test-network: merge two IPv4LL tests
2022-07-09 11:44:25 +09:00
Yu Watanabe
15519a81ac
test-network: drop test_dhcp_client_ipv4_ipv6
...
As the test is covered by test_dhcp_client_reuse_address_as_static.
2022-07-09 11:44:25 +09:00
Yu Watanabe
3857d367f0
sd-dhcp-client: fix log message
2022-07-09 11:44:25 +09:00
Yu Watanabe
2b6a24a602
test-network: check DHCPv4 address in more detail
...
Also, this drops redundant address check through networkctl.
2022-07-09 11:44:25 +09:00
Yu Watanabe
e81083f2d8
test-network: drop 25-dhcp-v4-server-veth-peer.network
2022-07-09 11:44:25 +09:00
Yu Watanabe
b17947d9cf
test-network: drop meaningless test
...
On DHCPv6 lease renew, the kernel do not drop static routes, and hence
we do not try to reassign them. Hence, the test is mostly meaningless.
2022-07-09 11:44:25 +09:00
Yu Watanabe
063c7e9b13
test-network: introduce read_dnsmasq_log_file() helper function
...
This reduces the number of times that the log file is read.
Also, dropped unnecessary dump of the log file.
2022-07-09 11:44:25 +09:00
Yu Watanabe
a102a52c34
test-network: shorten sleep time a bit
...
Network interfaces will be ready after lease is acquired.
Hence, it is not necessary to wait more than lease time.
2022-07-09 11:44:25 +09:00
Yu Watanabe
1a8e1d7853
test-network: introduce read_link_state_file() helper function
2022-07-09 11:44:21 +09:00
Yu Watanabe
d5ad2ec1d4
network: drop redundant warning
...
If file is world readable, then `read_full_file_full()` will warn
about that.
2022-07-09 01:09:23 +01:00
Luca Boccassi
b2e8f2d853
Merge pull request #23940 from yuwata/core-extract-first-word
...
core: fix error value in log_syntax()
2022-07-09 01:09:06 +01:00
Luca Boccassi
89f119b654
Merge pull request #23731 from bluca/bootctl_image
...
bootctl: add --root and --image
2022-07-08 21:59:16 +01:00
Evgeny Vereshchagin
686a0d387d
Merge pull request #23954 from yuwata/resolve-overflow
...
resolve: fix heap-buffer-overflow
2022-07-08 23:39:31 +03:00
Yu Watanabe
325513bc77
resolve: mdns: calculate required packet size to store questions and authorities
...
Otherwise, if we have many cached entries or pending transactions with
TYPE_ANY, then dns_transaction_make_packet_mdns() fails with -EMSGSIZE.
This also fixes use-after-free.
Fixes #23894 .
2022-07-09 05:20:10 +09:00
Yu Watanabe
055acd4d8b
resolve: do not trigger assertions on invalid query
2022-07-09 05:20:10 +09:00
Yu Watanabe
f2605af1f2
resolve: mdns_packet_extract_matching_rrs() may return 0
...
Fixes the following assertion:
---
Assertion 'r > 0' failed at src/resolve/resolved-mdns.c:180, function mdns_do_tiebreak(). Aborting.
---
2022-07-09 05:20:09 +09:00
Yu Watanabe
d3887b2b48
resolve: shorten code a bit
2022-07-09 05:20:09 +09:00
Yu Watanabe
87b91644db
resolve: introduce dns_transaction_setup_timeout()
...
This also fixes timeout in dns_transaction_make_packet_mdns(), which was
incremented multiple times.
2022-07-09 05:20:09 +09:00
Yu Watanabe
765647ba80
resolve: fix misuse of accuracy parameter in sd_event_add_time()
...
Also, this makes mDNS regular queries sent without delay (except for
one caused by the default accuracy of sd-event).
Note, RFC 6762 Section 5.2 is about continuous mDNS query, which is not
implemented yet.
2022-07-09 05:20:09 +09:00
Yu Watanabe
4b2ceb8a48
resolve: drop unnecessary else, and add short comment
2022-07-09 05:20:09 +09:00
Yu Watanabe
c3dbb13288
Revert "resolve: mDNS transaction max attempts fix"
...
This reverts commit 127b26f3d8 .
The commit made mDNS queries quite unstable.
Note that, RFC 6762 does not explicitly prohibit to send a request
multiple times.
2022-07-09 05:20:09 +09:00
Yu Watanabe
d50a58e725
resolve: mdns: fix use-after-free
...
Fixes #23843 and #23873 .
2022-07-09 05:20:09 +09:00
Yu Watanabe
4bc4040bc0
sd-device: send udev database version
...
Otherwise, sd-device object received through sd-device-monitor does not
show current tags.
Fixes #23799 .
2022-07-09 04:53:36 +09:00
Yu Watanabe
793ab3e9dd
sd-device: make device_get_properties_{nulstr,strv}() take NULL for result value
...
In most cases, it is not necessary to call them without retrieving
result. But, most of other getter functions for sd-device can take NULL.
Let's follow the way for consistency.
2022-07-09 04:14:44 +09:00
Yu Watanabe
cff31876da
sd-device: change type of properties nulstr from uint8_t* to char*
2022-07-09 04:12:42 +09:00
Yu Watanabe
d38655d792
core/cgroup: drop unnecessary else
2022-07-09 03:37:43 +09:00
Yu Watanabe
fe1ed553b3
core: shorten code a bit
2022-07-09 03:37:43 +09:00
Yu Watanabe
6a35d52d78
core/load-fragment: fix error value in log_syntax()
...
`extract_first_word()` may return positive value on success.
2022-07-09 03:36:58 +09:00