Yu Watanabe
60f97fee2d
meson: refuse -ffinite-math-only
...
Closes #23610 .
2022-07-21 09:18:13 +09:00
Yu Watanabe
1561db8ac2
json: use fpclassify() or its helper functions
2022-07-21 09:18:13 +09:00
Yu Watanabe
fbccfa95c4
math-util: introduce iszero_safe() and fp_equal()
2022-07-21 09:18:08 +09:00
Yu Watanabe
39229a2a0e
test: use fabs() as the argument is double
...
This also drop unnecessary cast.
2022-07-21 09:06:53 +09:00
Yu Watanabe
e1b45a756f
tree-wide: fix typo
2022-07-20 13:15:37 +09:00
Yu Watanabe
5509518193
Merge pull request #24047 from dtardon/list-users-linger
...
Add linger status to `loginctl list-users`
2022-07-18 15:05:25 +09:00
Yu Watanabe
59159aee20
Merge pull request #24018 from keszybz/generator-cleanups
...
Make generators easier to test, fix various corner issues
2022-07-16 05:11:49 +09:00
Yu Watanabe
c798e1dfee
Merge pull request #24035 from yuwata/sd-event-cleanup
...
sd-event: tiny cleanups
2022-07-16 05:11:00 +09:00
Yu Watanabe
c8e9d15cbf
sd-event: introduce PROTECT_EVENT() macro
2022-07-16 00:42:39 +09:00
Yu Watanabe
76d04c3a34
sd-event: drop redundant code
...
The function `source_io_unregister()` will be anyway called in
`source_disconnect()`.
2022-07-16 00:38:37 +09:00
Yu Watanabe
08894b568f
Merge pull request #24021 from poettering/man-rlimit-comments
...
man: elaborate on the usefulness (and not-so-usefulness) of various process resource limits
2022-07-15 08:28:53 +09:00
Yu Watanabe
3f5ef8aeac
Merge pull request #24019 from yuwata/network-ipv4ll
...
network: refuse 169.254.0.0/24 and 169.254.255.0/24
2022-07-15 07:59:13 +09:00
Yu Watanabe
dfeb5a076a
Merge pull request #24016 from poettering/sysctl-cred-extra
...
sysctl: also process sysctl requests via the "sysctl.extra" credential
2022-07-15 04:20:35 +09:00
Yu Watanabe
72c747e6d1
test-network: add a test case for IPv4LLStartAddress=
2022-07-15 04:01:56 +09:00
Yu Watanabe
d3efcd2def
network: refuse 169.254.0.0/24 and 169.254.255.0/24 for IPv4LLStartAddress=
...
Follow-up for #23927 .
2022-07-15 03:37:09 +09:00
Yu Watanabe
c1dd250f18
Merge pull request #23927 from AndreKalb/feature/ipv4-link-local-start-address
...
network: Feature IPv4 link-local start address
2022-07-15 03:21:26 +09:00
Yu Watanabe
e3979a6256
Merge pull request #23999 from msekletar/revert-background-session-no-user-instance
...
Revert of recent changes in handling of background sessions
2022-07-15 03:18:08 +09:00
Yu Watanabe
b9e4ec500e
network: refuse to configure address or route with 0 valid lifetime
...
Fixes #23625 .
2022-07-14 21:00:05 +09:00
Yu Watanabe
5235d73960
network: fix infinite lifetime handling
2022-07-14 20:56:41 +09:00
Yu Watanabe
def4741bd7
network: use sd_event_now()
2022-07-14 20:55:24 +09:00
Yu Watanabe
3f0dbb0f0c
sd-bus: do not pass NULL when received message with invalid type
...
Fixes #24003 .
2022-07-14 10:08:27 +02:00
Yu Watanabe
68870a46b3
sd-dhcp6-client: fix off-by-one error in parsing dhcp6 options
...
This fixes error in parsing message when the rapid commit option is
located at the end of the message.
Fixes an issure reported in #24002 .
2022-07-14 10:49:18 +09:00
Yu Watanabe
d81b5a191e
sd-dhcp6-client: allow NULL option value when length is zero
2022-07-14 10:49:14 +09:00
Yu Watanabe
50309ff785
sd-dhcp6-client: add more debugging logs on parsing message
2022-07-14 09:31:04 +09:00
Yu Watanabe
a5a8714187
Merge pull request #23882 from dtardon/logind-set-display-test
...
Add tests for org.freedesktop.login1.Session SetType and SetDisplay
2022-07-14 07:35:23 +09:00
Yu Watanabe
3be64aa462
network: do not set invalid MAC address for non-ethernet interface
2022-07-14 06:52:07 +09:00
Yu Watanabe
56bb67180a
network: NDisc does not require MAC address
...
This effectively revert ba4c7184b3 .
Fixes #23546 .
2022-07-14 06:52:07 +09:00
Yu Watanabe
7e2f684e1f
network: dhcp4: disable DHCPv4 client on interfaces with non-supported types
...
Replaces f42d41cc5f .
2022-07-14 06:52:07 +09:00
Yu Watanabe
8f4f630731
Revert "network: configure DHCP clients after MAC address is assigned"
...
This reverts commit f42d41cc5f .
DHCPv6 client does not require MAC address.
DHCPv4 client will be handled in a different way in a later commit.
Partially fixes #23546 .
2022-07-14 06:51:59 +09:00
Yu Watanabe
f54dce2d4f
test-network: save and restore timezone
...
Several DHCP client tests change the system timezone.
Let's save the current timezone at the beginning, and restore it with
the saved value at the end.
2022-07-13 10:30:48 +02:00
Yu Watanabe
0925c79c9e
Merge pull request #23881 from keszybz/kernel-install-strikes-yet-again
...
kernel-install: fix invocation as installkernel, add tests, tweak documentation
2022-07-13 02:44:50 +02:00
Yu Watanabe
e11d0e3925
test-network: wait for L2TP tunnels being removed
...
Fixes #23985 .
2022-07-13 02:36:14 +02:00
Yu Watanabe
12a233265d
Merge pull request #23980 from yuwata/test-network
...
test-network: tiny output improvements
2022-07-12 01:27:36 +02:00
Yu Watanabe
12799947e2
Merge pull request #23972 from yuwata/sd-device
...
sd-device: do not return -ENOENT by sd_device_get_is_initialized()
2022-07-11 22:44:56 +02:00
Yu Watanabe
64d847b886
Merge pull request #23974 from yuwata/align-tables
...
basic: align tables
2022-07-11 22:43:45 +02:00
Yu Watanabe
e755ad61ba
test-network: support to remove routing policy rules with l3mdev flag
2022-07-11 22:39:26 +02:00
Yu Watanabe
b5dac5b0de
test-network: merge stdout and stderr of invoked command by call()
...
Otherwise, the logs may be messed up.
2022-07-11 22:38:21 +02:00
Yu Watanabe
a962d85797
test-network: various cleanups
...
- introduce several helper functions
- do not list unit files, but remove the runtime unit directory in
tearDown().
- do not list used interfaces, but remove all interfaces previously not
exists in tearDown().
- save routes and routing policy rules before running tests, and flush
unnecessary routes and rules in each tearDown() calls.
- drop many time.sleep() calls.
- call tearDown() after each sub tests.
- shorten code.
- several coding style fixes.
- etc, etc...
Hopefully, this improves performance of the test.
2022-07-11 19:57:24 +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
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
Yu Watanabe
0d609349ba
resolve: introduce FORMAT_DNS_RCODE() macro
...
Fixes #23958 .
2022-07-09 19:51:23 +09: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
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
Yu Watanabe
9d9fd4ad0a
test: start test user session before idle action setting is changed
...
Otherwise, idle action may be triggered before starting the test user
session.
This also introduce create_session() and cleanup_session() helper
functions.
Fixes #23952 .
2022-07-08 16:14:38 +00:00
Yu Watanabe
9102c625a6
time-util: fix buffer-over-run
...
Fixes #23928 .
2022-07-08 16:09:46 +02:00
Yu Watanabe
370999c05b
resolve: fix possible integer overflow
2022-07-08 22:13:24 +09:00
Yu Watanabe
18f2638f48
test-network: merge DHCP client tests to improve performance
2022-07-08 13:04:02 +00:00
Yu Watanabe
beeab352de
resolve: fix heap-buffer-overflow reported by ASAN with strict_string_checks=1
...
Fixes #23942 .
2022-07-08 22:01:02 +09:00
Yu Watanabe
74af762551
test: use timeout command to improve performance
...
c.f. #23723 .
2022-07-08 07:02:13 +09:00
Yu Watanabe
d64c7623ab
test: remove /failed and /testok before running test script
2022-07-08 07:00:02 +09:00
Yu Watanabe
0d6217efc1
Merge pull request #23937 from mrc0mmand/test-tweaks
...
Several ASan-related test suite tweaks
2022-07-08 06:25:57 +09:00
Yu Watanabe
cd34a381ba
Merge pull request #23939 from mrc0mmand/TEST-70-fix-cleanup
...
Fix cleanup in TEST-70-TPM2
2022-07-08 05:44:12 +09:00
Yu Watanabe
63663a0f0f
test: several cleanups for TEST-35-LOGIN
...
- use test_append_files() to install additional commands
- drop use of expect
- include assert.sh and use assertions at several places
- use timeout command at several places
- always use logind-test-user
- etc
2022-07-07 13:15:00 +00:00
Yu Watanabe
4d2b0c7fa5
Merge pull request #23932 from medhefgo/boot-misc
...
boot: Miscellaneous cleanups
2022-07-07 19:59:05 +09:00
Yu Watanabe
557218776e
systemctl: drop color settings in log message
...
`log_warning()` colorize the message gracefully.
2022-07-07 16:40:06 +09:00
Yu Watanabe
158fdd5326
systemctl: enable colorized logging by default
2022-07-07 16:40:06 +09:00
Yu Watanabe
b5fe371c0e
Merge pull request #23569 from msekletar/pam-systemd-no-user-systemd
...
Don't spawn systemd --user instance for background (i.e. cron) sessions
2022-07-07 10:33:21 +09:00
Yu Watanabe
948fce5118
test: fix typo
2022-07-07 09:33:11 +09:00
Yu Watanabe
47b86590af
TODO: fix typo
2022-07-07 09:31:43 +09:00
Yu Watanabe
99080ed3f0
Merge pull request #23396 from msekletar/fix-idle-action-lock
...
logind: remember our idle state and use it to detect idle level transitions
2022-07-07 07:42:51 +09:00
Yu Watanabe
d30d86b7ed
dissect: refuse empty release ID
2022-07-06 19:16:24 +09:00
Yu Watanabe
8b2dcbbd00
Revert "dissect: ID from os-release should be non-empty, not just non-NULL"
...
This reverts commit a2cf73f0b6 .
This is not necessary after 78ab2b5064 .
Addresses https://github.com/systemd/systemd/pull/23454#discussion_r913611798 .
2022-07-06 14:39:54 +09:00
Yu Watanabe
917c6bb4b3
Merge pull request #23916 from keszybz/assorted-patches
...
Assorted patches
2022-07-06 14:15:50 +09:00
Yu Watanabe
7c38952e68
Merge pull request #23104 from mrc0mmand/resolved-tests
...
Introduce systemd-resolved test suite
2022-07-04 23:46:16 +09:00
Yu Watanabe
5932c87000
Merge pull request #23886 from keszybz/https-links-kernel
...
tree-wide: use html links for kernel docs
2022-07-03 00:55:59 +09:00
Yu Watanabe
0e85550eb5
debug-generator: shorten code a bit
2022-07-02 12:20:14 +02:00
Yu Watanabe
a96e670844
Merge pull request #23883 from yuwata/pid1-do-not-filter-out-systemd-unit
...
core: do not filter out systemd.unit= from kernel command line
2022-07-02 09:42:09 +09:00
Yu Watanabe
bffde9b586
core: do not filter out systemd.unit= and run-level specifier from kernel command line
...
Fixes a bug introduced by 846f1da465 .
The commit 846f1da465 made systemd.unit=
filtered out from the command line. That causes debug-generator does not
work as expected on daemon-reexecute, and we cannot call `systemctl
daemon-reexecute` in our test suite running on nspawn.
Fixes issue reported in https://github.com/systemd/systemd/pull/23851#issuecomment-1170992052 .
2022-07-02 05:07:23 +09:00
Yu Watanabe
12bdeb58a6
unit: prioritize module devices
...
Also, prioritize tty and network devices.
Follow-up for 2336bde964
Fixes #23850 .
2022-07-01 15:47:45 +02:00
Yu Watanabe
3daf1f913c
journalctl: fix to show user slice
...
Fixes #23867 .
2022-07-01 09:29:16 +01:00
Yu Watanabe
3bdb60055e
Merge pull request #23868 from keszybz/lib-resplit-2
...
Export sd-netlink and clean up exported interfaces a bit
2022-07-01 13:13:42 +09:00
Yu Watanabe
840a49f3dc
virt: fix detection of Parallels virtualization
...
If Parallels virtualization is detected from DMI, then trust that over CPUID.
Fixes issue caused by 28b1a3eac2 .
Fixes #23856 .
2022-06-29 14:03:54 +02:00
Yu Watanabe
b8478c14c7
sd-journal: data object may be invalid after data_object_in_hash_table()
...
Fixes a bug introduced by 578cd1855b .
The function `data_object_in_hash_table()` calls
`journal_file_move_to_object()` with `OBJECT_DATA`. Hence,
previously obtained pointer to a data object may be now invalid.
Fixes #23794 .
2022-06-29 04:54:05 +09:00
Yu Watanabe
a30630f5dc
sd-journal: also check object header before verifying object data
...
Otherwise, the check by journal_file_check_object() may be meaning less
when the header is broken.
2022-06-29 03:42:37 +09:00
Yu Watanabe
31fdd89fc6
sd-journal: drop unused argument from journal_file_check_object()
...
And rename the function.
2022-06-29 03:42:37 +09:00
Yu Watanabe
586fb79e27
sd-journal: shorten code a bit
2022-06-29 03:42:37 +09:00