Commit Graph

82988 Commits

Author SHA1 Message Date
haxibami
3a83ea5bf2 test-network: add test cases for SIP servers 2025-07-22 17:06:11 +09:00
haxibami
238c427aa9 network/dhcp6: add SIP server support 2025-07-22 17:05:13 +09:00
haxibami
d2191515ba sd-dhcp6-client: add SIP server domain support 2025-07-22 16:54:08 +09:00
haxibami
551bfe7738 sd-dhcp6-client: add SIP server address support 2025-07-22 16:31:52 +09:00
Luca Boccassi
042138fbe7 readme: update ubuntu autopkgtest infra support channels
ubuntu is moving away from IRC
2025-07-18 12:15:46 +01:00
Zbigniew Jędrzejewski-Szmek
43419435c6 resolved: Implement continuous mDNS querying as per RFC6762 5.2 (#22532)
Allow for mDNS service/domain/types browsing.
A client can connect to the backend via varlink and receive updates as
the requested service becomes available.

The interval between the first two queries MUST be at least one second,
the intervals between successive queries MUST increase by at least a
factor of two.
When the interval between queries reaches or exceeds 60 minutes, a
querier MAY cap the interval to a maximum of 60 minutes, and perform
subsequent queries at a steady-state rate of one query per hour.

Cache maintenance performed by issuing queries at 80, 85, 90, 95% of the
TTL, and updating/removing the records depending on replies.

TODO:
Improve the DNS transaction logic when multiple clients subscribe to the
same service, ensuring that continuous queries are optimized.














































































































































































<!-- devel-freezer =
{"comment-id":"1625154850","freezing-tag":"v256-rc2"} -->
2025-07-18 12:54:33 +02:00
Yu Watanabe
58788345d9 journald: several follow-ups for reloading journald.conf (#38199)
Follow-ups for df5b3426f6 (#36742).
2025-07-18 18:31:18 +09:00
Yu Watanabe
f724d51dd2 journal-file: drop unused journal_file_reload()
This partially reverts df5b3426f6.
2025-07-18 15:27:37 +09:00
Yu Watanabe
922d037f34 journald-manager: rework reopening journal files on reload
Previous implementations had several issues:
- user journals were not updated,
- transition from volatile -> persistent storage transition was not
  handled.

Let's make all journal files closed when at least one journal file
related configurations are changed, and reopen necessary journals with
requested settings.
2025-07-18 15:27:37 +09:00
Yu Watanabe
a09dc6e5fe journal-file: introduce journal_metrics_equal()
Currently not used, but will be used later.
2025-07-18 15:27:37 +09:00
Yu Watanabe
7b1f842d44 journald-context: update ratelimit interval and burst on reload 2025-07-18 15:27:37 +09:00
Yu Watanabe
c029cb45a8 journald-config: ForwardToSocket= is not supported in non-default namespace instance 2025-07-18 15:27:37 +09:00
Yu Watanabe
20f23d13b4 journald-socket: close previous socket when ForwardToSocket= is changed on reload 2025-07-18 15:27:37 +09:00
Yu Watanabe
cbf59f4bb2 journald-audit: apply new Audit= setting on reload 2025-07-18 15:27:37 +09:00
Yu Watanabe
884274cbe6 journald-audit: make enable_audit() take Manager object
And rename it to manager_set_kernel_audit(), and make it log failures.
2025-07-18 15:27:37 +09:00
Yu Watanabe
63e990308f journald-kmsg: merge manager_kmsg_mode() into manager_open_dev_kmsg()
As it is now only used by the function.
2025-07-18 15:27:37 +09:00
Yu Watanabe
7bc133fe56 journald-kmsg: fix reopening /dev/kmsg
The previous logic was completely broken:
- the access mode comparison is broken,
- flushing kmsg did not work, as the configuration is already disabled,
- seqnum file is not opened when previously disabled,
- failure in reopening /dev/kmsg should not be critical.

This fixes the above issues.
2025-07-18 15:27:37 +09:00
Yu Watanabe
1416a3df43 journald: introduce manager_unlink_seqnum_file()
Currently unused, but will be used later.
2025-07-18 15:27:37 +09:00
Yu Watanabe
059efb97e3 journald-kmsg: introduce manager_close_kernel_seqnum() helper function 2025-07-18 15:27:37 +09:00
Yu Watanabe
61b1f7d2d3 journald-kmsg: shorten manager_flush_dev_kmsg() a bit 2025-07-18 15:27:37 +09:00
Yu Watanabe
f1bd0007c0 journald: rename fuzz-journald.[ch] -> fuzz-journald-util.[ch] 2025-07-18 15:27:37 +09:00
Yu Watanabe
32bd43d768 journald: do not read configs by journald fuzzers 2025-07-18 15:27:37 +09:00
Yu Watanabe
f48cf2a96d journald: move all config entries from Manager to JournalConfig
Previously, only config entries controlled by multiple sources were located in
JournalConfig, and still other config entries were in Manager.
That's hard to maintain. Let's move all config entries to JournalConfig.

This also makes JournalConfig.forward_to_kmsg and friends tristate.
Otherwise, even if a higher precedence config source disables the
feature, it may be enabled by a lower precedence config.
2025-07-18 15:27:35 +09:00
Yu Watanabe
9f819a7791 journald-config: modernize config_parse_line_max() and config_parse_forward_to_socket()
No functional change, just refactoring.
2025-07-18 15:27:03 +09:00
Yu Watanabe
208c9cf988 journald-config: always clear threshold_bytes even when boolean value is specified
Otherwise, previously specified threshold may not be cleared.
2025-07-18 15:27:03 +09:00
Yu Watanabe
d13a471c45 journald-config: make kernel command line parser take JournalConfig 2025-07-18 15:27:03 +09:00
Yu Watanabe
5b585edd2f journald-config: use char* for credential data
This also slightly update log messages, and make
manager_load_credentials() take JournalConfig.
No functional change, just refactoring.
2025-07-18 15:27:03 +09:00
Yu Watanabe
3941032c6c journald-audit: do not control kernel auditing by non-default namespace instances by default
The kernel (thus system-wide) auditing should not be controlled by
non-default namespace instances, unless explicitly requested.
2025-07-18 15:27:03 +09:00
Yu Watanabe
31b25d4290 journald-manager: use manager_get_file_flags() more
This also adds one missing assertion and drop spurious empty line.
No functional change, just refactoring.
2025-07-18 15:27:03 +09:00
Yu Watanabe
a322e43ba9 journald-manager: make manager_get_file_flags() return JournalFileFlags
This also adds a missing assertion.
2025-07-18 15:26:44 +09:00
Yu Watanabe
ef69668db2 journald: move several configuration related definitions to journald-config.[ch]
No functional change, just refactoring and preparation for later changes.
2025-07-18 15:25:35 +09:00
Luca Boccassi
0ae3a8d147 Small comment fixes (#38252) 2025-07-17 22:56:28 +01:00
Luca Boccassi
681e45716a analyze: several follow-ups for recent changes (#38253)
Follow-ups for 9a08000d18 (#37838) and
ad6e02e7b4 (#38132).
2025-07-17 20:10:47 +01:00
Zbigniew Jędrzejewski-Szmek
0c927c98a7 basic/socket-util: reserve more space for timeval/timespec messages
As reported in https://github.com/systemd/systemd/issues/38222, we get the
buffer size calculation wrong on 32-bit arm. The reporter suggested checking if
__TIMESIZE == 64, but I think it's better to just use the bigger size in all
cases. The code to guesstimate the buffer size was already tweaked a few times
and apparently it's not easy to get it right. Systemd and glibc might be
compiled with different combinations of __TIMESIZE, so the compile-time check
is not super reliable, and by using the bigger size, we don't depend on the
details of how glibc decided whether to duplicate the struct or not. The cost
is negligible, 16 bytes on stack, so let's do the easy and robust thing.

Solution based on the suggestion by UZver24.

While at it, drop the mock struct definitions. They are only used to calculate
the size, but since the types involved are 8-bit values, there are no alignment
issues and we can just calculate the size directly.

Fixes https://github.com/systemd/systemd/issues/38222.
2025-07-18 02:06:37 +09:00
Yu Watanabe
54820da421 bash-completion/analyze: show candidates for --debugger
This also adds missing completion for --debugger-arguments.

Follow-up for ad6e02e7b4.
2025-07-18 01:47:25 +09:00
Yu Watanabe
1b25aa7f6e analyze-unit-gdb: append debugger arguments
Previously, the --debugger-arguments= was ignored.

Follow-up for ad6e02e7b4.
2025-07-18 01:39:51 +09:00
Yu Watanabe
ff4c911ffd analyze: merge if branches on debugger
No functional changes, just refactoring.
2025-07-18 01:39:51 +09:00
Yu Watanabe
3bfc3414e6 analyze: fix memleak and missing oom check
Follow-up for ad6e02e7b4.
2025-07-18 01:39:51 +09:00
Yu Watanabe
33502785de analyze-unit-shell: drop unnecessary error check
execl() and friends will not return on success.

Follow-up for 9a08000d18.
2025-07-18 01:39:51 +09:00
Yu Watanabe
6e7bb4d3e3 analyze: add missing full stop in the log message
Follow-up for 9a08000d18 and
ad6e02e7b4.
2025-07-18 01:39:51 +09:00
Matteo Croce
9b31b3d5ee test: add basic test for timer serialization
Set an OnCalendar= timer before the downgrade, then test for its
validity after the downgrade and the upgrade.
2025-07-17 17:22:32 +01:00
Zbigniew Jędrzejewski-Szmek
f1f1ade0d3 src/shared: grammar fixlet
There is no such verb as "list up". Also nowadays we just say "drop-ins".
2025-07-17 17:13:17 +02:00
Zbigniew Jędrzejewski-Szmek
e884fcb6b5 boot: move/adjust comments
The comment in linux_exec() was based on Lennart's comment in
https://github.com/systemd/systemd/pull/37372#discussion_r2142340582, but
shortened. The original wording is more direct and at least for me easier to
grok, so adjust the comment to be more verbose again.

Also, move the comment from shim_loader_available() to the place where it used.
This function is for checking if the new thing is available, no need to describe
the old thing there.
2025-07-17 17:10:18 +02:00
Vishal Chillara Srinivas
7eb276dced test: resolve: add integration tests for browsing services
Co-authored-by: Frantisek Sumsal <frantisek@sumsal.cz>
Co-authored-by: Vishwanath Chandapur <vishwanath.chandapur@philips.com>
2025-07-17 19:41:22 +05:30
ZIHCO
ad6e02e7b4 systemd-analyze: added the verb unit-gdb to spawn and attach gdb 2025-07-17 15:09:58 +01:00
Luca Boccassi
6235121abf netdev-util: allow setting local address based on dhcp-pd addresses as well (#38211)
This extends the functionality introduced in #21648 to allow using
addresses chosen from a delegated prefix as well as the existing
SLAAC/LL/DHCP functionality.
2025-07-17 14:14:49 +01:00
Linus Heckemann
94e5d8b0e0 netdev-util: allow finding addresses from dhcp-pd 2025-07-16 16:17:19 +02:00
Sam James
e65455fead elf2efi: ignore .sframe
SFrames are a new format for stack unwinding information. Ignore it if
preset as is done for .eh_frame.
2025-07-16 14:57:30 +02:00
Antonio Alvarez Feijoo
600bbac35f systemctl: remove unnecessary assignment 2025-07-16 21:03:10 +09:00
Yu Watanabe
8013beb4a2 Revert "test: skip one test case when running on coverage"
This reverts commit 2cc6c651ee.

The issue was fixed by b955051244.

Closes #38163.
2025-07-16 10:50:36 +01:00