summaryrefslogtreecommitdiffstats
path: root/src/udev (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-12-30network: complete example for xfrm setupNoel Kuntze1-0/+1
2021-12-30systemd-run: ensure error logs suggest to use '--user' when appropriateLuca Boccassi1-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
2021-12-30dbus-wait-for-jobs: add extra_args to bus_wait_for_jobs_one()Luca Boccassi6-11/+11
And pass it through to bus_wait_for_jobs()
2021-12-29test: mark partition bootableLudwig Nussel1-1/+1
Make test suite partition bootable so nspawn can use the image directly. Useful for local testing. https://systemd.io/DISCOVERABLE_PARTITIONS/
2021-12-29boot: Introduce helper macros for offset checkingJan Janssen1-8/+18
This fixes a subtle sizeof overflow on 32bit machines.
2021-12-29boot: Reject unaligned dataJan Janssen1-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
2021-12-29boot: Build BCD parser only on arches supported by WindowsJan Janssen2-9/+14
2021-12-29manager: always close idle pipe when sending ready notificationYu Watanabe1-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.
2021-12-29stub: Do not assume having DeviceHandleksa6784917842-1/+8
2021-12-28network: ndisc: ignore route prefix to ::/0Yu Watanabe1-0/+5
Fixes #21912.
2021-12-28test: add testcases of symlinked drop-in directoriesYu Watanabe1-0/+20
2021-12-28unti-file: fix symlinked drop-in directory handlingYu Watanabe1-23/+61
This fixes a bug introduced by 95ef0eaf0d5cd43fcc8e9eb541f2c342f25f8f2f. Fixes #21920.
2021-12-28meson: obtain dbus directories from pkg-configYu Watanabe1-28/+55
2021-12-28meson: show dbus interfaces directory in summaryYu Watanabe1-0/+1
2021-12-28meson: move dbus-interfaces-dirYu Watanabe1-3/+2
2021-12-28core: do not touch /run/systemd/systemd-units-load from user session instancesLuca Boccassi1-3/+4
Follow-up for: https://github.com/systemd/systemd/commit/15b9243c0d7f6d1531fa65dbc01bd11e8e6c12ca Fixes: https://github.com/systemd/systemd/issues/21911
2021-12-27boot: Fix name length comparisonJan Janssen1-2/+3
2021-12-27boot: Fix off-by-one offset sanity checksJan Janssen1-9/+9
2021-12-27boot: Fix off-by-one NUL-terminationJan Janssen2-3/+3
2021-12-27build(deps): bump github/super-linter from 4.8.4 to 4.8.5dependabot[bot]1-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>
2021-12-27chrattr-util: return EOPNOTSUPP from chrattr_full if no other failure was ↵Luca Boccassi1-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
2021-12-26ci: replace apt-key with signed-byEvgeny Vereshchagin1-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/
2021-12-26hwdb: 60-keyboard: Fix volume-button mapping on Asus TF103CHans de Goede1-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).
2021-12-26random-util: use ssize_t for getrandom return valueMike Gilbert2-9/+10
This matches the prototype provided by glibc.
2021-12-25meson: don't try to guess versioned clang/llvm-strip bins for cross compileJames Hilliard1-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.
2021-12-25tree-wide: fix typoYu Watanabe5-6/+6
2021-12-25shared/linux: update linux headers from v5.16-rc6Yu Watanabe4-72/+1464
2021-12-25basic/linux: update linux headers from v5.16-rc6Yu Watanabe11-17/+294
2021-12-25test-network: add testcase for vxlan local address auto selectionYu Watanabe4-3/+43
2021-12-25network: vxlan: support to select an address assigned on underlying ↵Yu Watanabe3-18/+90
interface as local address
2021-12-25test: ignore the error about our own libraries missing during image creationZbigniew Jędrzejewski-Szmek1-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.
2021-12-25meson: allow specifying a custom "tag" for the private shared libariesZbigniew Jędrzejewski-Szmek4-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.
2021-12-25meson: create new libsystemd-core.so private shared libraryZbigniew Jędrzejewski-Szmek5-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.
2021-12-25test: add test for truncation of program result invoked by udevYu Watanabe1-9/+14
2021-12-25udev: refuse to process line when invalid program output is obtainedYu Watanabe1-1/+5
2021-12-25udev: do not import property value from truncated line of program resultYu Watanabe4-14/+34
2021-12-25udev: warn about truncation of program resultYu Watanabe1-2/+10
Closes #21078.
2021-12-25udev: warn when result of string substitution is truncatedYu Watanabe4-63/+263
2021-12-25test: add tests for strnpcpy_full() and friendsYu Watanabe1-16/+89
2021-12-25util: introduce strnpcpy_full() and friends to provide whether result is ↵Yu Watanabe2-26/+74
truncated or not
2021-12-25bus-dump: change capture output to use pcapng (#21738)Stephen Hemminger7-55/+238
This patch changes busctl capture to generate pcapng format instead of the legacy pcap format files. It includes basic meta-data in the file and still uses microsecond time resolution. In future, more things can be added such as high resolution timestams, statistics, etc. PCAP Next Generation capture file format is what tshark uses and is in process of being standardized in IETF. It is also readable with libpcap. $ capinfos /tmp/new.pcapng File name: /tmp/new.pcapng File type: Wireshark/... - pcapng File encapsulation: D-Bus File timestamp precision: microseconds (6) Packet size limit: file hdr: (not set) Packet size limit: inferred: 4096 bytes Number of packets: 22 File size: 21kB Data size: 20kB Capture duration: 0.005694 seconds First packet time: 2021-12-11 11:57:42.788374 Last packet time: 2021-12-11 11:57:42.794068 Data byte rate: 3,671kBps Data bit rate: 29Mbps Average packet size: 950.27 bytes Average packet rate: 3,863 packets/s SHA256: b85ed8b094af60c64aa6d9db4a91404e841736d36b9e662d707db9e4096148f1 RIPEMD160: 81f9bac7ec0ec5cd1d55ede136a5c90413894e3a SHA1: 8400822ef724b934d6000f5b7604b9e6e91be011 Strict time order: True Capture oper-sys: Linux 5.14.0-0.bpo.2-amd64 Capture application: systemd 250 (250-rc2-33-gdc79ae2+) Number of interfaces in file: 1 Interface #0 info: Encapsulation = D-Bus (146 - dbus) Capture length = 4096 Time precision = microseconds (6) Time ticks per second = 1000000 Number of stat entries = 0 Number of packets = 22
2021-12-24list: drop unnecessary line continuationYu Watanabe2-2/+2
Fixes #21886.
2021-12-24ci: test build with supported cryptolibs to some degreeFrantisek Sumsal2-9/+10
Let's assign a specific -Dcryptolib= value to each job to have at least some coverage for all supported cryptolibs without unnecessarily multiplying the test matrix. Should provide coverage for #21880.
2021-12-24ci: drop build test with -O2, since it's covered by -O3 testsFrantisek Sumsal1-1/+0
2021-12-24meson: fix build with -Dcryptolib=openssl -Ddns-over-tls=falseYu Watanabe2-10/+2
Previously, when -Ddns-over-tls=false, libopenssl was missing in the dependency of resolved. Also, this drops libgpg_error when it is not necessary. Replaces #21878.
2021-12-24man: also add anotations for methodsYu Watanabe5-0/+40
Fixes #21882.
2021-12-24missing-syscall: define all MOUNT_ATTR_* if missingYu Watanabe1-6/+42
Fixes #21876.
2021-12-23NEWS: finalize releasev250Zbigniew Jędrzejewski-Szmek1-1/+1
2021-12-23analyze: fix segfault when malloc() fails (#21874)Yu Watanabe1-0/+3
Fixes #21872. log_syntax_callback sets 's', a.k.a. '*userdata', to POINTER_MAX to signal allocation failure. If the error does not cause immediate failure of the program, and log_syntax_callback is called again, it would try to use 's' as a pointer to a set and fail badly.
2021-12-23meson: report SBAT settingsZbigniew Jędrzejewski-Szmek1-1/+13