summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* test: sd_bus_process() may assign NULL even if it returns positiveYu Watanabe2023-11-161-1/+1
| | | | | | Let's not trigger assert_return() needlessly. Prompted by #30029.
* test: several cleanups for test-bus-chatYu Watanabe2023-11-161-5/+17
| | | | | | | | | | - use sd_bus_query_sender_creds() to retrieve credentials, - read credentials only when we get credentials, to avoid triggering assert_return(), - downgrade log level of expected failure, and update log message about unexpected success. Prompted by #30029.
* sd-bus: drop SD_BUS_CREDS_AUGMENT flagYu Watanabe2023-11-161-1/+1
| | | | | | | On checking if the message has enough credentials, the special flag needs to be dropped. Fixes a bug introduced by 705a415f684f8e9ee19983e5859de00bbb1477cb.
* sd-bus: insert missing spaceYu Watanabe2023-11-161-1/+1
|
* Merge pull request #30040 from yuwata/assert-return-fixesFrantisek Sumsal2023-11-154-5/+17
|\ | | | | several assert_return() fixes
| * sd-device: do not trigger assertion by a bad udev rulesYu Watanabe2023-11-151-2/+7
| | | | | | | | | | | | | | The assertion can be triggered by bad `$attr{[<subsys>/<sysname>]<attribute>}` formatting. That's not a programmer's error, but a runtime error. Prompted by #30029.
| * dhcp: do not trigger assertion by malformed messagesYu Watanabe2023-11-152-3/+6
| | | | | | | | | | | | | | This also changes error code from -ENODATA -> -EBADMSG, as we received bad message in that case. Prompted by #30029.
| * network: do not try to create netdev from testsYu Watanabe2023-11-151-0/+4
| | | | | | | | Prompted by #30029.
* | repart: Fix compilation warning when tpm2 is disabledKrzesimir Nowak2023-11-151-1/+1
|/ | | | | | | | | | | | | | The warning is about unused variable "flags": ``` ../src/partition/repart.c: In function ‘partition_encrypt’: ../src/partition/repart.c:3690:19: warning: unused variable ‘flags’ [-Wunused-variable] 3690 | TPM2Flags flags = 0; | ^~~~~ ``` Move the flags variable into the scope where it is actually used, which happens to be inside the HAVE_TPM2 block.
* NEWS: finalize for v255-rc2v255-rc2Luca Boccassi2023-11-151-1/+1
|
* Merge pull request #30033 from mrc0mmand/assert_return-tweaksLuca Boccassi2023-11-153-7/+7
|\ | | | | Dial back a couple of `assert_return()` uses
| * sd-bus: don't treat invalid user/machine as a programming errorFrantisek Sumsal2023-11-151-4/+4
| | | | | | | | | | $ SYSTEMD_LOG_LEVEL=debug machinectl status --machine=@ Assertion 'r > 0' failed at src/libsystemd/sd-bus/sd-bus.c:1694, function sd_bus_open_system_machine(). Ignoring.
| * mount: don't call sd_device_get_property_value() with a NULL pointerFrantisek Sumsal2023-11-151-2/+1
| | | | | | | | | | | | | | Otherwise bad thing would've happened is this was a hard assert: + systemd-mount --umount /dev/loop0 Assertion 'device' failed at src/libsystemd/sd-device/sd-device.c:2202, function sd_device_get_property_value(). Ignoring.
| * sd-journal: don't treat invalid match as a programming errorFrantisek Sumsal2023-11-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | Don't use assert_runtime() when we get an invalid match string, since that's a runtime error: $ SYSTEMD_LOG_LEVEL=debug coredumpctl info = ... Adding match: = Assertion 'match_is_valid(data, size)' failed at src/libsystemd/sd-journal/sd-journal.c:240, function sd_journal_add_match(). Ignoring. Failed to add match "=": Invalid argument
* | Merge pull request #30035 from keszybz/buid-sys-cleanupsLuca Boccassi2023-11-155-26/+16
|\ \ | | | | | | Build system cleanups
| * | hwdb/acpi-update.py: streamline python codeZbigniew Jędrzejewski-Szmek2023-11-151-18/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use f-strings and simplify the code a bit. When I call 'acpi-update.py' after those changes, the resulting .hwdb files are the same except for two additions that appeared in the meantime. I don't think it makes sense to update them again, because the ma-*.txt files changed and we don't want to store big blobs unnecessarilly.
| * | hwdb: rename .html=>.csvZbigniew Jędrzejewski-Szmek2023-11-154-4/+4
| | | | | | | | | | | | The old suffix is now confusing.
| * | meson: use ternary op for brevityZbigniew Jędrzejewski-Szmek2023-11-151-5/+1
| | |
* | | man/systemd-creds: fix a typoMike Yuan2023-11-151-2/+2
| | |
* | | test: update Ubuntu CI instructionsFrantisek Sumsal2023-11-151-0/+1
| | |
* | | Merge pull request #30030 from poettering/gpt-growfs-root-fixLuca Boccassi2023-11-151-8/+41
|\ \ \ | |/ / |/| | make gpt flag 59 (growfs) actually work on the root fs
| * | gpt-auto-generator: hook in "growfs" for the root fs if the GPT flag 59 says soLennart Poettering2023-11-151-3/+31
| | | | | | | | | | | | Fixes: #29791
| * | gpt-auto-generator: don't eat up errors of generator_enable_remount_fs_service()Lennart Poettering2023-11-151-1/+3
| | | | | | | | | | | | | | | | | | I cannot see a reason why we should ignore this error, so let's not. We use RET_GATHER() on the returns anyway, i.e. collect errors but continue, so it makes sense to collect this one too.
| * | gpt-auto-generator: add comment + assert() explaining mode of invocationLennart Poettering2023-11-151-0/+5
| | | | | | | | | | | | We are not invoked in the initrd, and that deserves a comment.
| * | gpt-auto-generator: drop in_initrd() check in add_partition_root_rw()Lennart Poettering2023-11-151-4/+2
| |/ | | | | | | | | | | This call is never called in the initrd, hence we can drop the extra check, as it is redundant. Let's keep it as an assert() though, as a form of code-enforced documentation.
* | NEWS: adjust indentationZbigniew Jędrzejewski-Szmek2023-11-151-22/+22
| | | | | | | | | | | | A non-breaking space is used between "PCR" and the number. I did search&replace on the whole file, so that when people select&paste later, they are more likely to use the same format.
* | boot: measure config first, only then parseLennart Poettering2023-11-151-1/+4
|/ | | | Fixes: #30026
* fuzz: don't panic without a C++ compilerFrantisek Sumsal2023-11-152-3/+10
| | | | | | | meson's `cpp_args` option is defined only if it detects a C++ compiler, otherwise we get an error: ../test/fuzz/meson.build:56:28: ERROR: Tried to access unknown option 'cpp_args'.
* NEWS fixesLennart Poettering2023-11-151-17/+26
|
* Merge pull request #30028 from yuwata/duid-fix-sizeLuca Boccassi2023-11-153-15/+25
|\ | | | | dhcp: fix DUID size
| * sd-dhcp6-client: fix DUID data length passed to hexmem()Yu Watanabe2023-11-151-2/+2
| | | | | | | | Fixes a bug introduced by 6b7d5b6eaf9029b88771ae0ba3cf3c95adb3c24d.
| * dhcp: fix maximum DUID sizeYu Watanabe2023-11-152-12/+23
| | | | | | | | | | | | | | This effectively reverts 92914960113b9ed21570f4329e2b2b2bf3e84629. This fixes the maximum length of DUID. See RFC 8415 section 11.1.
| * dhcp: drop unused prototypeYu Watanabe2023-11-151-1/+0
|/ | | | Follow-up for 53488ea352b658e37eef06f958c3f8ca062a64d9.
* Merge pull request #30027 from bluca/newsYu Watanabe2023-11-1574-8632/+14671
|\ | | | | Update syscalls/hwdb/po
| * Update po filesLuca Boccassi2023-11-1439-3430/+8686
| | | | | | | | | | | | | | | | | | These are all newline breaks, but some meson tool changed at some point that causes all of these changes to happen, and they have started to appear when Weblate sends translations update, making them very hard to review as they are mostly adding these breaks. Update all files once and for all so that new translations PRs are easier to review.
| * Update hwdbLuca Boccassi2023-11-1413-3280/+5891
| |
| * hwdb: PNP/ACPI lists on uefi.org are now in CSV formatLuca Boccassi2023-11-141-63/+15
| | | | | | | | | | | | Adjust the parsing as it's no longer HTML files. Some IDs end with whitespace, without being quoted, which seems like a mistake as they weren't before, so strip the ID columns before applying them.
| * docs/RELEASE.md: retain systemd.io in IRC topic updateLuca Boccassi2023-11-141-1/+1
| |
| * Update syscalls listLuca Boccassi2023-11-1420-1858/+78
|/
* NEWS: update contributors listLuca Boccassi2023-11-141-18/+21
|
* NEWS: update for latest featuresLuca Boccassi2023-11-141-4/+32
|
* Merge pull request #30023 from mrc0mmand/selinuxLuca Boccassi2023-11-146-125/+68
|\ | | | | test: make TEST-06-SELINUX work with the refpolicy and beef it up a bit
| * test: make TEST-06-SELINUX work with the refpolicy and beef it up a bitFrantisek Sumsal2023-11-146-119/+65
| | | | | | | | | | | | | | Currently the test works only with policy shipped by Fedora, which makes it pretty much useless in most of our CIs. Let's drop the custom module and make the test more generic, so it works with the refpolicy as well, which should allow us to run it on Arch and probably even in Ubuntu CI.
| * test: switch SELinux to permissive in the config fileFrantisek Sumsal2023-11-142-7/+4
| | | | | | | | | | The config file has (unfortunately) precedence over the kernel command line, so let's tweak the config file if necessary.
* | Merge pull request #29930 from yuwata/meson-default-network-fix-install-pathZbigniew Jędrzejewski-Szmek2023-11-144-37/+43
|\ \ | | | | | | meson: fix install path of example .network files
| * | test: use wait-onlineYu Watanabe2023-11-081-2/+2
| | |
| * | test: prefix network config files with digitsYu Watanabe2023-11-083-7/+7
| | |
| * | networkd-test.py: prefix .network and .netdev files with digitsYu Watanabe2023-11-081-28/+28
| | | | | | | | | | | | | | | Otherwise config files generated by systemd-network-generator may match with the test interfaces.
| * | networkd-test.py: hide default .network filesYu Watanabe2023-11-081-0/+6
| | | | | | | | | | | | To make the test works fine with -Ddefault-network=True.
| * | meson: fix install path of example .network filesYu Watanabe2023-11-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | It seems that when 'rename' field is set, the path (instead of the filename) is appended to the 'install_dir'. Follow-up for 9b7a624267fddc5c20bd15480e7a393d7a3b270e. Fixes #29925.