Commit Graph
79591 Commits
Author SHA1 Message Date
Daan De Meyer 8bd5da81ed man/udevadm: several minor cleanups (#36267) 2025-02-05 09:52:29 +01:00
Daan De Meyer ea086b0877 network/routing-policy-rule: fix compare function (#36268)
Fixes a regression caused by fc58350aa4
(v257).
Fixes #35874.
2025-02-05 09:50:59 +01:00
Yu Watanabe 4e752c9a2f man/udevadm: rebreak and reindent lines 2025-02-05 14:47:14 +09:00
Yu Watanabe d7596ec91c man/udevadm: list --version as a common option
Then, drop --version and --help from each sub commands.
2025-02-05 14:46:57 +09:00
Daan De Meyer 2443b4d9a1 stub: Mention that VirtualSize should be <= SizeOfRawData 2025-02-05 10:13:46 +09:00
Yu Watanabe 052ab05caf Two test readme improvements (#36265) 2025-02-05 10:08:00 +09:00
Yu Watanabe a10172b035 test-network: add test case for issue #35874 2025-02-05 09:40:31 +09:00
Yu Watanabe bc45d9c959 network/routing-policy-rule: fix compare func
Previously, when comparing an existing and requested routing policy
rules, `all` flag was unset, thus the from and to addresses in the two
rules were not compared. Hence, a new request with from and/or to
addresses might be considered as it already exists even the addresses of
existing one were different from the newly requested one.

All existing rules have valid family, i.e. AF_INET or AF_INET6. And,
all requesting rules with from and/or to addresses also have a valid
family. Hence, even `all` flag is unset, the addresses can be and must
be compared in that case.

Fixes a regression caused by fc58350aa4 (v257).
Fixes #35874.
2025-02-05 09:14:54 +09:00
Daan De Meyer f017a55213 test: Move external packages section down and reword a little
This is advanced level stuff that regular contributors don't care
about in the slightest, so move it further down. Also reword the
section a little while we're at it.
2025-02-04 20:46:11 +01:00
Daan De Meyer 728a88e549 test: Move NO_BUILD instructions to a separate section
This isn't relevant for regular development, so let's move it to a
separate section.
2025-02-04 20:24:17 +01:00
Daan De Meyer 284a56ff60 test: Drop -Dremote=enabled instructions from readme
The test commands now use mkosi sandbox which always makes sure the
required dependencies for systemd-journal-remote are enabled so no
need to reconfigure meson explicitly anymore.
2025-02-04 20:21:36 +01:00
Daan De Meyer 060676871e machine: introduce io.systemd.MachineImage.CleanPool (#35928)
This PR introduces io.systemd.MachineImage.CleanPool method which is
alternative to DBus's CleanPool.
2025-02-04 18:43:23 +01:00
Daan De Meyer 38801c9129 ukify/measure: Revert changes to use SizeOfImage from Linux PE binary
With 19812661f1, we make sure at runtime
in the stub itself that SizeOfImage from the Linux EFISTUB PE binary is
taken into account, so there's no need to take this into account in ukify
itself. By reverting the ukify change, we again ensure that Misc_VirtualSize
reflects the actual size of the Linux EFISTUB PE binary in the .linux section
which lots of tooling depends on. It also makes sure we don't measure a bunch
of extra zeroes in the stub which should fix systemd-pcrlock measurements as
well.

This effectively reverts 2188c759f9 and
0005411352.

Fixes #35851
2025-02-04 14:11:38 +01:00
Ivan Kruglov ea9b72ad35 machine: tests for io.systemd.MachineImage.CleanPool 2025-02-04 03:03:00 -08:00
Ivan Kruglov f6a7328e24 machine: introduce io.systemd.MachineImage.CleanPool 2025-02-04 03:03:00 -08:00
Ivan Kruglov 5a99c9d778 machine: use image_clean_pool_operation() in dbus 2025-02-04 03:03:00 -08:00
Ivan Kruglov a4019c75c2 machine: image_clean_pool_operation() 2025-02-04 03:03:00 -08:00
Ivan Kruglov 2694549ddf machine: rename machine_copy_from_to() -> machine_copy_from_to_operation()
This is done to make it clear that machine_copy_from_to() use and
returns an Operation object.
2025-02-04 02:58:48 -08:00
Daan De Meyer 0e470e1cc3 sysupdate: Update example mode to 644 instead of 444
The UKI file has to be writable to be able to do boot counting in
the UEFI firmware which involves renaming the file by writing to
the file metadata which requires the file to be writable in the FAT
filesystem.

Fixes #36170
2025-02-04 11:47:19 +01:00
Vyacheslav Yurkov b1e5a7aa3f meson: add install tag for systemctl
Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
2025-02-04 09:56:33 +01:00
Yu Watanabe f7ae28fcec test-network: add test case for requesting routing policy rules by multiple interfaces
For issue #36244.
2025-02-04 12:28:59 +09:00
Yu Watanabe 5078e36632 network: allow to configure routing policy rule even if requesting interface is not activated yet
In the kernel, all routing policy rules are not assigned to any interface,
and we can configure them even if the relevant interface is down state.

Fixes a regression caused by 4f8b153d90 (v257).
Fixes #36244.
2025-02-04 12:28:30 +09:00
Dimitri John Ledkov 6ad594122c docs: Update CPE fields in package metadata spec (#36251)
Update osCPE field example to use cpe 2.3 format, as is in active use by
AmazonLinux 2023 for example.

Add appCPE field example to document the upstream application CPE for
the applicable CVEs. Often distribution source package names are
different from the upstream CPE. For example adding/removing "lib"
prefix, or adding version stream "-3" suffix. This typically leads to
guessing or fuzzy matching. Adding appCPE in such cases can help to
disambiguate (or collate) correct application CPEs; especially beyond
the lifetime of osCPE support timeframes. This also will help a lot with
packaging multiple alternative source packages of the same software
(e.g. nginx-full nginx-core); different version streams (e.g.
openssl-1.1, openssl-3); or alternative builds of upstream software with
largely the same CVEs with multiple version streams (e.g.
openjdk-{22,17,11..}, corretto-{22,17,11..}, temurin-{22,17,11..}, etc).
2025-02-03 22:14:56 +00:00
Alexander Shopov f3519fb9da po: Translated using Weblate (Bulgarian)
Currently translated at 87.5% (225 of 257 strings)

Co-authored-by: Alexander Shopov <ash@kambanaria.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/bg/
Translation: systemd/main
2025-02-04 06:21:49 +09:00
Daan De Meyer 4ba3530d67 homectl: Fix empty checks 2025-02-03 19:24:31 +01:00
Daan De Meyer 895b2f18cf Update TODO 2025-02-03 17:09:52 +01:00
Dimitri John Ledkov 656dea9074 Symlink NVD CPE search 2025-02-03 12:00:24 +00:00
Dimitri John Ledkov 355afa9232 docs: Update CPE fields in package metadata spec
Update osCPE field example to use cpe 2.3 format, as is in active use by
AmazonLinux 2023 for example.

Add appCPE field example to document the upstream application CPE for the
applicable CVEs. Often distribution source package names are different from the
upstream CPE. For example adding/removing "lib" prefix, or adding version
stream "-3" suffix. This typically leads to guessing or fuzzy matching. Adding
appCPE in such cases can help to disambiguate (or collate) correct application
CPEs; especially beyond the lifetime of osCPE support timeframes.
2025-02-03 11:22:25 +00:00
Daan De Meyer 7ebe910c88 user-runtime-dir: Log the quota limit in the warning message on failure 2025-02-03 11:10:22 +01:00
Zbigniew Jędrzejewski-Szmek 2e326aad7f ukify: Calculate section size more correctly (#36215)
We should only use Misc_VirtualSize if it's smaller than SizeOfRawData,
since in that case it'll be the non-aligned section size. Otherwise we
have to use SizeOfRawData to get the size on disk.
2025-02-03 10:17:37 +01:00
Yu Watanabe d35f7966ba Merge remote-tracking branch 'weblate/main' into HEAD 2025-02-02 16:21:10 +09:00
Emilio Sepulveda 32970e8348 po: Added translation using Weblate (Interlingua)
Co-authored-by: Emilio Sepulveda <emism.translations@gmail.com>
2025-02-02 15:57:57 +09:00
Yu Watanabe 295741c0d1 udevadm-verify: document '--resolve-names=late' and accept 'never' as is
When '--resolve-names=late', systemd-udevd resolves user/group names
during each event being processed, and does not verify names on parse.
When '--resolve-names=never', systemd-udevd refuses any user/group names
on parse. Hence, the parser of udev rules behaves diffrently. Let's not
convert 'never' -> 'late' silently, and use the specified option as is.

This also updates man page and shell completion for --resolve-names
option.
2025-02-02 15:55:01 +09:00
Yu Watanabe 8623980980 udevadm: introduce parse_resolve_name_timing() 2025-02-02 15:55:01 +09:00
Yu Watanabe be73f6e35b udevadm: several cleanups around parse_device_action()
- drop unnecessary one line function dump_device_action_table(),
- make parse_device_action() log about invalid action string,
- rename output argument of parse_device_action().
2025-02-02 15:55:01 +09:00
Yu Watanabe 4489fed739 po: sort languages 2025-02-02 15:44:10 +09:00
Emilio Sepulveda 4e8ebed978 po: Added translation using Weblate (Interlingua)
Co-authored-by: Emilio Sepulveda <emism.translations@gmail.com>
2025-02-02 06:37:08 +01:00
Yu Watanabe 7db4bdcd40 udev: replace '!= _UDEV_BUILTIN_INVALID' -> '>= 0'
No functional change, just refactoring.
2025-02-02 13:09:18 +09:00
Yu Watanabe 5bb83e3f30 udev-builtin-hwdb: explicitly initialize global variable 2025-02-02 12:44:57 +09:00
Yu Watanabe c791f61949 udev-builtin: normalize load/unload log messages by builtins 2025-02-02 12:43:26 +09:00
Yu Watanabe 1a85468768 udev: introduce UDEV_BUILTIN_DESTRUCTOR macro 2025-02-02 12:36:31 +09:00
andhe 7b7e127a02 man: systemd-repart: factory=reset typo 2025-02-02 08:13:19 +09:00
dependabot[bot] 6e513fa489 build(deps): bump super-linter/super-linter from 7.1.0 to 7.2.1
Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter) from 7.1.0 to 7.2.1.
- [Release notes](https://github.com/super-linter/super-linter/releases)
- [Changelog](https://github.com/super-linter/super-linter/blob/main/CHANGELOG.md)
- [Commits](https://github.com/super-linter/super-linter/compare/b92721f792f381cedc002ecdbb9847a15ece5bb8...85f7611e0f7b53c8573cca84aa0ed4344f6f6a4d)

---
updated-dependencies:
- dependency-name: super-linter/super-linter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-02 04:09:23 +09:00
dependabot[bot] 3094820133 build(deps): bump softprops/action-gh-release from 2.1.0 to 2.2.1
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.1.0 to 2.2.1.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/01570a1f39cb168c169c802c3bceb9e93fb10974...c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-02 04:08:39 +09:00
dependabot[bot] f826602220 build(deps): bump coverallsapp/github-action from 2.3.4 to 2.3.6
Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 2.3.4 to 2.3.6.
- [Release notes](https://github.com/coverallsapp/github-action/releases)
- [Commits](https://github.com/coverallsapp/github-action/compare/cfd0633edbd2411b532b808ba7a8b5e04f76d2c8...648a8eb78e6d50909eff900e4ec85cab4524a45b)

---
updated-dependencies:
- dependency-name: coverallsapp/github-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-02 04:08:24 +09:00
Luca Boccassi 75ee025c5d kernel-install: install addons in 90-uki-copy.install if they are present
mkosi now has a kernel-install plugin to build addons, mkosi-addon.
If there are addons in <uki>.extra.d/ install them too to
the ESP.
2025-02-01 18:12:47 +09:00
Mike Yuan e14e9c9f17 Revert "Reduce priority of "cleared HibernateLocation" message"
This reverts commit 9f575145ea.
2025-02-01 15:30:50 +09:00
Yu Watanabe 546e6cb2e3 userdb: fix typo
Follow-up for 7419291670.
2025-02-01 14:09:06 +09:00
Yu Watanabe 52a0bf1621 boot: rename efifirmware.[ch] -> efi-firmware.[ch]
This also
- renames efifirmware_match_by_fwid() -> efi_firmware_match_by_fwid(),
- drops unnecessary wrapper efifw_get_fwid(),
- drops unnecessary inclusion of header <endian.h>,
- sort files in meson.build.

No functional change, just refactoring and follow-ups for
83bf58f39d.
2025-02-01 13:54:01 +09:00
Yu Watanabe 8963df6c81 man: update tags in systemd-stub(7)
- use <literal> for section name,
- use <command> for systemd-stub,
- drop '=' suffix from EFI variable name.
2025-02-01 13:37:51 +09:00