summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sysusers: use filename if /proc is not mountedYu Watanabe2021-12-301-1/+1
| | | | | | During system install, /proc may not be mounted yet. Fixes RHBZ#2036217 (https://bugzilla.redhat.com/show_bug.cgi?id=2036217).
* network: complete example for xfrm setupNoel Kuntze2021-12-301-0/+1
|
* systemd-run: ensure error logs suggest to use '--user' when appropriateLuca Boccassi2021-12-301-3/+3
| | | | | | | | | | | | | | | | Before: $ systemd-run --service-type=notify --user false Job for run-rc3fe52ee6ddd4a6eaaf1a20e0a949cdf.service failed because the control process exited with error code. See "systemctl status run-rc3fe52ee6ddd4a6eaaf1a20e0a949cdf.service" and "journalctl -xeu run-rc3fe52ee6ddd4a6eaaf1a20e0a949cdf.service" for details. After: $ systemd-run --service-type=notify --user false Job for run-r7791e380a7b6400ea01d6a0e5a458b23.service failed because the control process exited with error code. See "systemctl --user status run-r7791e380a7b6400ea01d6a0e5a458b23.service" and "journalctl --user -xeu run-r7791e380a7b6400ea01d6a0e5a458b23.service" for details. Fixes https://github.com/systemd/systemd/issues/21933
* dbus-wait-for-jobs: add extra_args to bus_wait_for_jobs_one()Luca Boccassi2021-12-306-11/+11
| | | | And pass it through to bus_wait_for_jobs()
* Merge pull request #21922 from medhefgo/boot-fixLuca Boccassi2021-12-293-19/+37
|\ | | | | boot: More BCD parser fixes
| * boot: Introduce helper macros for offset checkingJan Janssen2021-12-291-8/+18
| | | | | | | | This fixes a subtle sizeof overflow on 32bit machines.
| * boot: Reject unaligned dataJan Janssen2021-12-291-3/+6
| | | | | | | | | | | | | | The data seems to be properly aligned in real BCD stores, so it should be fine to just reject bad ones. Fixes: #21917
| * boot: Build BCD parser only on arches supported by WindowsJan Janssen2021-12-292-9/+14
| |
* | test: mark partition bootableLudwig Nussel2021-12-291-1/+1
|/ | | | | | | Make test suite partition bootable so nspawn can use the image directly. Useful for local testing. https://systemd.io/DISCOVERABLE_PARTITIONS/
* Merge pull request #21898 from yuwata/meson-dbus-interfaces-dirLuca Boccassi2021-12-292-31/+58
|\ | | | | meson: obtain dbus related directories from pkg-config
| * meson: obtain dbus directories from pkg-configYu Watanabe2021-12-281-28/+55
| |
| * meson: show dbus interfaces directory in summaryYu Watanabe2021-12-281-0/+1
| |
| * meson: move dbus-interfaces-dirYu Watanabe2021-12-281-3/+2
| |
* | manager: always close idle pipe when sending ready notificationYu Watanabe2021-12-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug introduced by 6d9326595592f98e8126eacb4176acd8c3516d5c. The commit makes several functions skipped if the manager is already in finished state, as > In manager_check_finished(), more steps are skipped if MANAGER_IS_FINISHED(). > Those steps are idempotent, but no need to waste cycles trying to do them > more than once. However, the idle pipe may be re-opened after manager is finished: manager_dispatch_run_queue() -> manager_watch_idle_pipe(). So, the closing the pipe is not idempotent here. Fixes #21889.
* | stub: Do not assume having DeviceHandleksa6784917842021-12-292-1/+8
| |
* | network: ndisc: ignore route prefix to ::/0Yu Watanabe2021-12-281-0/+5
| | | | | | | | Fixes #21912.
* | Merge pull request #21925 from yuwata/unit-file-symlinked-drop-in-directoryLuca Boccassi2021-12-282-23/+81
|\ \ | | | | | | unit-file: fix symlinked drop-in directory handling
| * | test: add testcases of symlinked drop-in directoriesYu Watanabe2021-12-281-0/+20
| | |
| * | unti-file: fix symlinked drop-in directory handlingYu Watanabe2021-12-281-23/+61
|/ / | | | | | | | | | | This fixes a bug introduced by 95ef0eaf0d5cd43fcc8e9eb541f2c342f25f8f2f. Fixes #21920.
* / core: do not touch /run/systemd/systemd-units-load from user session instancesLuca Boccassi2021-12-281-3/+4
|/ | | | | Follow-up for: https://github.com/systemd/systemd/commit/15b9243c0d7f6d1531fa65dbc01bd11e8e6c12ca Fixes: https://github.com/systemd/systemd/issues/21911
* Merge pull request #21916 from medhefgo/boot-fixLuca Boccassi2021-12-282-14/+15
|\ | | | | boot: Fixes
| * boot: Fix name length comparisonJan Janssen2021-12-271-2/+3
| |
| * boot: Fix off-by-one offset sanity checksJan Janssen2021-12-271-9/+9
| |
| * boot: Fix off-by-one NUL-terminationJan Janssen2021-12-272-3/+3
|/
* build(deps): bump github/super-linter from 4.8.4 to 4.8.5dependabot[bot]2021-12-271-1/+1
| | | | | | | | | | | | | | | Bumps [github/super-linter](https://github.com/github/super-linter) from 4.8.4 to 4.8.5. - [Release notes](https://github.com/github/super-linter/releases) - [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md) - [Commits](https://github.com/github/super-linter/compare/563be7dc5568017515b9e700329e9c6d3862f2b7...b8641364ca9a79b3cf07f3c4c59a82709cd39094) --- updated-dependencies: - dependency-name: github/super-linter dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* chrattr-util: return EOPNOTSUPP from chrattr_full if no other failure was ↵Luca Boccassi2021-12-271-1/+11
| | | | | | | | | | | | | | | | | | observed When chattr_full tries to apply flags one-by-one, and one fails, record which errno was returned. But record EOPNOTSUPP(&friends) only if no other error is observed, and return it only in that case (otherwise keep returning ENOANO), so that callers can respond appropriately to EOPNOTSUPP vs more relevant errors. For example, this lets tmpfiles.d log at debug level when a filesystem flag cannot be applied because the filesystem does not support it, but at warning level if something else went wrong when applying it. Restores logging behaviour of tmpfiles.d to pre-250. Follow-up for: https://github.com/systemd/systemd/commit/c1631ee124a30abfb9c71e2a1534b8afffc3b6a7 Fixes: https://github.com/systemd/systemd/issues/21901
* Merge pull request #21881 from yuwata/update-linux-headersLuca Boccassi2021-12-2615-89/+1758
|\ | | | | Update linux headers
| * shared/linux: update linux headers from v5.16-rc6Yu Watanabe2021-12-254-72/+1464
| |
| * basic/linux: update linux headers from v5.16-rc6Yu Watanabe2021-12-2511-17/+294
| |
* | Merge pull request #21892 from ↵Luca Boccassi2021-12-267-21/+133
|\ \ | | | | | | | | | | | | yuwata/network-vxlan-automatic-local-address-selection network: vxlan: automatic local address selection
| * | test-network: add testcase for vxlan local address auto selectionYu Watanabe2021-12-254-3/+43
| | |
| * | network: vxlan: support to select an address assigned on underlying ↵Yu Watanabe2021-12-253-18/+90
| |/ | | | | | | interface as local address
* | ci: replace apt-key with signed-byEvgeny Vereshchagin2021-12-261-3/+4
| | | | | | | | | | | | to limit the scope of the key to apt.llvm.org only. This is mostly inspired by https://blog.cloudflare.com/dont-use-apt-key/
* | hwdb: 60-keyboard: Fix volume-button mapping on Asus TF103CHans de Goede2021-12-261-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Asus TF103C misses the home button in its PNP0C40 GPIO resources causing the button mappings for the volume buttons to be off by one, leading to the volume-up button sending home button presses and the volume-down button sending volume-up button presses. Add a 60-keyboard hwdb entry to correct the mappings. Note this is split over 2 input devices because the soc_button_array driver creates separate input devices for power + home and vol up/down. This is done because power/home act as wakeup buttons where as the volume buttons do not. This means that after this fixup the home -> volume-up button still acts as a wakeup button, there is nothing which can be done about this without adding a kludge to the kernel which is not worth the trouble (IMHO).
* | random-util: use ssize_t for getrandom return valueMike Gilbert2021-12-262-9/+10
| | | | | | | | This matches the prototype provided by glibc.
* | meson: don't try to guess versioned clang/llvm-strip bins for cross compileJames Hilliard2021-12-251-2/+2
| | | | | | | | | | | | | | | | This should simplify overriding the program locations as the binary names should now not change if cross compiling. It's likely any attempts at autodetecting these in cross environments will be brittle at best so lets just disable it.
* | tree-wide: fix typoYu Watanabe2021-12-255-6/+6
| |
* | Merge pull request #21774 from ↵Yu Watanabe2021-12-257-25/+36
|\ \ | | | | | | | | | | | | keszybz/make-libcore-shared-and-add-lib-tag-option Make libcore shared and add private shared lib tag option
| * | test: ignore the error about our own libraries missing during image creationZbigniew Jędrzejewski-Szmek2021-12-251-6/+8
| | | | | | | | | | | | | | | | | | | | | 19:50:59 F: Missing a shared library required by /var/tmp/systemd-test.NIPT2q/root/lib/systemd/libsystemd-core-250.so. 19:50:59 F: Run "ldd /var/tmp/systemd-test.NIPT2q/root/lib/systemd/libsystemd-core-250.so" to find out what it is. 19:50:59 F: libsystemd-shared-250.so => not found 19:50:59 F: Cannot create a test image.
| * | meson: allow specifying a custom "tag" for the private shared libariesZbigniew Jędrzejewski-Szmek2021-12-254-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have /usr/lib/systemd/libsystemd-{shared,core}-nnn.so. With this path the 'nnn' part can be changed to something different. The idea is that during a package build this will be set to the package version. This way during in-place upgrades with the same major version both the new and old libraries can cooexit. This should fix the issue when systemd programs are called during package upgrades and fail to exec because the expect different symbols in the library they are linked to. This should fix https://bugzilla.redhat.com/show_bug.cgi?id=1906010.
| * | meson: create new libsystemd-core.so private shared libraryZbigniew Jędrzejewski-Szmek2021-12-255-18/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The scheme is very similar to libsystemd-shared.so: instead of building a static library, we build a shared library from the same objects and link the two users to it. Both systemd and systemd-analyze consist mostly of the fairly big code in libcore, so we save a bit on the installation: (-0g, no strip) -rwxr-xr-x 5238864 Dec 14 12:52 /var/tmp/inst1/usr/lib/systemd/systemd -rwxr-xr-x 5399600 Dec 14 12:52 /var/tmp/inst1/usr/bin/systemd-analyze -rwxr-xr-x 244912 Dec 14 13:17 /var/tmp/inst2/usr/lib/systemd/systemd -rwxr-xr-x 461224 Dec 14 13:17 /var/tmp/inst2/usr/bin/systemd-analyze -rwxr-xr-x 5271568 Dec 14 13:17 /var/tmp/inst2/usr/lib/systemd/libsystemd-core-250.so (-0g, strip) -rwxr-xr-x 2522080 Dec 14 13:19 /var/tmp/inst1/usr/lib/systemd/systemd -rwxr-xr-x 2604160 Dec 14 13:19 /var/tmp/inst1/usr/bin/systemd-analyze -rwxr-xr-x 113304 Dec 14 13:19 /var/tmp/inst2/usr/lib/systemd/systemd -rwxr-xr-x 207656 Dec 14 13:19 /var/tmp/inst2/usr/bin/systemd-analyze -rwxr-xr-x 2648520 Dec 14 13:19 /var/tmp/inst2/usr/lib/systemd/libsystemd-core-250.so So for systemd itself we grow a bit (2522080 → 2648520+113304=2761824), but overall we save. The most is saved on all the test files that link to libcore, if they are installed, because there's 15 of them: $ du -s /var/tmp/inst? 220096 /var/tmp/inst1 122960 /var/tmp/inst2 I also considered making systemd-analyze a symlink to /usr/lib/systemd/systemd and turning systemd into a multicall binary. We did something like this with udevd and udevadm. But that solution doesn't fit well in this case. systemd-analyze has a bunch of functionality that is not used in systemd, so the systemd binary would need to grow quite a bit. And we're likely to add new types of verification or introspection features in analyze, and this baggage would only grow. In addition, there are the test binaries which also benefit from this.
* | | Merge pull request #21765 from yuwata/udev-warn-truncationYu Watanabe2021-12-258-127/+485
|\ \ \ | |_|/ |/| | udev: warn string truncation
| * | test: add test for truncation of program result invoked by udevYu Watanabe2021-12-251-9/+14
| | |
| * | udev: refuse to process line when invalid program output is obtainedYu Watanabe2021-12-251-1/+5
| | |
| * | udev: do not import property value from truncated line of program resultYu Watanabe2021-12-254-14/+34
| | |
| * | udev: warn about truncation of program resultYu Watanabe2021-12-251-2/+10
| | | | | | | | | | | | Closes #21078.
| * | udev: warn when result of string substitution is truncatedYu Watanabe2021-12-254-63/+263
| | |
| * | test: add tests for strnpcpy_full() and friendsYu Watanabe2021-12-251-16/+89
| | |
| * | util: introduce strnpcpy_full() and friends to provide whether result is ↵Yu Watanabe2021-12-252-26/+74
| |/ | | | | | | truncated or not
* | Merge pull request #20833 from pdmorrow/onfailure_envYu Watanabe2021-12-2513-37/+548
|\ \ | |/ |/| service: pass exiting service state to triggered On{Failure,Success}= dependencies