]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
2 years agoefi: don't pull kernel cmdline from SMBIOS in a confidential VM 28301/head
Daniel P. Berrangé [Fri, 7 Jul 2023 15:30:20 +0000 (16:30 +0100)] 
efi: don't pull kernel cmdline from SMBIOS in a confidential VM

In a confidential VM, the SMBIOS data is not trusted, as it is under the
control of the host OS/admin and not covered by attestation of the machine.

Fixes: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agoefi: add helper API for detecting confidential virtualization
Daniel P. Berrangé [Fri, 7 Jul 2023 15:28:19 +0000 (16:28 +0100)] 
efi: add helper API for detecting confidential virtualization

This helper is a simplified version of detect_confidential_virtualization()
that merely returns a boolean status flag reflecting whether we are believed
to be running inside a confidential VM.

This flag can be used for turning off features that are inappropriate to
use from a CVM, but must not be used for releasing sensitive data. The
latter must only be done in response to an attestation for the environment.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agofundamental: share constants for confidential virt detection
Daniel P. Berrangé [Thu, 13 Jul 2023 13:02:33 +0000 (14:02 +0100)] 
fundamental: share constants for confidential virt detection

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agodissect: add new verbs to brief version of cmline in --help
Lennart Poettering [Fri, 7 Jul 2023 14:00:31 +0000 (16:00 +0200)] 
dissect: add new verbs to brief version of cmline in --help

2 years agoMerge pull request #28287 from yuwata/network-null-address
Yu Watanabe [Fri, 7 Jul 2023 16:13:17 +0000 (01:13 +0900)] 
Merge pull request #28287 from yuwata/network-null-address

network: fix null address handling

2 years agoMerge pull request #28296 from bluca/shell_compl
Yu Watanabe [Fri, 7 Jul 2023 16:11:41 +0000 (01:11 +0900)] 
Merge pull request #28296 from bluca/shell_compl

Add new verbs to bash shell completions

2 years agoshell-completion: add show-cache to bash 28296/head
Luca Boccassi [Fri, 7 Jul 2023 12:41:15 +0000 (13:41 +0100)] 
shell-completion: add show-cache to bash

2 years agoshell-completion: add whoami to bash
Luca Boccassi [Fri, 7 Jul 2023 12:40:12 +0000 (13:40 +0100)] 
shell-completion: add whoami to bash

2 years agoshell-completion: add soft-reboot to bash
Luca Boccassi [Fri, 7 Jul 2023 12:39:21 +0000 (13:39 +0100)] 
shell-completion: add soft-reboot to bash

2 years agoMerge pull request #28295 from eworm-de/zsh-soft-reboot
Luca Boccassi [Fri, 7 Jul 2023 12:37:35 +0000 (13:37 +0100)] 
Merge pull request #28295 from eworm-de/zsh-soft-reboot

shell-completion/zsh: misc verbs

2 years agoshell-completion/zsh/resolvectl: add show-cache 28295/head
Christian Hesse [Fri, 7 Jul 2023 12:05:11 +0000 (14:05 +0200)] 
shell-completion/zsh/resolvectl: add show-cache

Make zsh shell-completion aware of show-cache.

2 years agoshell-completion/zsh/systemctl: add whoami
Christian Hesse [Fri, 7 Jul 2023 12:02:41 +0000 (14:02 +0200)] 
shell-completion/zsh/systemctl: add whoami

Make zsh shell-completion aware of whoami.

2 years agoshell-completion/zsh/systemctl: add soft-reboot
Christian Hesse [Fri, 7 Jul 2023 11:49:11 +0000 (13:49 +0200)] 
shell-completion/zsh/systemctl: add soft-reboot

Make zsh shell-completion aware of soft-reboot.

2 years agomeson: allow to fallback to use libxcrypt.pc or glibc's libcrypt
Yu Watanabe [Fri, 7 Jul 2023 09:49:04 +0000 (18:49 +0900)] 
meson: allow to fallback to use libxcrypt.pc or glibc's libcrypt

Some distributions still use glibc's libcrypt. In that case, libcrypt.pc
does not exist and dependency() will fail.
Also, even if libxcrypt is used, there may not be a symlink
from libcrypt.pc to libxcrypt.pc. So, let's add a secondary name.

Follow-up for d625f717db6e151fd78742593c35eaba4cd2841d.

Fixes #28289.

2 years agotest: remove +x from some units
Luca Boccassi [Fri, 7 Jul 2023 09:51:18 +0000 (10:51 +0100)] 
test: remove +x from some units

2 years agotypo: dont -> don't
Luca Boccassi [Fri, 7 Jul 2023 09:47:01 +0000 (10:47 +0100)] 
typo: dont -> don't

2 years agotest: add +x to generator-utils.sh
Luca Boccassi [Fri, 7 Jul 2023 09:42:18 +0000 (10:42 +0100)] 
test: add +x to generator-utils.sh

It is marked and named as a script, so add +x otherwise Lintian complains:

 W: systemd-tests: script-not-executable [usr/lib/systemd/tests/testdata/units/generator-utils.sh]

2 years agoREADME: mention that meson 0.60 is now required
Luca Boccassi [Fri, 7 Jul 2023 10:44:54 +0000 (11:44 +0100)] 
README: mention that meson 0.60 is now required

2 years agoNEWS: mention that meson 0.60 is now required
Luca Boccassi [Fri, 7 Jul 2023 10:44:31 +0000 (11:44 +0100)] 
NEWS: mention that meson 0.60 is now required

2 years agoNEWS: mention that gnu-efi is no longer required
Luca Boccassi [Fri, 7 Jul 2023 10:42:46 +0000 (11:42 +0100)] 
NEWS: mention that gnu-efi is no longer required

2 years agotest-network: add tests for null addresses 28287/head
Yu Watanabe [Fri, 7 Jul 2023 01:23:48 +0000 (10:23 +0900)] 
test-network: add tests for null addresses

For issue #26113.

2 years agonetwork: make address_get() work for null address
Yu Watanabe [Fri, 7 Jul 2023 02:24:03 +0000 (11:24 +0900)] 
network: make address_get() work for null address

When a static null address is requested, e.g. Address=0.0.0.0/24,
then the corresponding Address object owned by Network object has
null address, and previously it did not match any addresses already
assigne to the interface.

Let's search matching Address object when originally it is requested as
the null address.

Then, the address configured with requested as a null address will be
kept on reconfigure.

Fixes #26113.

2 years agonetwork: always copy input address for link_request_address()
Yu Watanabe [Fri, 7 Jul 2023 02:20:49 +0000 (11:20 +0900)] 
network: always copy input address for link_request_address()

Then, the code becomes much simpler.
This also adds several missing log messages.

No functional change, just refactoring.

2 years agonetwork: also use address_kernel_{hash,compare}_func() for managing address requests
Yu Watanabe [Fri, 7 Jul 2023 04:18:15 +0000 (13:18 +0900)] 
network: also use address_kernel_{hash,compare}_func() for managing address requests

Request may refer Address object owned by Link, but its broadcast
address or label may be updated by address_equalify(), hence these
fields cannot be used in the hash and compare functions.

2 years agonetwork: log broadcast address and address label
Yu Watanabe [Fri, 7 Jul 2023 06:35:53 +0000 (15:35 +0900)] 
network: log broadcast address and address label

2 years agonetwork: ignore Broadcast= setting when the address is null
Yu Watanabe [Fri, 7 Jul 2023 02:31:25 +0000 (11:31 +0900)] 
network: ignore Broadcast= setting when the address is null

When an address is requested with null address, then broadcast should be
determined after an address aquired that will be assigned to the
interface.

2 years agonetwork: split-out address_section_adjust_broadcast()
Yu Watanabe [Fri, 7 Jul 2023 02:30:27 +0000 (11:30 +0900)] 
network: split-out address_section_adjust_broadcast()

No functional change, just refactoring.

2 years agoman/systemd.unit: document restart behavior on Upholds=
Christian Hesse [Fri, 7 Jul 2023 08:20:10 +0000 (10:20 +0200)] 
man/systemd.unit: document restart behavior on Upholds=

Behavior on constantly failing (or oneshot) unit was unclear. Let's
document it here.

2 years agofstab-generator: unify initrd-root-device.target dependency handling code
Lily Foster [Thu, 6 Jul 2023 20:13:53 +0000 (16:13 -0400)] 
fstab-generator: unify initrd-root-device.target dependency handling code

This fixes a bug from #26038 where it would actually write generator
stuff during sysroot check when it was only supposed to check for daemon
reload.

2 years agoMerge pull request #28233 from mrc0mmand/append-to-corrupted-journals
Yu Watanabe [Fri, 7 Jul 2023 02:51:02 +0000 (11:51 +0900)] 
Merge pull request #28233 from mrc0mmand/append-to-corrupted-journals

test: append to corrupted journals

2 years agoMerge pull request #28286 from yuwata/network-dhcp4-classless-static-routes
Yu Watanabe [Fri, 7 Jul 2023 01:12:06 +0000 (10:12 +0900)] 
Merge pull request #28286 from yuwata/network-dhcp4-classless-static-routes

network,dhcp4: do not ignore gateway in classless static routes option

2 years agonetwork,ndisc: use ndisc_captive_portal_free() at one more place
Yu Watanabe [Thu, 6 Jul 2023 21:18:36 +0000 (06:18 +0900)] 
network,ndisc: use ndisc_captive_portal_free() at one more place

Fixes another memleak introduced by 64de00c49fde341d09b817164fe8cc8f7da46268.
Fixes #28283.

2 years agotest-network: add one more testcase for DHCPv4 classless route 28286/head
Yu Watanabe [Thu, 6 Jul 2023 21:57:04 +0000 (06:57 +0900)] 
test-network: add one more testcase for DHCPv4 classless route

For issue #28280.

2 years agonetwork/dhcp4: do not ignore the gateway even if the destination is in the same network
Yu Watanabe [Thu, 6 Jul 2023 21:31:04 +0000 (06:31 +0900)] 
network/dhcp4: do not ignore the gateway even if the destination is in the same network

Fixes #28280.

2 years agotest: append to corrupted journals 28233/head
Frantisek Sumsal [Sat, 13 May 2023 15:39:35 +0000 (17:39 +0200)] 
test: append to corrupted journals

Introduce a manual test tool that creates a journal, corrupts it by
flipping bits at given offsets, and then attempts to write to the journal.
In ideal case we should handle this gracefully without any crash or
memory corruption.

2 years agopo: Update translation files
Weblate [Thu, 6 Jul 2023 19:57:22 +0000 (21:57 +0200)] 
po: Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/
Translation: systemd/main

2 years agoNEWS: finalize for 254-rc1 v254-rc1
Luca Boccassi [Thu, 6 Jul 2023 19:53:04 +0000 (20:53 +0100)] 
NEWS: finalize for 254-rc1

2 years agomeson: bump versions for v254-rc1
Luca Boccassi [Thu, 6 Jul 2023 19:44:22 +0000 (20:44 +0100)] 
meson: bump versions for v254-rc1

2 years agoUpdate translation files
Luca Boccassi [Thu, 6 Jul 2023 19:49:08 +0000 (20:49 +0100)] 
Update translation files

2 years agoNEWS: update contributors list
Luca Boccassi [Thu, 6 Jul 2023 19:38:52 +0000 (20:38 +0100)] 
NEWS: update contributors list

2 years agoUpdate NEWS for latest changes
Luca Boccassi [Thu, 6 Jul 2023 14:42:29 +0000 (15:42 +0100)] 
Update NEWS for latest changes

2 years agoNEWS: rearrange deprecation notices from more imminent to less imminent
Luca Boccassi [Thu, 6 Jul 2023 13:45:59 +0000 (14:45 +0100)] 
NEWS: rearrange deprecation notices from more imminent to less imminent

2 years agoMerge pull request #27584 from rphibel/add-restartquick-option
Luca Boccassi [Thu, 6 Jul 2023 19:37:31 +0000 (20:37 +0100)] 
Merge pull request #27584 from rphibel/add-restartquick-option

service: add new RestartMode option

2 years agoMerge pull request #20425 from Blarse/passwdqc-pr
Luca Boccassi [Thu, 6 Jul 2023 19:36:04 +0000 (20:36 +0100)] 
Merge pull request #20425 from Blarse/passwdqc-pr

Add passwdqc support

2 years agonetwork,ndisc: use correct free function for captive portal
Yu Watanabe [Thu, 6 Jul 2023 12:04:47 +0000 (21:04 +0900)] 
network,ndisc: use correct free function for captive portal

Fixes memleak introduced by 64de00c49fde341d09b817164fe8cc8f7da46268.
Fixes #28277.

2 years agoMerge pull request #28242 from berrange/cond-sec-cvm
Luca Boccassi [Thu, 6 Jul 2023 18:14:26 +0000 (19:14 +0100)] 
Merge pull request #28242 from berrange/cond-sec-cvm

Detect and expose the confidential virtualization technology in various places

2 years agoMerge pull request #28274 from DaanDeMeyer/dissect-root
Luca Boccassi [Thu, 6 Jul 2023 13:41:48 +0000 (14:41 +0100)] 
Merge pull request #28274 from DaanDeMeyer/dissect-root

dissect: Allow a few verbs to operate on directories as well as image files

2 years agoservice: fix for RestartMode=direct option 27584/head
Richard Phibel [Thu, 6 Jul 2023 12:03:35 +0000 (14:03 +0200)] 
service: fix for RestartMode=direct option

With the fix done in PR28215, the unit restart job is created with type JOB_START.
Because of that, it is not properly merged anymore with the old one: the
merged job has state JOB_RUNNING. It should have state JOB_WAITING.

I think that the old job is not cleaned up because we don't go through the failed state.

With this fix, the merged job is properly created with state JOB_WAITING.

2 years agoservice: add new RestartMode option
Richard Phibel [Thu, 6 Jul 2023 12:33:52 +0000 (14:33 +0200)] 
service: add new RestartMode option

When this option is set to direct, the service restarts without entering a failed
state. Dependent units are not notified of transitory failure.

This is useful for the following use case:

We have a target with Requires=my-service, After=my-service.
my-service.service is a oneshot service and has Restart=on-failure in
its definition.

my-service.service can get stuck for various reasons and time out, in
which case it is restarted. Currently, when it fails the first time, the
target fails, even though my-service is restarted.

The behavior we're looking for is that until my-service is not restarted
anymore, the target stays pending waiting for my-service.service to
start successfully or fail without being restarted anymore.

2 years agoudev: add 'conf-virt' constant for confidential virtualization tech 28242/head
Daniel P. Berrangé [Mon, 3 Jul 2023 09:24:30 +0000 (10:24 +0100)] 
udev: add 'conf-virt' constant for confidential virtualization tech

Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agocore: set SYSTEMD_CONFIDENTIAL_VIRTUALIZATION env for generators
Daniel P. Berrangé [Mon, 3 Jul 2023 09:21:07 +0000 (10:21 +0100)] 
core: set SYSTEMD_CONFIDENTIAL_VIRTUALIZATION env for generators

This reports the confidential virtualization type that was detected

Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agocore: log detected confidential virtualization type
Daniel P. Berrangé [Mon, 3 Jul 2023 09:20:47 +0000 (10:20 +0100)] 
core: log detected confidential virtualization type

Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agodbus: add 'ConfidentialVirtualization' property to manager object
Daniel P. Berrangé [Mon, 3 Jul 2023 08:53:43 +0000 (09:53 +0100)] 
dbus: add 'ConfidentialVirtualization' property to manager object

This property reports whether the system is running inside a confidential
virtual machine.

Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agounit: add "cvm" option for ConditionSecurity
Daniel P. Berrangé [Fri, 30 Jun 2023 18:01:17 +0000 (19:01 +0100)] 
unit: add "cvm" option for ConditionSecurity

The "cvm" flag indicates whether the OS is running inside a confidential
virtual machine.

Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agodetect-virt: add --list-cvm option
Daniel P. Berrangé [Fri, 30 Jun 2023 18:07:29 +0000 (19:07 +0100)] 
detect-virt: add --list-cvm option

The --list-cvm option reports the known types of confidential virtualization
technology that can be detected.

Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agodetect-virt: add --cvm option
Daniel P. Berrangé [Fri, 30 Jun 2023 18:07:29 +0000 (19:07 +0100)] 
detect-virt: add --cvm option

The --cvm option detects whether the OS is running inside a confidential
virtual machine.

Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agoadd APIs for detecting confidential virtualization
Daniel P. Berrangé [Fri, 9 Jun 2023 14:37:18 +0000 (15:37 +0100)] 
add APIs for detecting confidential virtualization

This code uses various CPUID checks to be able to identify

 * AMD SEV
 * AMD SEV-ES
 * AMD SEV-SNP
 * Intel TDX

On HyperV/Azure, it has special checks for detecting SEV-SNP
since the normal CPUID is blocked.

Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agoshared: add libpasswdqc support 20425/head
Egor Ignatov [Fri, 6 Aug 2021 08:41:01 +0000 (11:41 +0300)] 
shared: add libpasswdqc support

Co-authored-by: Dmitry V. Levin <ldv@altlinux.org>
Resolves: #15055

2 years agotreewide: fix "an" before consonant U sounds
Joerg Behrmann [Thu, 6 Jul 2023 09:54:02 +0000 (11:54 +0200)] 
treewide: fix "an" before consonant U sounds

The article "a" goes before consonant sounds and "an" goes before vowel
sounds. This commit changes an to a for UKI, UDP, UTF-8, URL, UUID, U-Label, UI
and USB, since they start with the sound /ˌjuː/.

2 years agoshared: add password quality check abstraction layer to support both pwquality and...
Egor Ignatov [Fri, 6 Aug 2021 08:40:34 +0000 (11:40 +0300)] 
shared: add password quality check abstraction layer to support both pwquality and passwdqc

Co-authored-by: Dmitry V. Levin <ldv@altlinux.org>
2 years agohomed: change user_record_quality_check_password to use quality_check_password
Dmitry V. Levin [Thu, 6 Jul 2023 08:00:00 +0000 (08:00 +0000)] 
homed: change user_record_quality_check_password to use quality_check_password

With this change, the only direct users of libpwquality functions
are those defined in pwquality-util.

2 years agopwquality: add old password argument to quality_check_password
Dmitry V. Levin [Thu, 6 Jul 2023 08:00:00 +0000 (08:00 +0000)] 
pwquality: add old password argument to quality_check_password

This would allow to use quality_check_password() in
user_record_quality_check_password() which still uses
sym_pwquality_check() directly.

2 years agopwquality: do not log password suggestions
Dmitry V. Levin [Wed, 5 Jul 2023 18:00:00 +0000 (18:00 +0000)] 
pwquality: do not log password suggestions

As logging password suggestions might leak sensitive information,
print it instead.

Suggested-by: Yu Watanabe <watanabe.yu+github@gmail.com>
2 years agopwquality: fix quality_check_password return value
Dmitry V. Levin [Wed, 5 Jul 2023 08:00:00 +0000 (08:00 +0000)] 
pwquality: fix quality_check_password return value

quality_check_password() used to return the same value 0 in two
different cases: when pwq_allocate_context() failed with a
ERRNO_IS_NOT_SUPPORTED() code, and when pwquality_check() rejected the
password.  As result, users of quality_check_password() used to report
password weakness also in case when the underlying library was not
available.

Fix this by changing quality_check_password() to forward the
ERRNO_IS_NOT_SUPPORTED() code to its callers, and change the callers
to handle this case gracefully.

2 years agopwquality: fix use of ERRNO_IS_NOT_SUPPORTED
Dmitry V. Levin [Wed, 5 Jul 2023 08:00:00 +0000 (08:00 +0000)] 
pwquality: fix use of ERRNO_IS_NOT_SUPPORTED

Given that ERRNO_IS_*() also match positive values, call
ERRNO_IS_NOT_SUPPORTED() only if the value returned by
pwq_allocate_context() is negative.

2 years agoHwdb: Add Sanwa Direct 400-MA128 external trackpad (#28272)
Andrew Baxter [Thu, 6 Jul 2023 10:42:33 +0000 (19:42 +0900)] 
Hwdb: Add Sanwa Direct 400-MA128 external trackpad (#28272)

* Hwdb: Add Sanwa Direct 400-MA128 external trackpad

```
$ udevadm info /dev/input/by-path/pci-0000:28:00.3-usb-0:1.4.4.1:1.1-event-mouse
P: /devices/pci0000:00/0000:00:07.1/0000:28:00.3/usb5/5-1/5-1.4/5-1.4.4/5-1.4.4.1/5-1.4.4.1:1.1/0003:258A:0501.0097/input/input256/event15
M: event15
R: 15
U: input
D: c 13:79
N: input/event15
L: 0
S: input/by-id/usb-SINO_WEALTH_USB_TOUCHPAD-if01-event-mouse
S: input/by-path/pci-0000:28:00.3-usb-0:1.4.4.1:1.1-event-mouse
E: DEVPATH=/devices/pci0000:00/0000:00:07.1/0000:28:00.3/usb5/5-1/5-1.4/5-1.4.4/5-1.4.4.1/5-1.4.4.1:1.1/0003:258A:0501.0097/input/input256/event15
E: DEVNAME=/dev/input/event15
E: MAJOR=13
E: MINOR=79
E: SUBSYSTEM=input
E: USEC_INITIALIZED=3436890430330
E: ID_INPUT=1
E: ID_INPUT_TOUCHPAD=1
E: ID_INPUT_WIDTH_MM=106
E: ID_INPUT_HEIGHT_MM=77
E: ID_BUS=usb
E: ID_MODEL=USB_TOUCHPAD
E: ID_MODEL_ENC=USB\x20TOUCHPAD
E: ID_MODEL_ID=0501
E: ID_SERIAL=SINO_WEALTH_USB_TOUCHPAD
E: ID_VENDOR=SINO_WEALTH
E: ID_VENDOR_ENC=SINO\x20WEALTH
E: ID_VENDOR_ID=258a
E: ID_REVISION=0521
E: ID_TYPE=hid
E: ID_USB_MODEL=USB_TOUCHPAD
E: ID_USB_MODEL_ENC=USB\x20TOUCHPAD
E: ID_USB_MODEL_ID=0501
E: ID_USB_SERIAL=SINO_WEALTH_USB_TOUCHPAD
E: ID_USB_VENDOR=SINO_WEALTH
E: ID_USB_VENDOR_ENC=SINO\x20WEALTH
E: ID_USB_VENDOR_ID=258a
E: ID_USB_REVISION=0521
E: ID_USB_TYPE=hid
E: ID_USB_INTERFACES=:030101:030000:
E: ID_USB_INTERFACE_NUM=01
E: ID_USB_DRIVER=usbhid
E: ID_PATH=pci-0000:28:00.3-usb-0:1.4.4.1:1.1
E: ID_PATH_TAG=pci-0000_28_00_3-usb-0_1_4_4_1_1_1
E: ID_INPUT_TOUCHPAD_INTEGRATION=internal
E: LIBINPUT_DEVICE_GROUP=3/258a/501:usb-0000:28:00.3-1.4.4
E: DEVLINKS=/dev/input/by-id/usb-SINO_WEALTH_USB_TOUCHPAD-if01-event-mouse /dev/input/by-path/pci-0000:28:00.3-usb-0:1.4.4.1:1.1-event-mouse
```
Link to product: https://www.amazon.co.jp/gp/product/B07Z5HCMFP

2 years agohwdb: add support for Archos 101 Cesium to 60-sensor.hwdb (#28270)
Thomas Genty [Thu, 6 Jul 2023 10:39:28 +0000 (12:39 +0200)] 
hwdb: add support for Archos 101 Cesium to 60-sensor.hwdb (#28270)

Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com>
2 years agodissect: Add --mtree-hash= option 28274/head
Daan De Meyer [Thu, 6 Jul 2023 09:24:22 +0000 (11:24 +0200)] 
dissect: Add --mtree-hash= option

Let's make including hashes in the mtree output configurable to allow
speeding up the --mtree command in cases where file hashes are not
required.

2 years agodissect: Allow a few verbs to operate on directories as well as image files
Daan De Meyer [Thu, 6 Jul 2023 08:58:44 +0000 (10:58 +0200)] 
dissect: Allow a few verbs to operate on directories as well as image files

--copy-to, --copy-from, --list and --mtree are useful for image directories
as well as image files, so for those verbs, let's check if we were passed
a directory and skip all the image file setup if that's the case.

2 years agotpm2-util: remove unnecessary semicolon
Antonio Alvarez Feijoo [Thu, 6 Jul 2023 08:54:32 +0000 (10:54 +0200)] 
tpm2-util: remove unnecessary semicolon

2 years agonetwork/json: introduce PreferredLifetimeUSec and ValidLifetimeUSec
Yu Watanabe [Thu, 6 Jul 2023 04:26:03 +0000 (13:26 +0900)] 
network/json: introduce PreferredLifetimeUSec and ValidLifetimeUSec

2 years agoMerge pull request #28265 from yuwata/network-captive-portal-follow-ups
Lennart Poettering [Thu, 6 Jul 2023 09:39:24 +0000 (11:39 +0200)] 
Merge pull request #28265 from yuwata/network-captive-portal-follow-ups

network: several follow-ups for captive portal support

2 years agoservice: explicitly cast float to usec_t
Lennart Poettering [Thu, 6 Jul 2023 09:21:32 +0000 (11:21 +0200)] 
service: explicitly cast float to usec_t

Let's cast these floats explicitly to usec_t, since implicit
float-to-integer casts are dangerous business, and we should underline
that there's a cast happening here.

2 years agocore/service: make restart delay increase more smoothly
Yu Watanabe [Thu, 6 Jul 2023 03:48:49 +0000 (12:48 +0900)] 
core/service: make restart delay increase more smoothly

Suggested in https://github.com/systemd/systemd/pull/26902#issuecomment-1620400583.

2 years agoNEWS: more preparation for 254-rc1
Lennart Poettering [Thu, 6 Jul 2023 09:16:16 +0000 (11:16 +0200)] 
NEWS: more preparation for 254-rc1

2 years agoMerge pull request #27713 from ddstreet/tpm2_replace_make_primary
Lennart Poettering [Thu, 6 Jul 2023 08:22:12 +0000 (10:22 +0200)] 
Merge pull request #27713 from ddstreet/tpm2_replace_make_primary

Tpm2 replace make primary

2 years agoMerge pull request #28243 from bluca/sbat_initrd
Lennart Poettering [Thu, 6 Jul 2023 08:21:44 +0000 (10:21 +0200)] 
Merge pull request #28243 from bluca/sbat_initrd

ukify: enable --sbat for UKIs too

2 years agonetworkctl: urlify captive portal entry 28265/head
Yu Watanabe [Thu, 6 Jul 2023 02:48:43 +0000 (11:48 +0900)] 
networkctl: urlify captive portal entry

2 years agotest-network: drop ExecReload= in networkd.service and udevd.service
Yu Watanabe [Thu, 6 Jul 2023 02:33:44 +0000 (11:33 +0900)] 
test-network: drop ExecReload= in networkd.service and udevd.service

Follow-up for 0e07cdb0e77d0322bc866b5e13abbe38e988059d and
f84331539deae28fbeb42d45ad0c8d583b3372a3.

2 years agonetwork/ndisc: downgrade log level
Yu Watanabe [Thu, 6 Jul 2023 02:22:21 +0000 (11:22 +0900)] 
network/ndisc: downgrade log level

The failures may be critical for per-link operation, but not critical
for the service.

2 years agonetwork: handle captive portal with multiple routers
Yu Watanabe [Thu, 6 Jul 2023 02:12:19 +0000 (11:12 +0900)] 
network: handle captive portal with multiple routers

Before this patch, if a network has multiple routers and one of them
provides a captive portal, then the portal was overwritten or cleared
when another RA from another router is received.

This makes captive portals managed in the similar way as DNS servers or
DNS domains. So now captive portal can safely handled even if a network
has multiple routers.

2 years agonetwork: update comment
Yu Watanabe [Thu, 6 Jul 2023 01:34:24 +0000 (10:34 +0900)] 
network: update comment

2 years agonetwork: introduce link_get_captive_portal()
Yu Watanabe [Thu, 6 Jul 2023 01:31:01 +0000 (10:31 +0900)] 
network: introduce link_get_captive_portal()

Then, downgrade log level of the message about mis-match of captive
portals in different protocols.

2 years agoMerge pull request #28262 from YHNdnzj/transaction-followup
Yu Watanabe [Thu, 6 Jul 2023 03:55:25 +0000 (12:55 +0900)] 
Merge pull request #28262 from YHNdnzj/transaction-followup

Follow-ups for PropagatesStopTo= fix

2 years agotpm2: remove tpm2_make_primary() 27713/head
Dan Streetman [Thu, 8 Jun 2023 10:55:45 +0000 (06:55 -0400)] 
tpm2: remove tpm2_make_primary()

Replace use of tpm2_make_primary() with tpm2_create_loaded()

2 years agotpm2: move local vars in tpm2_unseal() to point of use
Dan Streetman [Wed, 14 Jun 2023 16:09:35 +0000 (12:09 -0400)] 
tpm2: move local vars in tpm2_unseal() to point of use

No functional change; cosmetic only.

2 years agotpm2: add tpm2_get_or_create_srk()
Dan Streetman [Wed, 14 Jun 2023 19:49:33 +0000 (15:49 -0400)] 
tpm2: add tpm2_get_or_create_srk()

Add function to simplify getting the TPM SRK; if one exists, it is provided,
otherwise one is created and then the new SRK provided.

This also add tpm2_create_loaded() and updates tpm2_seal() to use the new
functions instead of tpm2_make_primary().

2 years agotpm2: add tpm2_persist_handle()
Dan Streetman [Mon, 2 Jan 2023 04:42:09 +0000 (23:42 -0500)] 
tpm2: add tpm2_persist_handle()

Add function to convert a transient handle in the TPM into a persistent handle
in the TPM.

2 years agotpm2: cache TPM algorithms
Dan Streetman [Wed, 14 Jun 2023 17:17:21 +0000 (13:17 -0400)] 
tpm2: cache TPM algorithms

Cache the supported algorithms when creating a new context.

2 years agotpm2: cache the TPM supported commands, add tpm2_supports_command()
Dan Streetman [Fri, 17 Feb 2023 17:59:18 +0000 (12:59 -0500)] 
tpm2: cache the TPM supported commands, add tpm2_supports_command()

Cache the TPM's supported commands and provide a function to check if a command
is supported.

2 years agobasic/alloc-util: add greedy_realloc_append()
Dan Streetman [Fri, 17 Feb 2023 17:59:18 +0000 (12:59 -0500)] 
basic/alloc-util: add greedy_realloc_append()

Add function to perform greedy realloc as well as copying the new data into the
newly allocated space.

2 years agotpm2: replace tpm2_capability_pcrs() macro with direct c->capaiblity_pcrs use
Dan Streetman [Thu, 8 Jun 2023 17:41:33 +0000 (13:41 -0400)] 
tpm2: replace tpm2_capability_pcrs() macro with direct c->capaiblity_pcrs use

2 years agotpm2: add tpm2_create()
Dan Streetman [Mon, 12 Dec 2022 14:46:04 +0000 (09:46 -0500)] 
tpm2: add tpm2_create()

This allows creating a new object (e.g. sealed secret) or key using the TPM.

Note that the new object/key is not loaded in the TPM after creation.

2 years agotpm2: replace magic number in hmac_sensitive initialization
Dan Streetman [Thu, 8 Jun 2023 18:06:46 +0000 (14:06 -0400)] 
tpm2: replace magic number in hmac_sensitive initialization

Instead of setting hmac_sensitive.sensitive.data.size to '32' use the actual
hash size as set in the hmac_template.

2 years agotpm2: move local vars in tpm2_seal() to point of use
Dan Streetman [Mon, 12 Dec 2022 14:46:04 +0000 (09:46 -0500)] 
tpm2: move local vars in tpm2_seal() to point of use

No functional change; cosmetic only.

2 years agotpm2: add tpm2_load_external()
Dan Streetman [Mon, 19 Dec 2022 13:26:32 +0000 (08:26 -0500)] 
tpm2: add tpm2_load_external()

This allows loading an external object/key (e.g. an openssl public key) into
the TPM.

2 years agotpm2: add tpm2_load()
Dan Streetman [Mon, 19 Dec 2022 13:26:32 +0000 (08:26 -0500)] 
tpm2: add tpm2_load()

This function allows loading an object (e.g. a sealed secret) or key into the
TPM.

2 years agoupdate syscall tables for upcoming v254
Lennart Poettering [Wed, 5 Jul 2023 21:16:48 +0000 (23:16 +0200)] 
update syscall tables for upcoming v254

2 years agoupdate hwdb autosuspend data for v254
Lennart Poettering [Wed, 5 Jul 2023 21:15:09 +0000 (23:15 +0200)] 
update hwdb autosuspend data for v254

2 years agomeson: run forgotten 'update-man-rules'
Lennart Poettering [Wed, 5 Jul 2023 21:14:22 +0000 (23:14 +0200)] 
meson: run forgotten 'update-man-rules'