1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 00:13:24 +02:00
Commit Graph

82198 Commits

Author SHA1 Message Date
Lennart Poettering
f2a365b982 network/dhcp-server: improvements for saving/loading leases (#37835) 2025-06-17 14:31:22 +02:00
Luca Boccassi
5cdf2c4d40 man: fix varname copypasta 2025-06-17 14:16:36 +02:00
Mike Yuan
020d85c8e3 log: drop redundant forward decl
These are defined in forward.h already.
2025-06-17 11:44:50 +02:00
Arkadiusz Bokowy
998aa62a21 sd-bus: Preserve interfaces addition order
When adding a new interface to the object add it at the end of the list.
This way, when iterating over the list, e.g., during handling introspect
call, the order of returned interfaces will mach the order in which they
were added.
2025-06-17 17:28:35 +09:00
Lennart Poettering
2db991dc35 hostname-util: introduce machine_spec_valid() and check --machine= value everywhere (#37851)
Replaces #32999

Addresses
https://github.com/systemd/systemd/pull/37741#discussion_r2128482378
2025-06-17 09:34:22 +02:00
Mike Yuan
fba85a0ecb fstab-generator: log about the fstype in effect 2025-06-17 16:14:47 +09:00
Luca Boccassi
d3a57a0853 fstab-generator: set mode=0755 with root=tmpfs
If mode= is not set in rootflags= add mode=0755 when a tmpfs
is used on the rootfs, otherwise it will be group/world writable
as that's the default mode for tmpfs filesystems.

Follow-up for 725ad3b062
2025-06-17 16:13:45 +09:00
Luca Boccassi
80edc0ecdd mkosi: update debian commit reference to 01b5b96a2f85594c2c8caf5d10048a4ec41f9d89
* 01b5b96a2f Install new files for upstream build
* a4bdf87f03 Revert "systemd-boot: always pull in systemd-boot-efi on amd64/arm64"
* e29629dcaf systemd-boot: always pull in systemd-boot-efi on amd64/arm64
* f0202aa0aa Update changelog for 257.6-1 release
* 7a5572e94d Drop patches, merged upstream
* ece0caddcf Set upstream metadata fields: Security-Contact
* a71d94c611 systemd-boot: fix BOOT.CSV usage
2025-06-17 16:10:20 +09:00
Mike Yuan
a59cc3860b tree-wide: check --machine= specification
Addresses https://github.com/systemd/systemd/pull/37741#discussion_r2128482378
2025-06-17 02:10:37 +02:00
Mike Yuan
6fdb6c73ae sd-bus: port to machine_spec_valid() 2025-06-17 01:39:57 +02:00
Mike Yuan
4c6fbe733b hostname-util: introduce machine_spec_valid() 2025-06-17 01:39:57 +02:00
Mike Yuan
d2e727bf68 hostname-util: do not allow empty machine spec
Follow-up for 2ae32e9d8f

Let's not open this up even further and rather disallow
--machine="".
2025-06-17 01:39:56 +02:00
Yu Watanabe
75e638671c Update distro packaging commits (#37765) 2025-06-17 04:46:44 +09:00
Daan De Meyer
f1fc8b5dea mkosi: update fedora commit reference to 7de88c66bdc26920db570e67ef74e579f8461d9c
* 7de88c66bd Do not mark symlinks as %ghost
* 92c16c1dab Let systemd-{sysusers,shared} conflict with older systemd
* ed6b885327 Version 257.6
* 5a53eac13c Package pcrlock files together with systemd-pcrlock
* 2192e86112 Move mount.ddi symlinks to -container subpackage
* 451184cbea Revert "Disable freezing of user sessions"
* f6af46db12 Backport adb/fastboot udev rules (BZ#2356537)
* f6b814cc0f Backport CI fix
* d304477023 Version 257.5
2025-06-16 18:54:08 +01:00
Daan De Meyer
00f7afebb4 mkosi: update opensuse commit reference to 2dc224ae5d446e928519315f4d46f76d1e34b8a8
* 2dc224ae5d Update systemd to version 257.6 / rev 448 via SR 1281804
* 15818e66dd Update systemd to version 257.5 / rev 447 via SR 1278063
* 2480ac89f0 Update 000product to rev 4383
* c381cdada8 update 2025-04-11 16:42
* bb036b2b8e Update systemd to version 257.4 / rev 444 via SR 1252776
* 55ae12d80b Update systemd to version 257.3 / rev 443 via SR 1249841
* a7fcf45b77 Update systemd to version 257.3 / rev 442 via SR 1247443
2025-06-16 18:54:04 +01:00
Daan De Meyer
57347e4199 mkosi: update arch commit reference to 15cb472aeb4d93d7fae9c7b7bc2cd6723bc8ec85
* 15cb472aeb upgpkg: 257.6-1: new upstream release
* 1c11767e01 upgpkg: 257.5-3: backlight: Drop support for actual_brightness
* 489e88099e upgpkg: 257.5-2: fast-forward to current v257-stable
2025-06-16 16:47:30 +01:00
Yu Watanabe
65f20d58f4 resolve: several further fixes for reloading config (#37856)
Fixes #37843.
2025-06-17 00:23:56 +09:00
Yu Watanabe
a4eb5094e6 terminal-util: fix doubled 'to' in log messages
Follow-up for 3390be38d1.
2025-06-16 22:25:27 +09:00
Yu Watanabe
888e3f4357 TEST-75-RESOLVED: add test case for reloading DNSStubListenerExtra= 2025-06-16 22:04:52 +09:00
Yu Watanabe
752cdf5051 manager: also restart stub listner on reload
Previously, the extra stub listners were stopped but new ones were not
started. Also, the main stub listners were not restarted, hence the
new settings were not applied. This fixes the above two issues.

Note, to fix the issue, we need to keep CAP_NET_BIND_SERVICE capability
to make it allow to bind stub listner later.

Fixes #37843.
2025-06-16 22:02:30 +09:00
Yu Watanabe
9ed99b0793 resolve: several cleanups for manager_dispatch_reload_signal()
- set defaults after all existing configs and setups cleared,
- mention failures are ignored in log messages,
- drop one redundant log message,
- do not return negative errno but exit event loop on critical failure.
2025-06-16 22:02:30 +09:00
Yu Watanabe
872603b583 resolve: several cleanups for manager_new()
- mention the error is ignored in the log message,
- drop redundant log message, as dnssd_load() logs on failure,
- voidify manager_load_delegates().
2025-06-16 22:02:30 +09:00
Yu Watanabe
450a4edfc3 resolve: coding style fix 2025-06-16 22:02:30 +09:00
Yu Watanabe
5d5edcd3f4 resolve: fix indentation 2025-06-16 22:02:30 +09:00
Mike Yuan
deedd5c26e terminal-util: modernize ptsname_malloc a bit 2025-06-16 20:08:52 +09:00
Yu Watanabe
18d79a7f9c network/tunnel: several cleanups for Mode= setting and make sit and ipip tunnel support it (#37853)
Closing #37377.
2025-06-16 20:07:38 +09:00
Mike Yuan
75a9aa2b7c meson: enable -Werror=missing-parameter-name 2025-06-16 20:07:13 +09:00
Mike Yuan
2a1338242d socket-util: drop duplicate SCM_MAX_FD definition
We already carry it in missing_socket.h
2025-06-16 12:16:03 +02:00
Yu Watanabe
312e3835ee test-network: add tests for tunnel mode 2025-06-16 17:01:37 +09:00
Yu Watanabe
fe94aa316d network/tunnel: make sit and ipip tunnel support Mode= setting
Closing #37377.
2025-06-16 17:01:20 +09:00
Yu Watanabe
8424a70caf network/tunnel: rename Ip6TnlMode to TunnelMode
This also makes ip6tnl can be created without specifying Mode= setting,
as the kernel accepts new-link netlink message without the
IFLA_IPTUN_PROTO attribute.

No effective functional change, just refactoring and preparation for
later change.
2025-06-16 16:58:38 +09:00
Mike Yuan
a14a6f1df6 socket-activate: add a --now option to instantly start service (#37620) 2025-06-16 02:08:57 +02:00
Daniel Foster
9e0d0c3fdf test: add simple tests for systemd-socket-activate tool 2025-06-15 16:34:16 +10:00
Yu Watanabe
ce5a54ed9b test-network: add test case for issue #37714
I cannot reproduce the issue with the current git HEAD.
Let's add a test case that is used by the reporter of the issue.
2025-06-15 09:33:23 +09:00
Lennart Poettering
f09a5aa970 networkd: actually install 80-namespace-ns-tun.*
Follow-up for: 19ac01efef
2025-06-14 13:29:29 +09:00
Lennart Poettering
008818ec96 units: make sure the network tap driver is actually loaded
We have the After= line, but not the Wants= line. Fix that.
2025-06-14 13:29:14 +09:00
Lennart Poettering
273d14f5dd nsresourced: make sure "tun" driver is properly loaded and accessible
We need access to /dev/net/tun, hence make sure we can actually see
/dev/. Also make sure the module is properly loaded before we operate,
given that we run with limit caps. But then again give the CAP_NET_ADMIN
cap, since we need to configure the network tap/tun devices.

Follow-up for: 1365034727
2025-06-14 00:59:37 +02:00
Yu Watanabe
5509fa8450 NEWS: mention PersistLeases=runtime in [DHCPServer] 2025-06-14 03:53:10 +09:00
Yu Watanabe
b5610d6360 network: use PersistLeases=runtime on container/VM/namespace network interfaces
Follow-up for 9ccc369ff3.

Then, we can safely restart networkd or reconfigure the interface.
2025-06-14 03:46:24 +09:00
Yu Watanabe
009d64dddd test-network: add test case for PersistLeases=runtime 2025-06-14 03:42:24 +09:00
Yu Watanabe
a145343b90 network/dhcp-server: save and load leases in runtime directory when PersistLeases=runtime
With 9ccc369ff3, PersistLeases= is
disabled on the host side virtual interfaces for containers.

However, even it is not necessary to save the leases for containers
on a persistent storage, still we should save them on somewhere.
Otherwise, leases will be lost when networkd on the host is restarted
or the host side interface is reconfigured.

This introduce PersistLeases=runtime to save and load leases on runtime
storage.
2025-06-14 03:41:20 +09:00
Yu Watanabe
98b02dd7e7 sd-dhcp-server: reopen fd only when it is valid
Fixes a bug in 11b88419ae.
2025-06-14 02:53:31 +09:00
Yu Watanabe
7ce370c466 network: hash_ops related fixlets (#37832)
Fixes #37830.
2025-06-14 02:51:08 +09:00
Lennart Poettering
c4bbaf8ce5 update TODO 2025-06-13 18:47:36 +02:00
Yu Watanabe
2c154c54e1 network: use dns_name_hash_ops_free to manage domains 2025-06-14 00:17:14 +09:00
Yu Watanabe
38de38a70d ordered-set: introduce ordered_set_put_strdup_full() and friends which take hash ops 2025-06-14 00:06:43 +09:00
Yu Watanabe
6ffc16dfd9 network: use the same hash ops used when allocated
Fixes #37830.
2025-06-13 23:46:29 +09:00
Ryan Blue
13ce5d4632 network/can: properly handle CAN.RestartSec=0
Previously, 0 was ignored and restart-ms wouldn't get added to the
netlink message. Instead, set the attribute unconditionally.
2025-06-13 23:37:36 +09:00
Ronan Pigott
88036a47e4 zsh: complete positional devpath in udevadm info/trigger 2025-06-13 11:23:59 +01:00
Yu Watanabe
a7deadd763 udev/rules.d: import hwdb before calling net_id builtin
The commit cdcb1eeeb8 adds
ID_NET_NAME_INCLUDE_DOMAIN property support in net_id builtin.
The property is basically set through hwdb. However, previously hwdb was
imported after calling net_id builtin, hence when net_id is called, the
property was never set.

This makes hwdb is imported before calling net_id builtin, so that the
property is set when net_id is called if hwdb has an entry about that
for the interface.

Follow-up for cdcb1eeeb8.
Fixes #37758.
2025-06-13 10:43:21 +01:00