summaryrefslogtreecommitdiffstats
path: root/coccinelle (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-11-12dbus-manager: add missing word 'unit' to PK messageLennart Poettering1-1/+1
2024-11-12mkosi: ruff is not available on all distrosDavide Cavalca4-1/+10
Refactor to only install ruff where it is available
2024-11-12TODO: Fix typo (#35138)Maanya Goenka1-1/+1
Replace confex with confext
2024-11-12nspawn: fix indentation of run_container() parameter listLennart Poettering1-9/+9
2024-11-12mntwork: shorten codeLennart Poettering1-5/+1
2024-11-12dissect-image: remove dead codeLennart Poettering1-4/+0
2024-11-12mountfsd: drop unused variableLennart Poettering1-5/+0
2024-11-12sbsign: remove unused --no-pager optionAntonio Alvarez Feijoo2-9/+0
2024-11-12mkosi: Install tpm2-tss-devel to tools for CentOS and Fedora instead of ↵Davide Cavalca1-1/+1
tss2-devel tss2-devel is the IBM TPM stack, we want the Intel TPM stack, so let's use the correct package.
2024-11-12man/systemd-keyutil: fix rendering typoAntonio Alvarez Feijoo1-1/+1
2024-11-11man/systemd.special: fix a typoŠtěpán Němec1-1/+1
2024-11-11man: fix incorrect volume numbers in internal man page referencesŠtěpán Němec27-50/+50
Some ambiguity (e.g., same-named man pages in multiple volumes) makes it impossible to fully automate this, but the following Python snippet (run inside the man/ directory of the systemd repo) helped to generate the sed command lines (which were subsequently manually reviewed, run and the false positives reverted): from pathlib import Path import lxml from lxml import etree as ET man2vol: dict[str, str] = {} man2citerefs: dict[str, list] = {} for file in Path(".").glob("*.xml"): tree = ET.parse(file, lxml.etree.XMLParser(recover=True)) meta = tree.find("refmeta") if meta is not None: title = meta.findtext("refentrytitle") if title is not None: vol = meta.findtext("manvolnum") if vol is not None: man2vol[title] = vol citerefs = list(tree.iter("citerefentry")) if citerefs: man2citerefs[title] = citerefs for man, refs in man2citerefs.items(): for ref in refs: title = ref.findtext("refentrytitle") if title is not None: has = ref.findtext("manvolnum") try: should_have = man2vol[title] except KeyError: # Non-systemd man page reference? Ignore. continue if has != should_have: print( f"sed -i '\\|<citerefentry><refentrytitle>{title}" f"</refentrytitle><manvolnum>{has}</manvolnum>" f"</citerefentry>|s|<manvolnum>{has}</manvolnum>|" f"<manvolnum>{should_have}</manvolnum>|' {man}.xml" )
2024-11-11test-network: add test case for issue #35047Yu Watanabe4-0/+60
2024-11-11network/nexthop: also forget IPv4 nexthops when an interface went downYu Watanabe3-0/+57
Similar to the previous commit, but for nexthop.
2024-11-11network/route: forget IPv4 non-local routes when an interface went downYu Watanabe3-0/+35
When an interface went down, IPv4 non-local routes are removed by the kernel without any notifications. Let's forget the routes in that case. Fixes #35047.
2024-11-11network/nexthop: forget dependent routes without trying to removeYu Watanabe3-12/+16
When a nexthop is removed, routes depend on the removed nexthop are already removed. It is not necessary to remove them, as already commented. Let's forget them without trying to remove.
2024-11-11network/nexthop: do not remove depending nexthops when a nexthop is removedYu Watanabe2-16/+13
Previously, when a nexthop is removed, depending nexthops were removed, but that's not necessary, as the kernel keeps them, at least with v6.11.
2024-11-11network/route: update reference of the route from nexthopYu Watanabe1-0/+2
Follow-up for 6f09031e4d04727cc72164fefcbc763e37556493. The function has been introduced by the commit, but it has never been used...
2024-11-11po: Translated using Weblate (Portuguese (Brazil))Gabriel Elyas1-7/+4
Currently translated at 96.1% (247 of 257 strings) Co-authored-by: Gabriel Elyas <gabrielelyas@protonmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pt_BR/ Translation: systemd/main
2024-11-11Rename src/partition to src/repartZbigniew Jędrzejewski-Szmek12-9/+9
2024-11-11network: make 'networkctl reconfigure' work safely even when ↵Yu Watanabe7-57/+99
KeepConfiguration=dhcp or yes Previously, even if KeepConfiguration=dhcp or yes is specified in the new .network file, dynamic configurations like DHCP address and routes were dropped when 'networkctl reconfigure INTERFACE' is invoked. If the setting is specified, let's gracefully handle the dynamic configurations. Then, 'networkctl reconfigure' can be also used for an interface that has critical connections.
2024-11-11network: drop static configs laterYu Watanabe1-7/+0
Follow-up for dd6d53a8dc58c5e6e310b09ba7f7a22600a87ba9. Unnecessary static configs will be anyway dropped later in link_configure() -> link_drop_unmanaged_config(). Hence, even if we are reconfiguring an interface cleanly, it is not necessary to drop static configs here.
2024-11-11network/dhcp-pd: do not remove unreachable route when reconfiguring ↵Yu Watanabe4-23/+62
non-upstream interface Unreachable routes are not owned by any interfaces, and its ifindex is zero. Previously, if a non-upstream interface is reconfigured, all routes including unreachable routes configured by the upstream interface are removed. This makes unreachable routes are always handled by the upstream interface, and only removed when the delegated prefixes are changed or lost.
2024-11-11network: reorder dropping dynamic configurationYu Watanabe1-2/+2
Follow-up for 451c2baf30f50b95d73e648058c7c2348dbf0c31.
2024-11-11test-network: reconfigure interface cleanly to drop previous DHCP lease and ↵Yu Watanabe1-6/+12
friends Follow-up for 451c2baf30f50b95d73e648058c7c2348dbf0c31. With the commits, reloading .network files does not release previously acquired DHCP lease and friends if possible. On graceful reconfigure triggered by the reload, the interface may acquire a new DHCPv4 lease earlier than DHCPv6 lease. In that case, the check will fail as it is done with the new DHCPv4 lease and old DHCPv6 lease, which does not contain any IPv6 DNS servers or so. So, when switching from no -> yes, we need to wait a new lease with DNS servers or so. To achieve that, we need to clean reconfigure the interface.
2024-11-11network: reset 'configured' flags even if we keep DHCP lease and friends on ↵Yu Watanabe2-1/+9
reconfigure Follow-up for 451c2baf30f50b95d73e648058c7c2348dbf0c31. With the commits, reloading .network files does not release previously acquired DHCP lease and friends if possible. If previously a DHCP client was configured as not requesting DNS servers or so, then the previously acquired lease might not contain any DNS servers. In that case, if the new .network file enables UseDNS=, then the interface should enter the configured state after a new lease is acquired. To achieve that, we need to reset the flags. With this change, the workaround applied to the test by the commit 451c2baf30f50b95d73e648058c7c2348dbf0c31 can be dropped.
2024-11-11network: drop unnecessary size specifierYu Watanabe1-1/+1
It does not save any memory usage but increase code complexity.
2024-11-11netwrok: call link_drop_unmanaged_config() earlier in link_configure()Yu Watanabe1-4/+4
Otherwise, even if a link enters the configuring state at the beginning of link_configure(), link_check_ready() may be called before link_drop_unmanaged_config() is called, and the link may enter the configured state. Fixes #35092.
2024-11-10Move growfs+makefs to src/growfs/Zbigniew Jędrzejewski-Szmek5-8/+13
Those two programs are used together and it makes sense to keep them together. makefs is smaller, so name the directory after growfs.
2024-11-10login: fix session_kill(..., KILL_LEADER,...) (#35105)12paper1-3/+13
`loginctl kill-session --kill-whom=leader <N>` (or the D-Bus equivalent) doesn't work because logind ends up calling `KillUnit(..., "main", ...)` on a scope unit and these don't have a `MainPID` property. Here, I just make it send a signal to the `Leader` directly.
2024-11-09ukify: Fix broken assert when building a signed addonValentin David1-2/+1
An assert always expected a kernel when signature key was present in command line. That prevented building signed addons. Fixes #35041
2024-11-09po: Translated using Weblate (German)Weblate Translation Memory1-6/+7
Currently translated at 93.7% (241 of 257 strings) Co-authored-by: Weblate Translation Memory <noreply-mt-weblate-translation-memory@weblate.org> Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/de/ Translation: systemd/main
2024-11-09po: Translated using Weblate (German)Ettore Atalan1-15/+12
Currently translated at 93.7% (241 of 257 strings) Co-authored-by: Ettore Atalan <atalanttore@googlemail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/de/ Translation: systemd/main
2024-11-09meson.build: add a few features to summaryMike Yuan1-0/+4
2024-11-09udev: skipping empty udev rules file while collecting the statsLidong Zhong1-0/+4
To keep align with the logic used in udev_rules_parse_file(), we also should skip the empty udev rules file while collecting the stats during manager reload. Otherwise all udev rules files will be parsed again whenever reloading udev manager with an empty udev rules file. It's time consuming and the following uevents will fail with timeout.
2024-11-09uid-classification: properly classify *all* container UIDsLennart Poettering3-4/+14
A bit confusingly CONTAINER_UID_BASE_MAX is just the maximum *base* UID for a container. Thus, with the usual 64K UID assignments, the last actual container UID is CONTAINER_UID_BASE_MAX+0xFFFF. To make this less confusing define CONTAINER_UID_MIN/MAX that add the missing extra space. Also adjust two uses where this was mishandled so far, due to this confusion. With this change the UID ranges we default to should properly match what is documented on https://systemd.io/UIDS-GIDS/.
2024-11-08Introduce systemd-keyutil to do various key/certificate operationsDaan De Meyer12-180/+468
Let's gather generic key/certificate operations in a new tool systemd-keyutil instead of spreading them across various special purpose tools. Fixes #35087
2024-11-08man: drop whitespace from final <programlisting> linesZbigniew Jędrzejewski-Szmek44-145/+146
In the troff output, this doesn't seem to make any difference. But in the html output, the whitespace is sometimes preserved, creating an additional gap before the following content. Drop it everywhere to avoid this.
2024-11-08mount-util: make path_get_mount_info() work arbitrary inodeYu Watanabe3-41/+106
Follow-up for d49d95df0a260aaca9a3fdd1e6ce535592a53bca. Replaces 9a032ec55a9820a0424309670fe551c99203e5f1. Fixes #35075.
2024-11-08test: install integration-test-setup.sh in testdata/Franck Bui2-7/+9
integration-test-setup.sh is an auxiliary script that tests rely on at runtime. As such, install the script in testdata/. Follow-up for af153e36ae67c242251951c12d6d6b6ae4783845.
2024-11-08update TODOLennart Poettering1-20/+5
2024-11-08fs-util: add comment about XO_NOCOWLennart Poettering1-0/+2
2024-11-08Fix PrivatePIDs=yes integration test for kernels with no /proc/scsiRyan Wilson1-5/+16
2024-11-07fundamental: Fix buffer size in get_chidanonymix0071-2/+2
NUL byte should not be hashed
2024-11-07fundamental: Fix iteration count in chid_calculateanonymix0071-1/+2
2024-11-07fundamental: move string includes from chid-fundamental.c to headeranonymix0072-2/+6
2024-11-07test: Add chid-fundamental testanonymix0073-0/+108
2024-11-07sd-varlink: allow that method handles call sd_varlink_close()Lennart Poettering1-0/+3
It's fine if a method handler closes the connection, deal with it gracefully.
2024-11-07fundamental: Add userspace efi_guid_equalanonymix0071-0/+7
2024-11-07boot: Fix .dtbauto section number for error reportinganonymix0071-1/+1