summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* build(deps): bump github/codeql-action from 1.0.26 to 1.0.27dependabot/github_actions/github/codeql-action-1.0.27dependabot[bot]2022-01-171-3/+3
| | | | | | | | | | | | | | | Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1.0.26 to 1.0.27. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/5f532563584d71fdef14ee64d17bafb34f751ce5...cd783c8a29bdcf5a5c79c5137889e24651fa626c) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* boot: Beep n times for n-th entryJan Janssen2022-01-174-18/+25
|
* man: change 'allow[s] to' -> 'allow[s] one to'Luca Boccassi2022-01-163-6/+6
| | | | Lintian is opinionated about this and we get nagged
* core: add missing dependency DBus propertiesYu Watanabe2022-01-163-12/+27
| | | | | | | | | Follow-up for 0bc488c99ab2ed3464237607e381f4d72cd321d5. Also sort dependency properties to make them match the definition of `enum UnitDependency` in basic/unit-def.h. Fixes #22133.
* core: update log messageYu Watanabe2022-01-161-2/+6
| | | | Fixes CID#1469009.
* Merge pull request #22136 from ↵Luca Boccassi2022-01-162-17/+11
|\ | | | | | | | | yuwata/network-wireguard-disable-adding-routes-to-allowed-ips-by-default network: wireguard: disable adding routes to allowed ips by default
| * network: wireguard: also accept negative boolean values to disable adding routesYu Watanabe2022-01-162-10/+10
| | | | | | | | | | | | RouteTable=off was introduced to provide consistency with wg-quick command. This makes the RouteTable= settings accepts other negative boolean values.
| * network: wireguard: do not add routes to AllowedIPs= by defaultYu Watanabe2022-01-162-9/+3
| | | | | | | | | | | | As setting such routes may break existing setups. Closes #21964.
* | ci: install libbpf-dev in the unit_tests workflowEvgeny Vereshchagin2022-01-161-0/+1
| | | | | | | | | | | | | | | | Those dependencies are also used by Coverity and Codeql so it should be installed there to get them to analyze that code. Judging by https://github.com/systemd/systemd/pull/22137 it seems to be working.
* | boot: Add PC speaker supportJan Janssen2022-01-164-1/+70
|/ | | | Fixes: #17508
* Merge pull request #22130 from keszybz/silence-gcc-warning-in-sd-deviceLuca Boccassi2022-01-151-3/+2
|\ | | | | Silence gcc warning in sd-device
| * sd-device: drop unnecessary parenthesisZbigniew Jędrzejewski-Szmek2022-01-151-2/+1
| |
| * sd-device: silence gcc warning with newest gccZbigniew Jędrzejewski-Szmek2022-01-151-1/+1
|/
* Merge pull request #22098 from DaanDeMeyer/journal-corrupt-2Yu Watanabe2022-01-144-110/+90
|\ | | | | journal: Fixes for handling of corrupt entry objects
| * journal: Fix entry array iteration corruption checksDaan De Meyer2022-01-141-71/+81
| | | | | | | | | | | | | | | | | | | | | | | | Previously, we'd try to handle corruption by bumping the index even if it was an entry array object that was corrupted (which we can't deal with). Now, we only try to deal with corrupted entry objects by moving the corruption handling into generic_array_get(). On top, we also add an additional check for -EADDRNOTAVAIL which can also be caused by corrupted journal data.
| * journal: Remove unused arguments from journal_file_next_entry_for_data()Daan De Meyer2022-01-124-39/+9
| |
* | Merge pull request #22096 from keszybz/networkctl-bus-onceYu Watanabe2022-01-142-59/+42
|\ \ | | | | | | Open the bus once in networkctl
| * | networkctl: use xsprintf a bit moreZbigniew Jędrzejewski-Szmek2022-01-141-10/+9
| | |
| * | networkctl: open the bus just onceZbigniew Jędrzejewski-Szmek2022-01-142-49/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We'd connect to the bus twice: the first time to check networkd namespace, and then the second time to do the deed we were asked to do. It's nicer to open the bus just once, for efficience and also to avoid the open call in all functions. An ASSERT_PTR helper is added: - sd_bus *bus = userdata; ... - assert(bus); + sd_bus *bus = ASSERT_PTR(userdata); ... It can be used in other place too, but I'm leaving that for a later refactoring.
* | | ci: switch to requirements.txt in the unit tests workflowEvgeny Vereshchagin2022-01-141-0/+1
|/ /
* | man: Add more details about desktop file processingBenjamin Berg2022-01-141-0/+49
| | | | | | | | | | | | | | | | In particular, mention the contract the generator has with external ExecCondition= binaries that may be provided by desktop environments. But, also mention all the other relevant keys. In particular X-systemd-skip= is important to be documented.
* | ci: turn meson warnings into errorsEvgeny Vereshchagin2022-01-142-2/+11
| |
* | Merge pull request #22111 from medhefgo/boot-cleanupLuca Boccassi2022-01-1312-49/+44
|\ \ | | | | | | boot: Cleanup
| * | boot: Use FreePool from boot services directlyJan Janssen2022-01-131-1/+1
| | | | | | | | | | | | | | | This should hopefully allow the compiler to optimize this a bit even when gnu-efi is not compiled with LTO.
| * | boot: Add missing assert to file_read()Jan Janssen2022-01-131-0/+1
| | |
| * | boot: Use _cleanup_ in shimJan Janssen2022-01-131-4/+4
| | | | | | | | | | | | Also, better be safe than sorry and check the return value.
| * | boot: Don't try to free loaded_imageJan Janssen2022-01-131-1/+1
| | | | | | | | | | | | | | | EFI_LOADED_IMAGE is a protocol pointer and thus, we shouldn't try to free it.
| * | boot: Use EFI_FILE* instead of EFI_FILE_HANDLEJan Janssen2022-01-1310-40/+32
| | | | | | | | | | | | | | | They are both the same, but the former is shorter and also closer to how file handles are represented in the UEFI spec.
| * | boot: Fix invalid freeJan Janssen2022-01-132-3/+5
| | | | | | | | | | | | | | | LocateDevicePath() advances the device path pointer, making it invalid when freed.
* | | network: use scope link for direct unicast routes by defaultYu Watanabe2022-01-134-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Strictly speaking, this breaks the backward compatibility, but I guess in most cases people already sets Scope=link for such routes. This behavior matches with how 'ip route' command adds such route by default. Prompted by https://twitter.com/jplitza/status/1480500562391179270.
* | | Merge pull request #22106 from yuwata/dhcp6-broken-NTPLuca Boccassi2022-01-133-76/+93
|\ \ \ | | | | | | | | sd-dhcp6-client: handle broken NTP server option gracefully
| * | | test: add testcase for broken NTP server optionYu Watanabe2022-01-131-0/+51
| | | | | | | | | | | | | | | | For issue #22099.
| * | | test: voidify test functionsYu Watanabe2022-01-131-71/+30
| | | | | | | | | | | | | | | | This also drops unnecessary arguments, and unbreak several lines.
| * | | sd-dhcp6-client: expose client_parse_message()Yu Watanabe2022-01-132-1/+8
| | | | | | | | | | | | | | | | To introduce tests for the function in later commits.
| * | | sd-dhcp6-client: ignore broken non-critical optionsYu Watanabe2022-01-131-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The commit b89a3758e92894162e3c2dcb594a55acff3274d5 made the validity check of the received message stricter. E.g. if the client received a message with broken NTP server option, then the entire message is dropped. This relaxes the check. If some non-critical options are broken, then ignore the options, but the message itself is still accepted. Fixes #22099.
* | | | journal: Don't discard -b arg when followed by -eDaan De Meyer2022-01-141-2/+0
| |/ / |/| | | | | | | | | | | | | | | | | | | | Allowing -e to be used to view the last logs of a previous boot seems like a useful feature so let's not discard -b options anymore when followed by -e. Fixes #22107
* | | boot: add missing error checkYu Watanabe2022-01-131-1/+1
| | | | | | | | | | | | | | | | | | Follow-up for 661615a0afacee3545cde0a48286c0fef983f8fe. Fixes CID#1468973.
* | | {build|unit}-test: show meson-log.txt when meson failsEvgeny Vereshchagin2022-01-132-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to make it easier to figure out why it fails. For example in https://github.com/systemd/systemd/runs/4799774735?check_suite_focus=true it failed with ``` meson.build:1003:8: ERROR: Command "/usr/bin/clang -print-targets" failed with status 1. A full log can be found at /home/runner/work/systemd/systemd/build/meson-logs/meson-log.txt Error: Process completed with exit code 1. ``` and it wasn't clear what exactly happened there.
* | | po: Translated using Weblate (Portuguese)Hugo Carvalho2022-01-131-11/+12
|/ / | | | | | | | | | | | | | | Currently translated at 100.0% (189 of 189 strings) Co-authored-by: Hugo Carvalho <hugokarvalho@hotmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/pt/ Translation: systemd/main
* | Merge pull request #22100 from bluca/test_partYu Watanabe2022-01-132-14/+74
|\ \ | | | | | | Fix TEST-58-REPART on ppc64el
| * | test: do not assume x86-64 arch in TEST-58-REPARTLuca Boccassi2022-01-121-11/+65
| | |
| * | test: add partition IDs for s390x and ppc64el to TEST-50-DISSECTLuca Boccassi2022-01-121-3/+9
|/ /
* | journal: Skip data objects with invalid offsetsDaan De Meyer2022-01-121-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We already skip invalid objects, but don't yet skip invalid offsets. Let's skip these as well to improve robustness when we're dealing with corrupted journals. Before: ``` ➜ systemd git:(main) build/journalctl -r -n 5 --file ~/Downloads/system@0005d2b275abaaf8-f243a2818cb39b98.journal_ Failed to get journal fields: Cannot assign requested address -- No entries -- ``` After: ``` ➜ systemd git:(main) ✗ build/journalctl -r -n 5 --file ~/Downloads/system@0005d2b275abaaf8-f243a2818cb39b98.journal_ Dec 09 08:32:38 snowball3 NetworkManager[911]: <info> [1639038758.1464] device (wlp1s0): supplicant interface state: scanning -> authenticating Dec 09 08:32:38 snowball3 kernel: wlp1s0: send auth to ec:a9:40:79:fb:ad (try 1/3) Dec 09 08:32:38 snowball3 kernel: wlp1s0: authenticate with ec:a9:40:79:fb:ad Dec 09 08:32:38 snowball3 wpa_supplicant[1003]: wlp1s0: SME: Trying to authenticate with ec:a9:40:79:fb:ad (SSID='UPC949397B' freq=5500 MHz) ```
* | xdg-autostart-service: Ignore missing desktop-sepcific condition binaryBenjamin Berg2022-01-121-1/+1
| | | | | | | | | | | | | | | | | | If a desktop specific ExecCondition= binary does not exist, this just means that the desktop environment is not available. As such, it is not an error condition that should prevent the service from being installed in the .wants target. Fix this by simply returning zero.
* | Merge pull request #22092 from keszybz/docs-linksZbigniew Jędrzejewski-Szmek2022-01-1244-119/+342
|\ \ | | | | | | Add more doc pages, adjust links, add explanatory headers to examples and relax license to CC-0
| * | docs: promise stability for the journal json format tooZbigniew Jędrzejewski-Szmek2022-01-121-0/+1
| | |
| * | man+docs: adjust links to the new pageZbigniew Jędrzejewski-Szmek2022-01-127-33/+24
| | |
| * | docs: import the Journal JSON Format description as subsectionZbigniew Jędrzejewski-Szmek2022-01-121-1/+38
| | | | | | | | | | | | | | | I don't think we need a separate page for this, so both "export" formats share a page. We can just link to the approprate section when necessary.
| * | docs: import the Journal Export Format description from the wikiZbigniew Jędrzejewski-Szmek2022-01-121-0/+119
| | | | | | | | | | | | This is a straightforward import, only links are adjusted.
| * | policy files: adjust landing page linkZbigniew Jędrzejewski-Szmek2022-01-1211-11/+11
| | |