Frantisek Sumsal [Wed, 2 Nov 2022 10:44:00 +0000 (11:44 +0100)]
test: further extend systemctl's sanity coverage
Also, fix a race condition introduced by
d16684fe13:
```
[ 16.904218] H testsuite-26.sh[394]: + systemd-run --unit failed.service /bin/false
[ 16.964783] H systemd[845]: failed.service: Executing: /bin/false
[ 16.965062] H systemd[1]: Started failed.service.
[ 16.965462] H testsuite-26.sh[844]: Running as unit: failed.service
[ 16.966390] H testsuite-26.sh[394]: + systemctl is-failed failed.service
[ 16.977970] H testsuite-26.sh[846]: active
[ 16.978403] H systemd[1]: failed.service: Main process exited, code=exited, status=1/FAILURE
[ 16.978478] H systemd[1]: failed.service: Failed with result 'exit-code'.
```
Frantisek Sumsal [Wed, 2 Nov 2022 10:48:23 +0000 (11:48 +0100)]
man: use the correct 'Markers' property name for marking units
Follow-up to
c9615f7352 and
70666e28a1.
Yu Watanabe [Tue, 1 Nov 2022 22:06:46 +0000 (07:06 +0900)]
core: fix memleak in GetUnitFileLinks method
Yu Watanabe [Tue, 1 Nov 2022 23:24:38 +0000 (08:24 +0900)]
Merge pull request #25229 from mrc0mmand/extend-coverage
test: extend the sanity coverage a bit
Yu Watanabe [Tue, 1 Nov 2022 21:49:26 +0000 (06:49 +0900)]
test-network: wait for bound interface to be processed by udevd
If another bound interface (dummy98) will be removed before that dummy99
is processed by udevd, then removing dummy98 in the next step makes the
target interface (test1) bring down.
Follow-up for
3e2f7c46da528775f90c521e4cf22c2f61f82a81.
Luca Boccassi [Tue, 1 Nov 2022 21:55:23 +0000 (21:55 +0000)]
docs: DPS and BLS have moved to uapi-group.org
Jörg Thalheim [Thu, 27 Oct 2022 13:59:56 +0000 (15:59 +0200)]
update credentials when reloading a service
Many long-running services will reload configuration and therefore
credentials on reload. Therefore its useful if a service reload will
also update credentials.
Tested in https://github.com/numtide/systemd-vaultd/pull/12
Frantisek Sumsal [Tue, 1 Nov 2022 19:47:37 +0000 (20:47 +0100)]
test: add a couple of sanity tests for systemctl
Luca Boccassi [Tue, 1 Nov 2022 17:31:08 +0000 (18:31 +0100)]
Merge pull request #25192 from yuwata/wait-online-altname
wait-online: support alternative interface names
Frantisek Sumsal [Tue, 1 Nov 2022 16:53:42 +0000 (17:53 +0100)]
test: rename TEST-26-SETENV to TEST-26-SYSTEMCTL
Frantisek Sumsal [Tue, 1 Nov 2022 08:17:58 +0000 (09:17 +0100)]
test: add a couple of sanity tests for loginctl
Daan De Meyer [Thu, 27 Oct 2022 11:14:12 +0000 (13:14 +0200)]
namespace: Add hidepid/subset support check
Using fsopen()/fsconfig(), we can check if hidepid/subset are supported to
avoid the noisy logs from the kernel if they aren't supported. This works
on centos/redhat 8 as well since they've backported fsopen()/fsconfig().
Daan De Meyer [Thu, 27 Oct 2022 09:12:10 +0000 (11:12 +0200)]
condition: Check that subsystem is enabled in ConditionSecurity=tpm2
Instead of succeeding when either the firmware reports a TPM device
or we find a TPM device, let's check that the firmware reports a TPM
device and the TPM subsystem is enabled in the kernel.
To check whether the subsystem enabled, we check if the relevant
subdirectory in /sys exists at all.
Yu Watanabe [Mon, 31 Oct 2022 01:40:31 +0000 (10:40 +0900)]
test-network: explicitly prepare default.link
On CentOS CI (Arch), 99-default.link is masked. Let's explicitly provide
the same .link file with a different prefix number.
Yu Watanabe [Mon, 31 Oct 2022 05:00:29 +0000 (14:00 +0900)]
test-network: resolve interface name from alternative name
Yu Watanabe [Mon, 31 Oct 2022 03:13:15 +0000 (12:13 +0900)]
test-network: fix use of undeclared variable
Yu Watanabe [Mon, 31 Oct 2022 03:12:26 +0000 (12:12 +0900)]
test-network: make link_exists() support alternative names
Yu Watanabe [Tue, 1 Nov 2022 13:38:33 +0000 (22:38 +0900)]
network: update comment
Yu Watanabe [Mon, 31 Oct 2022 01:19:43 +0000 (10:19 +0900)]
wait-online: support alternative names
Yu Watanabe [Mon, 31 Oct 2022 01:25:50 +0000 (10:25 +0900)]
wait-online: check received interface name
dependabot[bot] [Tue, 1 Nov 2022 09:31:56 +0000 (09:31 +0000)]
build(deps): bump github/codeql-action from 2.1.17 to 2.1.29
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.17 to 2.1.29.
- [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/v2.1.17...
ec3cf9c605b848da5f1e41e8452719eb1ccfb9a6)
---
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>
dependabot[bot] [Tue, 1 Nov 2022 09:31:59 +0000 (09:31 +0000)]
build(deps): bump meson from 0.63.2 to 0.63.3 in /.github/workflows
Bumps [meson](https://github.com/mesonbuild/meson) from 0.63.2 to 0.63.3.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/0.63.2...0.63.3)
---
updated-dependencies:
- dependency-name: meson
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Yu Watanabe [Tue, 1 Nov 2022 04:36:52 +0000 (13:36 +0900)]
network: forcibly reconfigure all interfaces after sleep
Previously, interfaces are partially reconfigured in a spurious way.
Let's use the same way as `networkctl reconfigure`.
Hopefully fixes #14987 and #24997.
Yu Watanabe [Tue, 1 Nov 2022 05:32:26 +0000 (14:32 +0900)]
test-network: add a testcase that all bound interfaces removed
Closes #4202.
dependabot[bot] [Tue, 1 Nov 2022 09:31:44 +0000 (09:31 +0000)]
build(deps): bump systemd/mkosi
Bumps [systemd/mkosi](https://github.com/systemd/mkosi) from
792cbc60eb2dc4a58d66bb3c212bf92f8d50f6ea to 14. This release includes the previously tagged commit.
- [Release notes](https://github.com/systemd/mkosi/releases)
- [Changelog](https://github.com/systemd/mkosi/blob/main/NEWS.md)
- [Commits](https://github.com/systemd/mkosi/compare/
792cbc60eb2dc4a58d66bb3c212bf92f8d50f6ea...
c9772ec920f1cd03181ba14e6fe2c3d35ccb4f92)
---
updated-dependencies:
- dependency-name: systemd/mkosi
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] [Tue, 1 Nov 2022 09:31:50 +0000 (09:31 +0000)]
build(deps): bump ossf/scorecard-action from 2.0.4 to 2.0.6
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.0.4 to 2.0.6.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/
e363bfca00e752f91de7b7d2a77340e2e523cb18...
99c53751e09b9529366343771cc321ec74e9bd3d)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Jan Janssen [Tue, 1 Nov 2022 08:43:32 +0000 (09:43 +0100)]
coverage: Mark _coverage__exit as noreturn
../src/basic/coverage.h:15:48: warning: function '_coverage__exit' could
be declared with attribute 'noreturn' [-Wmissing-noreturn]
Youfu Zhang [Tue, 1 Nov 2022 05:18:25 +0000 (13:18 +0800)]
resolved: fix typo in feature level table
Yu Watanabe [Tue, 1 Nov 2022 07:23:09 +0000 (16:23 +0900)]
Merge pull request #25206 from p-fpv/main
hwdb: Add Lenovo G580
p-fpv [Mon, 31 Oct 2022 20:45:53 +0000 (23:45 +0300)]
hwdb: Add Lenovo G580
Fixes #23066.
Yu Watanabe [Tue, 1 Nov 2022 04:10:20 +0000 (13:10 +0900)]
parse_hwdb: allow negative value for EVDEV_ABS_ properties
Yu Watanabe [Mon, 31 Oct 2022 01:14:30 +0000 (10:14 +0900)]
wait-online: split out link_update_name()
No functional changes, just refactoring and preparation for later
commits.
Yu Watanabe [Mon, 31 Oct 2022 01:22:09 +0000 (10:22 +0900)]
wait-online: ignore one more error in callback function
Luca Boccassi [Mon, 31 Oct 2022 22:12:21 +0000 (23:12 +0100)]
Merge pull request #25207 from bluca/typo
Typo in manpage, missing +x
Luca Boccassi [Mon, 31 Oct 2022 21:18:53 +0000 (21:18 +0000)]
test: add +x to assert.sh
The script has a shebang and .sh extension, so make it executable
W: systemd-tests: script-not-executable [usr/lib/systemd/tests/testdata/units/assert.sh]
Luca Boccassi [Mon, 31 Oct 2022 21:17:47 +0000 (21:17 +0000)]
man: fix typo found by Lintian
Luca Boccassi [Mon, 31 Oct 2022 20:14:24 +0000 (21:14 +0100)]
Merge pull request #25143 from yuwata/network-reconfigure-interface-when-renamed
network: reconfigure interface when renamed
Yu Watanabe [Thu, 27 Oct 2022 21:40:07 +0000 (06:40 +0900)]
network: skip to reassign master ifindex if already set
Otherwise, the slave interface may go down, especially when the master
is bond.
Fixes #25067.
Zbigniew Jędrzejewski-Szmek [Thu, 27 Oct 2022 06:31:30 +0000 (08:31 +0200)]
meson: systemd-repart.standalone
Repart is growing into an important tool on its own, and users might
want to install newer versions on systems that have older systemd. Let's
make this easier by providing a standalone binary.
Related to https://github.com/systemd/mkosi/issues/1228.
Yu Watanabe [Tue, 25 Oct 2022 21:07:30 +0000 (06:07 +0900)]
udev: drop trivial wrapper for udev_watch_begin()
Marek Vasut [Tue, 25 Oct 2022 10:50:09 +0000 (12:50 +0200)]
udev: Handle AMBA bus the same way as generic platform bus
On various ARM systems, it is possible to find devices on AMBA bus.
This is defined in Linux kernel drivers/amba/bus.c as separate bus
type. Udev currently does not recognize this when building ID_PATH
which leads to ID_PATH containing the suffix from next recognized
parent device. On ST STM32MP15xx with SDIO WiFi, the ID_PATH looks
like 'platform-soc', which is not unique and basically useless. On
NXP i.MX8M Plus with SDIO WiFi, ID_PATH is 'platform-
30b40000.mmc'
which is far more useful.
Add the 'amba' subsystem handling the same way 'platform' subsystem
is handled to get ID_PATH 'platform-soc-amba-
48004000.sdmmc' on the
former, which is far more useful compared to 'platform-soc'.
---
```
$ udevadm info --attribute-walk --path=/devices/platform/soc/
48004000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1/net/wlan0
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/platform/soc/
48004000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1/net/wlan0':
KERNEL=="wlan0"
SUBSYSTEM=="net"
DRIVER==""
ATTR{addr_assign_type}=="0"
ATTR{addr_len}=="6"
ATTR{address}=="10:98:c3:5f:4b:80"
ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
ATTR{carrier_changes}=="1"
ATTR{carrier_down_count}=="1"
ATTR{carrier_up_count}=="0"
ATTR{dev_id}=="0x0"
ATTR{dev_port}=="0"
ATTR{flags}=="0x1002"
ATTR{gro_flush_timeout}=="0"
ATTR{ifalias}==""
ATTR{ifindex}=="3"
ATTR{iflink}=="3"
ATTR{link_mode}=="0"
ATTR{mtu}=="1500"
ATTR{napi_defer_hard_irqs}=="0"
ATTR{netdev_group}=="0"
ATTR{operstate}=="down"
ATTR{power/control}=="auto"
ATTR{power/runtime_active_time}=="0"
ATTR{power/runtime_status}=="unsupported"
ATTR{power/runtime_suspended_time}=="0"
ATTR{proto_down}=="0"
ATTR{queues/rx-0/rps_cpus}=="0"
ATTR{queues/rx-0/rps_flow_cnt}=="0"
ATTR{queues/tx-0/byte_queue_limits/hold_time}=="1000"
ATTR{queues/tx-0/byte_queue_limits/inflight}=="0"
ATTR{queues/tx-0/byte_queue_limits/limit}=="0"
ATTR{queues/tx-0/byte_queue_limits/limit_max}=="
1879048192"
ATTR{queues/tx-0/byte_queue_limits/limit_min}=="0"
ATTR{queues/tx-0/tx_maxrate}=="0"
ATTR{queues/tx-0/tx_timeout}=="0"
ATTR{queues/tx-0/xps_rxqs}=="0"
ATTR{statistics/collisions}=="0"
ATTR{statistics/multicast}=="0"
ATTR{statistics/rx_bytes}=="0"
ATTR{statistics/rx_compressed}=="0"
ATTR{statistics/rx_crc_errors}=="0"
ATTR{statistics/rx_dropped}=="0"
ATTR{statistics/rx_errors}=="0"
ATTR{statistics/rx_fifo_errors}=="0"
ATTR{statistics/rx_frame_errors}=="0"
ATTR{statistics/rx_length_errors}=="0"
ATTR{statistics/rx_missed_errors}=="0"
ATTR{statistics/rx_nohandler}=="0"
ATTR{statistics/rx_over_errors}=="0"
ATTR{statistics/rx_packets}=="0"
ATTR{statistics/tx_aborted_errors}=="0"
ATTR{statistics/tx_bytes}=="0"
ATTR{statistics/tx_carrier_errors}=="0"
ATTR{statistics/tx_compressed}=="0"
ATTR{statistics/tx_dropped}=="0"
ATTR{statistics/tx_errors}=="0"
ATTR{statistics/tx_fifo_errors}=="0"
ATTR{statistics/tx_heartbeat_errors}=="0"
ATTR{statistics/tx_packets}=="0"
ATTR{statistics/tx_window_errors}=="0"
ATTR{threaded}=="0"
ATTR{tx_queue_len}=="1000"
ATTR{type}=="1"
looking at parent device '/devices/platform/soc/
48004000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1':
KERNELS=="mmc1:0001:1"
SUBSYSTEMS=="sdio"
DRIVERS=="brcmfmac"
ATTRS{class}=="0x00"
ATTRS{coredump}=="(write-only)"
ATTRS{device}=="0xa9bf"
ATTRS{power/control}=="auto"
ATTRS{power/runtime_active_time}=="0"
ATTRS{power/runtime_status}=="unsupported"
ATTRS{power/runtime_suspended_time}=="0"
ATTRS{revision}=="0.0"
ATTRS{vendor}=="0x02d0"
looking at parent device '/devices/platform/soc/
48004000.mmc/mmc_host/mmc1/mmc1:0001':
KERNELS=="mmc1:0001"
SUBSYSTEMS=="mmc"
DRIVERS==""
ATTRS{device}=="0xa9bf"
ATTRS{ocr}=="0x00200000"
ATTRS{power/control}=="auto"
ATTRS{power/runtime_active_time}=="0"
ATTRS{power/runtime_status}=="unsupported"
ATTRS{power/runtime_suspended_time}=="0"
ATTRS{rca}=="0x0001"
ATTRS{revision}=="0.0"
ATTRS{type}=="SDIO"
ATTRS{vendor}=="0x02d0"
looking at parent device '/devices/platform/soc/
48004000.mmc/mmc_host/mmc1':
KERNELS=="mmc1"
SUBSYSTEMS=="mmc_host"
DRIVERS==""
ATTRS{power/control}=="auto"
ATTRS{power/runtime_active_time}=="0"
ATTRS{power/runtime_status}=="unsupported"
ATTRS{power/runtime_suspended_time}=="0"
looking at parent device '/devices/platform/soc/
48004000.mmc':
KERNELS=="
48004000.mmc"
SUBSYSTEMS=="amba" <------------------------------------------------------- AMBA is here
DRIVERS=="mmci-pl18x"
ATTRS{driver_override}=="(null)"
ATTRS{id}=="
00253180"
ATTRS{power/autosuspend_delay_ms}=="50"
ATTRS{power/control}=="on"
ATTRS{power/runtime_active_time}=="666709"
ATTRS{power/runtime_status}=="active"
ATTRS{power/runtime_suspended_time}=="0"
looking at parent device '/devices/platform/soc':
KERNELS=="soc"
SUBSYSTEMS=="platform"
DRIVERS=="simple-pm-bus"
ATTRS{driver_override}=="(null)"
ATTRS{power/control}=="auto"
ATTRS{power/runtime_active_time}=="0"
ATTRS{power/runtime_status}=="unsupported"
ATTRS{power/runtime_suspended_time}=="0"
looking at parent device '/devices/platform':
KERNELS=="platform"
SUBSYSTEMS==""
DRIVERS==""
ATTRS{power/control}=="auto"
ATTRS{power/runtime_active_time}=="0"
ATTRS{power/runtime_status}=="unsupported"
ATTRS{power/runtime_suspended_time}=="0"
```
Erik Moqvist [Mon, 31 Oct 2022 20:11:48 +0000 (21:11 +0100)]
sd-bus: convenience functions to emit a signal to a destination (#25123)
* sd-bus: convenience functions to emit a signal to a destination
Charles Hardin [Mon, 10 Oct 2022 20:30:10 +0000 (13:30 -0700)]
udev-builtin-net_id: support getting usb path off the host
To support predictable interface names in various embeeded systems
add support for an additional naming scheming using the USB host
interface. Several asics have usb controllers that are platform
devices and not children of a pci interface. These embedded systems
should be able to enumerate interfaces by udev path as well to support
configurations and policies.
Signed-off-by: Charles Hardin <charles.hardin@chargepoint.com>
Antonio Alvarez Feijoo [Thu, 20 Oct 2022 06:07:37 +0000 (08:07 +0200)]
dissect: add --list option
New option to print the paths of all the files and directories in the image to
stdout.
Luca Boccassi [Mon, 31 Oct 2022 20:10:39 +0000 (21:10 +0100)]
Merge pull request #25092 from fbuihuu/random-seed-tweaks
Random seed tweaks
Luca Boccassi [Mon, 31 Oct 2022 20:04:30 +0000 (21:04 +0100)]
Merge pull request #24958 from Werkov/meson-generated-directives
Generate dirrectives for fuzzer tests
Luca Boccassi [Mon, 31 Oct 2022 20:03:39 +0000 (21:03 +0100)]
Merge pull request #25134 from medhefgo/macro
macro: Small IN_SET improvements
Luca Boccassi [Mon, 31 Oct 2022 20:02:41 +0000 (21:02 +0100)]
Merge pull request #25136 from yuwata/udev-id-renaming
udev: cleanup for ID_RENAMING property
Luca Boccassi [Mon, 31 Oct 2022 20:01:57 +0000 (21:01 +0100)]
Merge pull request #25142 from yuwata/network-fix-race-in-device-renaming-vs-dhcp
network,dhcp: fix theoretical race in device renaming
Luca Boccassi [Mon, 31 Oct 2022 19:59:36 +0000 (20:59 +0100)]
Merge pull request #25166 from yuwata/network-router-preference
network: adjust route metric based on router preference
William Roberts [Tue, 25 Oct 2022 14:09:29 +0000 (09:09 -0500)]
docs/HACKING.md: clarify some portions
Clarify portions of HACKING.md so folks don't spend as much time as I
did on it.
Signed-off-by: William Roberts <william.c.roberts@intel.com>
Release o'Lantern [Mon, 31 Oct 2022 18:53:41 +0000 (18:53 +0000)]
Finalise 👻 SpOoOky 👻 NEWS for v252
Luca Boccassi [Mon, 31 Oct 2022 18:57:04 +0000 (18:57 +0000)]
Disable code freeze banner
Luca Boccassi [Mon, 31 Oct 2022 18:50:31 +0000 (19:50 +0100)]
Merge pull request #25202 from poettering/measure-phase-fix
measure: honour phases when signing
Luca Boccassi [Mon, 31 Oct 2022 15:53:10 +0000 (16:53 +0100)]
Merge pull request #25200 from bluca/news
Update NEWS, hwdb
Lennart Poettering [Mon, 31 Oct 2022 15:50:20 +0000 (16:50 +0100)]
measure: honour phases when signing
Lennart Poettering [Mon, 31 Oct 2022 15:50:13 +0000 (16:50 +0100)]
measure: banks and phases list are always non-empty
When parsing parameters, we populate these lists with defaults when
empty, hence we can rely that there's at least one bank and one phase
defined.
Lennart Poettering [Mon, 31 Oct 2022 11:22:37 +0000 (12:22 +0100)]
resolved: fix copypasta in resolved varlink API
As reported by @holtmann
Luca Boccassi [Mon, 31 Oct 2022 11:20:13 +0000 (11:20 +0000)]
Update hwdb
ninja -C build update-hwdb
Luca Boccassi [Mon, 31 Oct 2022 12:15:02 +0000 (12:15 +0000)]
Update NEWS with latest changes
Luca Boccassi [Mon, 31 Oct 2022 11:13:21 +0000 (11:13 +0000)]
NEWS: update contributors list
Luca Boccassi [Mon, 31 Oct 2022 11:54:24 +0000 (12:54 +0100)]
Merge pull request #25197 from weblate/weblate-systemd-master
Translations update from Fedora Weblate
Charles Lee [Mon, 31 Oct 2022 11:19:54 +0000 (12:19 +0100)]
po: Translated using Weblate (Chinese (Simplified) (zh_CN))
Currently translated at 100.0% (193 of 193 strings)
Co-authored-by: Charles Lee <lchopn@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/zh_CN/
Translation: systemd/main
Gogo Gogsi [Mon, 31 Oct 2022 11:19:54 +0000 (12:19 +0100)]
po: Translated using Weblate (Croatian)
Currently translated at 100.0% (193 of 193 strings)
Co-authored-by: Gogo Gogsi <linux.hr@protonmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/hr/
Translation: systemd/main
Lennart Poettering [Mon, 31 Oct 2022 11:13:26 +0000 (12:13 +0100)]
man: make clear NNP has no effect on processes invoked through systemd-run/at/crontab and such things
Lennart Poettering [Mon, 31 Oct 2022 11:13:15 +0000 (12:13 +0100)]
update TODO
Frantisek Sumsal [Mon, 31 Oct 2022 11:11:59 +0000 (12:11 +0100)]
test: add a couple of sanity tests for journalctl
Jan Janssen [Mon, 31 Oct 2022 08:52:56 +0000 (09:52 +0100)]
NEWS: Clarify overlapping UKI PE section offsets
Yu Watanabe [Mon, 31 Oct 2022 06:03:44 +0000 (15:03 +0900)]
Merge pull request #25193 from takaswie/topic/udev/builtin/hwdb/ieee1394/support-legacy-layout-of-configuration-rom
hwdb: ieee1394-unit-function: arrangement for legacy device
Takashi Sakamoto [Mon, 31 Oct 2022 03:48:31 +0000 (12:48 +0900)]
hwdb: ieee1394-unit-function: add comment about legacy AV/C devices
It appears that exceptional layout of legacy device requires extra care of
hwdb entry for node device since Linux FireWire subsystem do not pick up
numeric model identifier in vendor directory. In detail, see:
* https://github.com/systemd/systemd/issues/25029
In the case, udev rule without model attribute is used. Thus hwdb entry
for generic AV/C device should match both cases with and without the
attribute. The wildcard added by a commit
5e577da5f824 ("hwdb: drop model
specifier from general entries") satisfies this condition,
This commit adds comment about it.
Takashi Sakamoto [Mon, 31 Oct 2022 03:48:31 +0000 (12:48 +0900)]
hwdb: ieee1394-unit-function: fullfill for Sony DCR-TRV310
It appeared that Sony DCR-TRV310 has legacy layout of configuration ROM
against 1394 TA standard documentation.
* https://github.com/systemd/systemd/issues/25029
For the case, numeric model identifier and descriptor leaf for model name
are not picked up. This commit fulfill corresponding entry so that
applications can use model name from hardware database.
Yu Watanabe [Mon, 31 Oct 2022 01:39:11 +0000 (10:39 +0900)]
Merge pull request #25190 from mrc0mmand/reenable-test_macsec
test-network: re-enable test_macsec
Yu Watanabe [Thu, 27 Oct 2022 21:25:56 +0000 (06:25 +0900)]
test-network: add testcase for reconfiguring interface
Yu Watanabe [Wed, 26 Oct 2022 02:08:17 +0000 (11:08 +0900)]
network: try to reconfigure when some information is updated
When at least one of the name, MAC address, udev properties, and so on
for an interface is updated, try to find a matching .network file, and
reconfigure if a new .network file is assigned.
Fixes #24975.
Yu Watanabe [Wed, 26 Oct 2022 02:43:46 +0000 (11:43 +0900)]
network: simplify the logic of reading driver and permanent HW address
No functional changes, just refactoring and preparation for later
commits.
Note, `link->dev` should always exist when link state is initialized or
later.
Frantisek Sumsal [Sun, 30 Oct 2022 19:47:04 +0000 (20:47 +0100)]
test-network: suppress a couple of minor pylint complaints
Frantisek Sumsal [Sun, 30 Oct 2022 19:44:53 +0000 (20:44 +0100)]
test-network: sort standard imports before "third-party" ones
Frantisek Sumsal [Sun, 30 Oct 2022 19:43:35 +0000 (20:43 +0100)]
test-network: drop a couple of useless f-strings
Frantisek Sumsal [Sun, 30 Oct 2022 19:40:05 +0000 (20:40 +0100)]
test-network: use raw strings where appropriate
Frantisek Sumsal [Sun, 30 Oct 2022 19:27:55 +0000 (20:27 +0100)]
test-network: re-enable test_macsec
The outstanding kernel panic should be already fixed in recent enough
kernels by [0]. To make the test safe to run anywhere, let's implement
a simple kernel version check and run the test only if we're running
with at least kernel 6.x. The patch might be in some 5.x kernels as
well, but let's be on the safe side and use 6.x as a baseline here
(which is currently the case for Arch and Fedora Rawhide anyway).
[0] https://lore.kernel.org/netdev/
7b3fd03e1a46047e5ffe2a389fe74501f0a93206.
1656519221.git.sd@queasysnail.net/T/#u
Jan Janssen [Sun, 30 Oct 2022 08:28:44 +0000 (09:28 +0100)]
boot: Mark some functions as static
Yu Watanabe [Sun, 30 Oct 2022 00:43:05 +0000 (09:43 +0900)]
udev: always create device symlinks for USB disks
Previously, ata_id might not be able to retrieve attributes correctly,
and properties from usb_id were used as a fallback. See issue #24921
and PR #24923. To keep backward compatibility, still we need to create
symlinks based on USB serial.
Fixes #25179.
Yu Watanabe [Sat, 29 Oct 2022 21:59:31 +0000 (06:59 +0900)]
udev: fix for parsing MAC address
Fixes a bug introduced by
5bbcfbaa11a92732f9bbc8d5f77e9311e6ac3d56.
Fixes #25181.
Yu Watanabe [Sun, 30 Oct 2022 02:59:10 +0000 (11:59 +0900)]
test: support non-summer time
Follow-up for
759ed0a2533da8840dea315d07f92e6bb0272cdd.
Steve Ramage [Sat, 29 Oct 2022 21:07:21 +0000 (14:07 -0700)]
man: Add documentation for AssertCredential= (#25178)
Fixes #25177.
Co-authored-by: Steve Ramage <gitcommits@sjrx.net>
Jochen Sprickerhof [Sat, 29 Oct 2022 05:02:37 +0000 (07:02 +0200)]
Remove duplicated word
David Seifert [Fri, 28 Oct 2022 21:55:07 +0000 (23:55 +0200)]
test: remove brittle iszero_safe() test
The test relies on finite -> infinite conversion happening
when increasing DBL_MAX.
Fixes #25044.
Nick Rosbrook [Fri, 28 Oct 2022 15:01:15 +0000 (11:01 -0400)]
man: document reboot --poweroff exception
When reboot is invoked, the -p/--poweroff option is intentionally
ignored. Update the man page to reflect this exception.
Luca Boccassi [Fri, 28 Oct 2022 17:08:58 +0000 (18:08 +0100)]
tmpfiles: downgrade missing creds/source path log to debug
When installing systemd 252 in debian:
Setting up systemd (252~rc3-2) ...
Installing new version of config file /etc/systemd/logind.conf ...
Installing new version of config file /etc/systemd/system.conf ...
Installing new version of config file /etc/systemd/user.conf ...
/usr/lib/tmpfiles.d/provision.conf:13: Credential 'login.motd' not specified, skipping line.
/usr/lib/tmpfiles.d/provision.conf:14: Credential 'login.issue' not specified, skipping line.
/usr/lib/tmpfiles.d/provision.conf:17: Credential 'network.hosts' not specified, skipping line.
/usr/lib/tmpfiles.d/provision.conf:22: Credential 'ssh.authorized_keys.root' not specified, skipping line.
/usr/lib/tmpfiles.d/systemd.conf:43: Copy source path '/.extra/tpm2-pcr-signature.json' does not exist, skipping line.
/usr/lib/tmpfiles.d/systemd.conf:44: Copy source path '/.extra/tpm2-pcr-public-key.pem' does not exist, skipping line.
Downgrade to debug level
Yu Watanabe [Tue, 25 Oct 2022 15:12:14 +0000 (00:12 +0900)]
install: process all Wants= symlinks even if some of them fail
Follow-up for
94e7298d309fef7710174def820e9d38e512a086.
Fixes CID#
1499992.
Yu Watanabe [Thu, 27 Oct 2022 19:48:31 +0000 (04:48 +0900)]
test-network: rewrite wait-online address family tests
Fixes #25154.
Luca Boccassi [Fri, 28 Oct 2022 09:23:26 +0000 (11:23 +0200)]
Merge pull request #25164 from yuwata/network-route-table-0
network: fix handling of route table 0
Yu Watanabe [Fri, 28 Oct 2022 05:44:35 +0000 (14:44 +0900)]
network: drop duplicated period in log message
Yu Watanabe [Fri, 28 Oct 2022 05:38:23 +0000 (14:38 +0900)]
test-network: add testcase for router preference
Yu Watanabe [Fri, 28 Oct 2022 03:55:59 +0000 (12:55 +0900)]
network: adjust route priority based on preference
Even if different preference is specified, the kernel merges multiple
routes with the same preference. This is problematic when a network has
multiple routers.
Fixes #25138.
Yu Watanabe [Fri, 28 Oct 2022 02:28:10 +0000 (11:28 +0900)]
test-network: show only IPv4 routes
Yu Watanabe [Fri, 28 Oct 2022 02:06:27 +0000 (11:06 +0900)]
network: make RouteTable= also accept route table name
Yu Watanabe [Fri, 28 Oct 2022 02:33:19 +0000 (11:33 +0900)]
network: allow 0 for table number
Fixes #25089.
Yu Watanabe [Fri, 28 Oct 2022 02:03:52 +0000 (11:03 +0900)]
network: Table= also accepts table name
Yu Watanabe [Thu, 27 Oct 2022 23:27:39 +0000 (08:27 +0900)]
Merge pull request #25163 from weblate/weblate-systemd-master
Translations update from Fedora Weblate