summaryrefslogtreecommitdiffstats
path: root/src/shared/bus-unit-util.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-11-06machine: machine_default_shell_path() & machine_default_shell_args() helper ↵Ivan Kruglov3-17/+34
functions
2024-11-06machine: introduce machine_start_getty() and machine_start_shell() helpersIvan Kruglov3-209/+248
2024-11-06man/systemd-measure: add forgotten "="Zbigniew Jędrzejewski-Szmek1-1/+1
Both syntaxes work, but let's use one syntax for consistency. Fixup for 0641ce809a27cc1bc358924c26770f19d1213ec1.
2024-11-06man/systemd-measure: update to new ukify syntax, non-root operationZbigniew Jędrzejewski-Szmek1-8/+14
It's been a while, but systemd-measure doesn't need root, and ukify has a more modern syntax.
2024-11-06namespace-util: make idmapping not supported if syscalls return EPERMAndres Beltran1-4/+4
2024-11-05man: convert multiple left-over "See Also" sections to <simplelist>Lennart Poettering19-75/+79
These were forgotten during the initial conversion, probably because most of them consisted only of a single entry. Fix that.
2024-11-05man: link up D-Bus API docs from daemon man pagesLennart Poettering25-15/+153
Let's systematically make sure that we link up the D-Bus interfaces from the daemon man pages once in prose and once in short form at the bottom ("See Also"), for all daemons. Also, add reverse links at the bottom of the D-Bus API docs. Fixes: #34996
2024-11-05man: point people from sd-bus man page to busctlLennart Poettering1-1/+4
2024-11-05man: add brief entrypoint man page for sd-varlinkLennart Poettering5-2/+71
We have this in a similar fashion for the other APIs libsystemd provides. Add the same for sd-varlink. There isn't too much on it for now, but at least it's a start. Also link it up everywhere.
2024-11-05man: tone down claims on processes having exited already in ExecStop=Lennart Poettering1-5/+5
Processes can easily survive the first kill operation we execute, hence we shouldn't make strong claims about them having exited already. Let's just say "likely" hence. Fixes: #15032
2024-11-05man: document that .path units don't care for hidden filesLennart Poettering1-4/+7
Fixes: #32751
2024-11-05man: document that PrivateTmp= is unaffected by ProtectSystem=strictLennart Poettering1-0/+4
Fixes: #33130
2024-11-05man: highlight the privilege issues around the LogControl1 moreLennart Poettering1-1/+8
Let's emphasize the privilege thing with a <caution> section. Let's also point out that other D-Bus libraries are less restrictive than sd-bus by default regarding permission access. Fixes: #34735
2024-11-05man: Document stub behaviour for .hwids and .dtbauto sectionsanonymix0071-0/+14
2024-11-05stub: Handle .dtbauto sectionsanonymix0071-5/+27
2024-11-05measure: Introduce .dtbauto supportanonymix0072-4/+7
2024-11-05uki: add new .dtbauto PE section typeanonymix0073-1/+3
.dtbauto section contains DT blobs, just like .dtb, the difference is that multiple .dtbauto sections are allowed to be in a UKI and only one is selected automatically Temporarily drop an assert_cc() check in systemd-measure to make it compilable before the next commit
2024-11-05measure: introduce support for a .hwids sectionanonymix0074-3/+9
2024-11-05boot: Add .dtbauto section matching in PE section discovery against HWIDs ↵anonymix0071-1/+119
and FW-provided DT
2024-11-05man: don't claim SELinuxContext= only worked in the system service managerLennart Poettering1-2/+4
Fixes: #34840
2024-11-05man: document the timeout applied to /usr/lib/systemd/system-shutdown/ ↵Lennart Poettering1-7/+7
drop-in binaries Fixes: #34949
2024-11-05test: delete /swapfile after swapoffLuca Boccassi1-0/+1
[ 23.608342] TEST-55-OOMD.sh[689]: + btrfs filesystem mkswapfile -s 64M /swapfile [ 23.651930] TEST-55-OOMD.sh[704]: ERROR: cannot create new swapfile: File exists
2024-11-05network: handle ENODATA better with DNRRonan Pigott2-38/+38
It is normal for DHCP leases not to have DNR options. We need to be less verbose and more forgiving in these cases. Also, if either DHCP does not have DNR options, make sure to still consider any DHCPv6/RA options. Fixes: c7c9e3c7c016 (network: adjust log message about DNR)
2024-11-05network: use path_is_network_fs_harder()Yu Watanabe1-4/+6
Closes #32426.
2024-11-05mount-util: introduce path_is_network_fs_harder()Yu Watanabe3-0/+77
It also detects e.g. glusterfs or mounts with "_netdev" option.
2024-11-05tree-wide: time-out → timeoutZbigniew Jędrzejewski-Szmek14-25/+25
For justification, see 3f9a0a522f2029e9295ea5e9984259022be88413.
2024-11-05boot: Add HWID calculation from SMBIOS strings and matching against a ↵anonymix0074-0/+156
built-in list
2024-11-05boot: Add firmware_devicetree_exists()anonymix0072-0/+5
2024-11-05boot: add matching against FW-provided Devicetree blobDiogo Ivo2-0/+142
Add support for matching the DT contained in a .dtb section of the UKI image against the FW provided FDT or arbitrary compatible.
2024-11-05network: introduce LINK_RECONFIGURE_CLEANLY flagYu Watanabe3-3/+4
And use it when explicit reconfiguration is requested by Reconfigure() DBus method or networkd certainly detects that connected network is changed. Otherwise do not use the flag especially when we come back from sleep mode.
2024-11-05network: keep dynamic configurations as possible as we can on reconfigureYu Watanabe14-42/+276
E.g. when a .network file is updated, but DHCP setting is unchanged, it is not necessary to drop acquired DHCP lease. So, let's not stop DHCP client and friends in link_reconfigure_impl(), but stop them later when we know they are not necessary anymore. Still DHCP clients and friends are stopped and leases are dropped when the explicit reconfiguration is requested
2024-11-05network: merge link_foreignize_config() and link_drop_foreign_config()Yu Watanabe11-221/+115
When a reconfiguration of an interface is triggered, previously we call link_foreignize_config(), which sets all static configurations as foreign, then later call link_drop_foreign_config(), which drops unnecessary foreign configurations. This commit merges these two steps into one, link_drop_unmanaged_config(), which drops unnecessary static and foreign configurations. Also, this renames link_drop_managed_configs() to link_drop_static_config(), as it only drops static configurations. Note that dynamically aquired configurations are dropped by link_stop_engines().
2024-11-05network: several cleanups for link_reconfigure()Yu Watanabe5-111/+81
Effectively no functional changes, just refactoring and preparation for later changes. - convert boolean flag 'force' to LinkReconfigurationFlag enum, - merge link_reconfigure() and reconfigure_handler_on_bus_method_reload() as link_reconfigure_full(), - Rename ReconfigureData -> LinkReconfigurationData, - make Reconfigure() DBus message wait for reconfiguration being started before sending reply.
2024-11-05network: split out link_enter_unmanaged() from link_reconfigure_impl()Yu Watanabe1-29/+43
No functional change, just refactoring.
2024-11-05po: Translated using Weblate (German)Weblate Translation Memory1-2/+3
Currently translated at 90.9% (230 of 253 strings) po: Translated using Weblate (German) Currently translated at 89.3% (226 of 253 strings) po: Translated using Weblate (German) Currently translated at 88.9% (225 of 253 strings) po: Translated using Weblate (German) Currently translated at 88.1% (223 of 253 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-05po: Translated using Weblate (German)Ettore Atalan1-24/+17
Currently translated at 90.9% (230 of 253 strings) po: Translated using Weblate (German) Currently translated at 89.3% (226 of 253 strings) po: Translated using Weblate (German) Currently translated at 88.9% (225 of 253 strings) po: Translated using Weblate (German) Currently translated at 88.1% (223 of 253 strings) Co-authored-by: Ettore Atalan <atalanttore@googlemail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/de/ Translation: systemd/main
2024-11-05run: handle gracefully if we can't find binary client-side due to permsLennart Poettering1-3/+5
Fixes: #35022
2024-11-05core: Introduce PrivatePIDs=Daan De Meyer23-33/+741
This new setting allows unsharing the pid namespace in a unit. Because you have to fork to get a process into a pid namespace, we fork in systemd-executor to get into the new pid namespace. The parent then sends the pid of the child process back to the manager and exits while the child process continues on with the rest of exec_invoke() and then executes the actual payload. Communicating the child pid is done via a new pidref socket pair that is set up on manager startup. We unshare the PID namespace right before the mount namespace so we mount procfs correctly. Note PrivatePIDs=yes always implies MountAPIVFS=yes to mount procfs. When running unprivileged in a user session, user namespace is set up first to allow for PID namespace to be unshared. However, when running in privileged mode, we unshare the user namespace last to ensure the user namespace does not own the PID namespace and cannot break out of the sandbox. Note we disallow Type=forking services from using PrivatePIDs=yes since the init proess inside the PID namespace must not exit for other processes in the namespace to exist. Note Daan De Meyer did the original work for this commit with Ryan Wilson addressing follow-ups. Co-authored-by: Daan De Meyer <daan.j.demeyer@gmail.com>
2024-11-05fundamental: Add HWID calculationanonymix0073-0/+142
2024-11-05boot: Add xnew0anonymix0071-0/+1
Same as xnew but initialized with zeros
2024-11-05resolved: log error messages for openssl/gnutls context creationZbigniew Jędrzejewski-Szmek2-4/+9
In https://bugzilla.redhat.com/show_bug.cgi?id=2322937 we're getting an error message: Okt 29 22:21:03 fedora systemd-resolved[29311]: Could not create manager: Cannot allocate memory I expect that this actually comes from dnstls_manager_init(), the openssl version. But without real logs it's hard to know for sure. Use EIO instead of ENOMEM, because the problem is unlikely to be actually related to memory.
2024-11-05network: limit the total number of Encrypted DNS options processedRonan Pigott1-0/+6
We need a sensible limit on the number of Encrypted DNS options allowed so that the set of resolvers per link does not grow without bound. Fixes: 0c90d1d2f243 ("ndisc: Parse RFC9463 encrypted DNS (DNR) option")
2024-11-04ci: add coverage for builds without sd-bootLuca Boccassi1-1/+1
This should catch compilation issues such as: https://github.com/systemd/systemd/pull/35014
2024-11-04test: set nullglob to avoid failure when building without sd-bootLuca Boccassi1-0/+2
2024-11-04T20:13:17.3258095Z + for loader in build/src/boot/efi/*{.efi,.efi.stub} 2024-11-04T20:13:17.3258275Z ++ sbverify --list 'build/src/boot/efi/*.efi' 2024-11-04T20:13:17.3258525Z + [[ Error reading file build/src/boot/efi/*.efi: No such file or directory 2024-11-04T20:13:17.3258952Z Can't open image build/src/boot/efi/*.efi != \N\o\ \s\i\g\n\a\t\u\r\e\ \t\a\b\l\e\ \p\r\e\s\e\n\t ]]
2024-11-04test: fix tool name in commentLuca Boccassi1-1/+1
2024-11-04tmpfiles: Implement L? to only create symlinks if source existsDaan De Meyer3-10/+56
This allows a single tmpfiles snippet with lines to symlink directories from /usr/share/factory to be shared across many different configurations while making sure symlinks only get created if the source actually exists.
2024-11-04network/dhcp4: keep DHCP address and routes on stop even when SendDecline=yesYu Watanabe1-5/+5
KeepConfiguration=dhcp or dhcp-on-stop already violate RFC. It is not necessary to honor the RFC about sending decline message on stop.
2024-11-04network: expose log_route_debug() and log_address_debug()Yu Watanabe4-2/+6
They will be used in another file in a later commit.
2024-11-04network: add more debugging logsYu Watanabe2-8/+21
This also fixes the position of the logging "Enumeration completed.", and downgrade its log level.
2024-11-04network: check if interface is initialized after enumeration completedYu Watanabe3-1/+22
We enumerate interfaces at first, then enumerate other configurations like addresses and so on. If we are running on a container, previously we started to configure the enumerated interfaces before enumerating other configurations. Let's configure interfaces after all configurations are enumerated.