]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
18 months agoci: update tests to showcase new option a bit 31790/head
Lennart Poettering [Thu, 18 Apr 2024 16:12:12 +0000 (18:12 +0200)] 
ci: update tests to showcase new option a bit

18 months agoupdate NEWS
Lennart Poettering [Wed, 17 Apr 2024 08:48:42 +0000 (10:48 +0200)] 
update NEWS

18 months agopcrlock: rework --recovery-pin= to take three different arguments
Lennart Poettering [Wed, 17 Apr 2024 17:04:29 +0000 (19:04 +0200)] 
pcrlock: rework --recovery-pin= to take three different arguments

This reworkds --recovery-pin= from a parameter that takes a boolean to
an enum supporting one of "hide", "show", "query".

If "hide" (default behaviour) we'll generate a recovery pin
automatically, but never show it, and thus just seal it and good.

If "show" we'll generate a recovery pin automatically, but display it in
the output, so the user can write it down.

If "query" we'll ask the user for a recovery pin, and not automatically
generate any.

For compatibility the old boolean behaviour is kept.

With this you can now do "systemd-pcrlock make-policy
--recovery-pin=show" to set up the first policy, write down the recovery
PIN. Later, if the PCR prediction didn't work out one day you can then
do "systemd-pcrlock make-policy --recovery-pin=query" and enter the
recovery key and write a new policy.

18 months agopcrlock: generate recovery PINs via make_recovery_key()
Lennart Poettering [Wed, 17 Apr 2024 17:02:18 +0000 (19:02 +0200)] 
pcrlock: generate recovery PINs via make_recovery_key()

We already have infrastructure for generating nice recovery keys, for
the usual cryptenroll recovery keys. Let's reuse them here, as they are
nicer to read and type than the base64 encoded randomness we so far
used.

Previously valid recovery keys remain valid, in their original format.
For future enrollments we'll however have nicer, easier recovery keys to
deal with.

18 months agotpm2-util: now that we don't use PolicyAuthValue anymore, let's not set an authValue...
Lennart Poettering [Wed, 17 Apr 2024 08:17:20 +0000 (10:17 +0200)] 
tpm2-util: now that we don't use PolicyAuthValue anymore, let's not set an authValue anymore for the policy nvindex

We have now switched from PolicyAuthValue to PolicySigned to control
access to the policy nvindex to. This means there's no point in setting
an authValue on the nvindex anymore, hence drop this.

18 months agopcrlock: switch access policy for nvindex to store policy in from PolicyAuthValue...
Lennart Poettering [Tue, 16 Apr 2024 11:46:58 +0000 (13:46 +0200)] 
pcrlock: switch access policy for nvindex to store policy in from PolicyAuthValue to PolicySigned (with an HMAC-SHA256 key)

So far the nvindex to store the pcrlock policy in was protected via a
PolicyAuthValue policy (i.e. with a simple PIN set on the nvindex).
That's a bad idea however, as it means an attacker can simply remove and
re-create the nvindex and the "name" of the nvindex does not change,
thus defeating the logic. (This is because the authValue is *not* part
of the "name" of an nvindex!).

Fix this by switching from PolicyAuthValue to PolicySigned with an
HMAC-SHA256 key. Behaviour is very similar: however, the PIN is now part
of of the access policy hash, which *is* part of the "name" of an
nvindex. Thus, if an attacker removes and recreates the nvindex it has
to provide the same PIN again or the "name" of the nvindex will change.
Mission accomplished.

I'd like to thank Chris Coulson for finding this issue (and helping me
address it). Thank you!

18 months agotpm2-util: add comment explaining what tpm2_define_policy_nv_index() actually does
Lennart Poettering [Wed, 17 Apr 2024 08:10:56 +0000 (10:10 +0200)] 
tpm2-util: add comment explaining what tpm2_define_policy_nv_index() actually does

18 months agotpm2-util: load external key into NULL hierarchy if private key is provided
Lennart Poettering [Tue, 16 Apr 2024 13:01:41 +0000 (15:01 +0200)] 
tpm2-util: load external key into NULL hierarchy if private key is provided

If we load an external key into the TPM we must do so in the NULL
hierarchy. An external key after all is one that is not wrapped by any
hierarchy's seed.

See TPM2 spec, Part 3, Section 12.3.1

18 months agotpm2-util: rename tpm2_get_pin_auth() → tpm2_auth_value_from_pin()
Lennart Poettering [Tue, 16 Apr 2024 11:52:30 +0000 (13:52 +0200)] 
tpm2-util: rename tpm2_get_pin_auth() → tpm2_auth_value_from_pin()

Just some renaming. I found the old name a bit confusing since it sounds
as if this would get the pin from somewhere, but it really doesn't. It
just converts a PIN into an auth_value, and I think saying so explicitly
makes things easier to grok.

18 months agotpm2: export tpm2_get_name()
Lennart Poettering [Tue, 16 Apr 2024 11:45:00 +0000 (13:45 +0200)] 
tpm2: export tpm2_get_name()

We later want to use this from pcrlock.c, hence export it.

18 months agotpm2-util: import two more symbols from tpm2-tss libraries
Lennart Poettering [Tue, 16 Apr 2024 11:43:07 +0000 (13:43 +0200)] 
tpm2-util: import two more symbols from tpm2-tss libraries

We want to make use of TPM_PolicySigned soon, hence import the necessary
symbols from tpm2-tss.

18 months agoman/systemd-stub: fix typo
Antonio Alvarez Feijoo [Thu, 18 Apr 2024 14:43:25 +0000 (16:43 +0200)] 
man/systemd-stub: fix typo

18 months agoMerge pull request #32328 from YHNdnzj/deserialize-objective
Luca Boccassi [Thu, 18 Apr 2024 15:07:32 +0000 (17:07 +0200)] 
Merge pull request #32328 from YHNdnzj/deserialize-objective

core: follow-ups for objective serialization

18 months agoMerge pull request #32330 from poettering/status-invocation
Lennart Poettering [Thu, 18 Apr 2024 13:47:20 +0000 (15:47 +0200)] 
Merge pull request #32330 from poettering/status-invocation

systemctl: show invocation ID in unit status output

18 months agoMerge pull request #32335 from DaanDeMeyer/fix
Daan De Meyer [Thu, 18 Apr 2024 13:02:51 +0000 (15:02 +0200)] 
Merge pull request #32335 from DaanDeMeyer/fix

mkosi: undefine FORTIFY_SOURCE instead of setting it zero

18 months agomkosi: undefine FORTIFY_SOURCE instead of setting it zero 32335/head
Daan De Meyer [Thu, 18 Apr 2024 12:27:38 +0000 (14:27 +0200)] 
mkosi: undefine FORTIFY_SOURCE instead of setting it zero

Newer gcc complains if FORTIFY_SOURCE=0 is set so just undefine it
instead.

18 months agocore/manager: log about previous objective 32328/head
Mike Yuan [Thu, 18 Apr 2024 00:59:10 +0000 (08:59 +0800)] 
core/manager: log about previous objective

Addresses https://github.com/systemd/systemd/pull/32320#discussion_r1569192295

18 months agocore/manager-serialize: serialize objective string
Mike Yuan [Thu, 18 Apr 2024 00:57:28 +0000 (08:57 +0800)] 
core/manager-serialize: serialize objective string

Follow-up for 8c15bf36e117054cf54b4f0cca59615b7531a545

I just realized that we should not serialize the number
of internal enum, as that's subject to changes and such
changes would be hard to notice. Let's serialize strings
properly instead.

18 months agocore/manager: introduce ManagerObjective string table lookup
Mike Yuan [Thu, 18 Apr 2024 00:53:50 +0000 (08:53 +0800)] 
core/manager: introduce ManagerObjective string table lookup

18 months agocore/manager: also log soft-reboot count along with timespan
Mike Yuan [Thu, 18 Apr 2024 00:46:20 +0000 (08:46 +0800)] 
core/manager: also log soft-reboot count along with timespan

18 months agocore: switch j->unit->manager to j->manager
Mike Yuan [Thu, 18 Apr 2024 00:43:48 +0000 (08:43 +0800)] 
core: switch j->unit->manager to j->manager

18 months agomkosi: Disable bash debugging in Arch build script
Daan De Meyer [Thu, 18 Apr 2024 12:21:31 +0000 (14:21 +0200)] 
mkosi: Disable bash debugging in Arch build script

18 months agoMerge pull request #32333 from DaanDeMeyer/mkosi
Daan De Meyer [Thu, 18 Apr 2024 12:17:44 +0000 (14:17 +0200)] 
Merge pull request #32333 from DaanDeMeyer/mkosi

mkosi: Various improvements

18 months agoboot: fix assignment of ret_* variables in `initrd_prepare()`
Antonio Alvarez Feijoo [Thu, 18 Apr 2024 09:58:07 +0000 (11:58 +0200)] 
boot: fix assignment of ret_* variables in `initrd_prepare()`

18 months agoMerge pull request #32326 from jonathan-conder/man_pam_loadkey
Luca Boccassi [Thu, 18 Apr 2024 12:10:40 +0000 (14:10 +0200)] 
Merge pull request #32326 from jonathan-conder/man_pam_loadkey

man: pam_system_loadkey additions and fixes

18 months agoudev: permanent symlinks with USB revision for /dev/media*
Max Staudt [Wed, 17 Apr 2024 06:30:44 +0000 (15:30 +0900)] 
udev: permanent symlinks with USB revision for /dev/media*

As a follow-up in the style of:
  873be895ed ("udev: add USB revision in ID_PATH")
this patch adds a second symlink for media controllers, this time
including the USB revision.

This means that in addition to persistent symlinks like:
  pci-0000:04:00.3-usb-0:1:1.0-media-controller -> ../../media0

We now also get:
  pci-0000:04:00.3-usbv2-0:1:1.0-media-controller -> ../../media0

...which helps distinguish media devices plugged into different USB root
hubs provided by the same PCI card, at least as long as they are for
different USB revisions.

Fixes: 04f19d6735 ("udev: Add /dev/media/by-path symlinks for media controllers")
18 months agosystemctl: add --clean= values to documentation and shell completion
Luca Boccassi [Mon, 8 Apr 2024 01:20:18 +0000 (02:20 +0100)] 
systemctl: add --clean= values to documentation and shell completion

18 months agomkosi: Install debug packages when WITH_DEBUG=1 is enabled 32333/head
Daan De Meyer [Thu, 18 Apr 2024 11:29:12 +0000 (13:29 +0200)] 
mkosi: Install debug packages when WITH_DEBUG=1 is enabled

When we're building debuginfo packages, the original binaries and
libraries are stripped so make sure we install the debuginfo
packages to make sure debugging in the container/VM still works.

18 months agomkosi: Setup --ffile-prefix-map= for opensuse as well
Daan De Meyer [Thu, 18 Apr 2024 11:28:17 +0000 (13:28 +0200)] 
mkosi: Setup --ffile-prefix-map= for opensuse as well

This doesn't actually work because the opensuse spec doesn't allow
adding extra build flags, but I'm working on fixing that, so let's
already set things up for later.

18 months agomkosi: Undefine FORTIFY_SOURCE before setting it again
Daan De Meyer [Thu, 18 Apr 2024 12:00:30 +0000 (14:00 +0200)] 
mkosi: Undefine FORTIFY_SOURCE before setting it again

Otherwise we get warnings from gcc.

18 months agomkosi: Install more packages
Daan De Meyer [Thu, 18 Apr 2024 11:27:43 +0000 (13:27 +0200)] 
mkosi: Install more packages

Let's install everything we can to get more coverage and make sure
all build outputs are available in mkosi containers or VMs.

18 months agomkosi: Drop systemd-repart from package lists
Daan De Meyer [Thu, 18 Apr 2024 11:27:05 +0000 (13:27 +0200)] 
mkosi: Drop systemd-repart from package lists

This is just a Provides for systemd-udev.

18 months agomkosi: Update to latest
Daan De Meyer [Thu, 18 Apr 2024 11:26:44 +0000 (13:26 +0200)] 
mkosi: Update to latest

18 months agoNEWS: mention GNOME Foundation in contributors list
Luca Boccassi [Thu, 18 Apr 2024 09:46:19 +0000 (10:46 +0100)] 
NEWS: mention GNOME Foundation in contributors list

Sponsored work on homed

18 months agosystemctl: show invocation ID in unit status output 32330/head
Lennart Poettering [Thu, 18 Apr 2024 09:18:35 +0000 (11:18 +0200)] 
systemctl: show invocation ID in unit status output

I think we should put more emphasis on the invocation ID as a handle for
a specific runtime cycle of a unit. Let's start with actually showing it
to users.

See: #16035

18 months agoman: document other keyname options for pam_systemd_loadkey 32326/head
Jonathan Conder [Wed, 17 Apr 2024 20:01:27 +0000 (08:01 +1200)] 
man: document other keyname options for pam_systemd_loadkey

18 months agoMerge pull request #32324 from mrc0mmand/more-website-fixes
Luca Boccassi [Thu, 18 Apr 2024 08:55:01 +0000 (10:55 +0200)] 
Merge pull request #32324 from mrc0mmand/more-website-fixes

docs: use absolute links for our pages

18 months agodoc: fix .ssh credential examples
Lennart Poettering [Wed, 17 Apr 2024 19:56:41 +0000 (21:56 +0200)] 
doc: fix .ssh credential examples

Let's create the .ssh dir with the right perms first.

Suggested by @gcb.

Fixes: #28172
18 months agodocs: Add note on packages produced by mkosi builds
Daan De Meyer [Wed, 17 Apr 2024 21:38:14 +0000 (23:38 +0200)] 
docs: Add note on packages produced by mkosi builds

18 months agoudev: fix assignment of ret_truncated
Yu Watanabe [Thu, 18 Apr 2024 05:25:52 +0000 (14:25 +0900)] 
udev: fix assignment of ret_truncated

Follow-ups for 089bef66316e5bdc91b9984148e5a6455449c1da.

18 months agoblockdev-util: fix typo
Yu Watanabe [Thu, 18 Apr 2024 04:08:09 +0000 (13:08 +0900)] 
blockdev-util: fix typo

Follow-up for 33ff155957327f51dde740a7a75f19122bff1ebc.

18 months agoMerge pull request #32192 from yuwata/part-scan
Yu Watanabe [Thu, 18 Apr 2024 02:38:48 +0000 (11:38 +0900)] 
Merge pull request #32192 from yuwata/part-scan

blockdev-util: fix detection of partscan

18 months agoMerge pull request #32249 from CodethinkLabs/vmspawn/predicatable_tap_names
Yu Watanabe [Thu, 18 Apr 2024 01:26:07 +0000 (10:26 +0900)] 
Merge pull request #32249 from CodethinkLabs/vmspawn/predicatable_tap_names

vmspawn: generate predicatable TAP device names and MAC addresses

18 months agoblockdev-util: also read 'ext_range' sysattr to check if the partscan is enabled 32192/head
Yu Watanabe [Mon, 8 Apr 2024 02:57:42 +0000 (11:57 +0900)] 
blockdev-util: also read 'ext_range' sysattr to check if the partscan is enabled

The 'capability' sysattr was deprecated by
https://github.com/torvalds/linux/commit/e81cd5a983bb35dabd38ee472cf3fea1c63e0f23 (v6.3).

18 months agosd-device: introduce device_get_sysattr_unsigned_full()
Yu Watanabe [Mon, 8 Apr 2024 02:56:58 +0000 (11:56 +0900)] 
sd-device: introduce device_get_sysattr_unsigned_full()

18 months agoman: fix wrong version info (#31949)
Yu Watanabe [Thu, 18 Apr 2024 00:45:51 +0000 (09:45 +0900)] 
man: fix wrong version info (#31949)

Fixes #31920.

18 months agosystemctl: allow user to suppress output when no action scheduled (#32278)
MaxHearnden [Thu, 18 Apr 2024 00:44:22 +0000 (01:44 +0100)] 
systemctl: allow user to suppress output when no action scheduled (#32278)

18 months agojournalctl: update help to say "priority range" (#32323)
Winterhuman [Thu, 18 Apr 2024 00:43:28 +0000 (00:43 +0000)] 
journalctl: update help to say "priority range" (#32323)

Clarify that `-p, --priority=` always treats its option as a priority range, even when given
a single log level per the full man page description.

Co-authored-by: Mike Yuan <me@yhndnzj.com>
18 months agoMerge pull request #32308 from yuwata/sd-ndisc-disable-timer-on-recv
Yu Watanabe [Thu, 18 Apr 2024 00:28:16 +0000 (09:28 +0900)] 
Merge pull request #32308 from yuwata/sd-ndisc-disable-timer-on-recv

sd-ndisc: disable one more timer event source

18 months agoMerge pull request #32318 from YHNdnzj/skip-leading-char
Yu Watanabe [Wed, 17 Apr 2024 21:18:09 +0000 (06:18 +0900)] 
Merge pull request #32318 from YHNdnzj/skip-leading-char

journal-gatewayd: use skip_leading_chars

18 months agoman: add pam_gnome_keyring to auth section after pam_systemd_loadkey
Jonathan Conder [Wed, 17 Apr 2024 19:56:52 +0000 (07:56 +1200)] 
man: add pam_gnome_keyring to auth section after pam_systemd_loadkey

This is required because pam_sm_open_session [1] only looks at
gkr_system_authtok, which is copied from the kernel keyring in
pam_sm_authenticate.

[1] https://gitlab.gnome.org/GNOME/gnome-keyring/-/blob/46.1/pam/gkr-pam-module.c?ref_type=tags

18 months agoMerge pull request #32320 from bluca/softreboot_serialize
Lennart Poettering [Wed, 17 Apr 2024 20:12:49 +0000 (22:12 +0200)] 
Merge pull request #32320 from bluca/softreboot_serialize

Soft reboot timestamp follow-ups

18 months agoman: mention that sd_journal_test_cursor() needs a positioning call
Zbigniew Jędrzejewski-Szmek [Wed, 17 Apr 2024 16:11:31 +0000 (18:11 +0200)] 
man: mention that sd_journal_test_cursor() needs a positioning call

Fixes #30331.

18 months agoMerge pull request #32317 from DaanDeMeyer/mkosi
Daan De Meyer [Wed, 17 Apr 2024 19:29:28 +0000 (21:29 +0200)] 
Merge pull request #32317 from DaanDeMeyer/mkosi

mkosi: Set up -ffile-prefix-map= correctly when building debuginfo packages

18 months agodocs: use absolute links for our pages 32324/head
Frantisek Sumsal [Wed, 17 Apr 2024 18:54:45 +0000 (20:54 +0200)] 
docs: use absolute links for our pages

Since 56b2970 has proven to be a no-go for us, as it breaks existing
links, let's embrace the trailing slash and use absolute links
everywhere for our pages. This way we'll get around browser cleverly
appending the relative link to the current location (since it ends with
a slash), and given our docs/ layout is flat it's not much of a hassle
either.

Converted using this beauty:
  $ sed -ri 's/(\[.+\]\()([A-Z_]+\))/\1\/\2/g' *.md

Resolves: #32088 (again) and #32310

18 months agoRevert "docs: don't suffix page permalink with a slash"
Frantisek Sumsal [Wed, 17 Apr 2024 18:42:58 +0000 (20:42 +0200)] 
Revert "docs: don't suffix page permalink with a slash"

This breaks existing links with a trailing slash, so it's a no-go.

This reverts commit d1a7e030c5daa4a09ee93b8af6b28ecaac5d34d0.

18 months agocore: rename SoftRebootStartTimestamp -> ShutdownStartTimestamp and generalize 32320/head
Luca Boccassi [Tue, 16 Apr 2024 14:33:09 +0000 (15:33 +0100)] 
core: rename SoftRebootStartTimestamp -> ShutdownStartTimestamp and generalize

Follow-up for 54f86b86ba8168faccbfc2ad16ceeccefde98a51

18 months agomanager: serialize current objective
Luca Boccassi [Thu, 19 Oct 2023 23:34:29 +0000 (00:34 +0100)] 
manager: serialize current objective

So that we can tell what happened before the exec. It is overwritten
shortly after deserialization. Use it to bump the soft reboots counter.

18 months agoMerge pull request #32315 from poettering/hwdb-256
Lennart Poettering [Wed, 17 Apr 2024 17:18:44 +0000 (19:18 +0200)] 
Merge pull request #32315 from poettering/hwdb-256

hwdb/autosuspend/NEWS update for 256-rc1

18 months agoMerge pull request #31648 from neighbourhoodie/review-content
Zbigniew Jędrzejewski-Szmek [Wed, 17 Apr 2024 15:34:43 +0000 (17:34 +0200)] 
Merge pull request #31648 from neighbourhoodie/review-content

I did the merge manually to resolve a trivial conflict.

18 months agomkosi: Drop workarounds 32317/head
Daan De Meyer [Wed, 17 Apr 2024 14:59:08 +0000 (16:59 +0200)] 
mkosi: Drop workarounds

With the latest Github Actions image release none of these should
be required anymore (20240414.1.1).

18 months agomkosi: Switch to O0 and disable FORTIFY_SOURCE
Daan De Meyer [Wed, 17 Apr 2024 14:10:26 +0000 (16:10 +0200)] 
mkosi: Switch to O0 and disable FORTIFY_SOURCE

-Og still causes a lot of "<optimized out>" in GDB so let's use -O0
instead and disable FORTIFY_SOURCE as it doesn't work without
optimizations enabled.

18 months agoMerge pull request #32143 from yuwata/magic
Lennart Poettering [Wed, 17 Apr 2024 15:03:48 +0000 (17:03 +0200)] 
Merge pull request #32143 from yuwata/magic

basic/linux: copy magic.h from kernel to our code

18 months agoNEWS: prepare -rc1 32315/head
Lennart Poettering [Wed, 17 Apr 2024 09:24:59 +0000 (11:24 +0200)] 
NEWS: prepare -rc1

18 months agoautosuspend: update for v256
Lennart Poettering [Wed, 17 Apr 2024 10:40:24 +0000 (12:40 +0200)] 
autosuspend: update for v256

18 months agohwdb: update for v256
Lennart Poettering [Wed, 17 Apr 2024 09:22:14 +0000 (11:22 +0200)] 
hwdb: update for v256

18 months agoMerge pull request #32311 from YHNdnzj/write-ellipsis
Lennart Poettering [Wed, 17 Apr 2024 14:20:51 +0000 (16:20 +0200)] 
Merge pull request #32311 from YHNdnzj/write-ellipsis

Some minor cleanup for string-util (ellipsis)

18 months agomkosi: Disable DWARF debug info optimization
Daan De Meyer [Wed, 17 Apr 2024 13:54:53 +0000 (15:54 +0200)] 
mkosi: Disable DWARF debug info optimization

We care more about fast builds in this case so disable the DWARF
debug optimization that's done by default.

18 months agoNEWS: udev and networkd pick up more things from creds
Mike Yuan [Wed, 17 Apr 2024 14:05:37 +0000 (22:05 +0800)] 
NEWS: udev and networkd pick up more things from creds

18 months agojournal-gatewayd: use skip_leading_chars where appropriate 32318/head
Mike Yuan [Wed, 17 Apr 2024 13:50:22 +0000 (21:50 +0800)] 
journal-gatewayd: use skip_leading_chars where appropriate

Prompted by c5d675472588815dedf67af8c36da0fac398fb3e

18 months agojournal-gatewayd: add missing assertions
Mike Yuan [Wed, 17 Apr 2024 13:50:05 +0000 (21:50 +0800)] 
journal-gatewayd: add missing assertions

18 months agomkosi: Override build_cflags instead of _distro_extra_cflags
Daan De Meyer [Wed, 17 Apr 2024 13:38:24 +0000 (15:38 +0200)] 
mkosi: Override build_cflags instead of _distro_extra_cflags

The latter is not supported on CentOS Stream 9.

18 months agojournal-gatewayd: remove duplicate call to `startswith()`
Antonio Alvarez Feijoo [Wed, 17 Apr 2024 09:19:01 +0000 (11:19 +0200)] 
journal-gatewayd: remove duplicate call to `startswith()`

18 months agomkosi: Set up -ffile-prefix-map= correctly when building debuginfo packages
Daan De Meyer [Wed, 17 Apr 2024 12:55:08 +0000 (14:55 +0200)] 
mkosi: Set up -ffile-prefix-map= correctly when building debuginfo packages

This makes sure that the debuginfo files contain source files pointing
to the source files shipped by the debugsource package.

Normally this should be done automatically by rpm invoking debugedit
but for some unknown reason debugedit refuses to rewrite the source
files in our binaries.

Given that debugedit is completely undebugable (does not generate any
logs at all, and its source code is ridiculously obtuse), let's set
-ffile-prefix-map= when building instead which achieves the same
effect.

18 months agobuild(deps): bump pkg/debian from `e477254` to `30c77a7`
dependabot[bot] [Wed, 17 Apr 2024 09:56:56 +0000 (09:56 +0000)] 
build(deps): bump pkg/debian from `e477254` to `30c77a7`

Bumps pkg/debian from `e477254` to `30c77a7`.

---
updated-dependencies:
- dependency-name: pkg/debian
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
18 months agocore/show-status: use strlen where appropriate 32311/head
Mike Yuan [Wed, 17 Apr 2024 08:48:29 +0000 (16:48 +0800)] 
core/show-status: use strlen where appropriate

We don't use sizeof() outside of array definitions
these days. The compiler should be capable of
optimizing this out.

18 months agostring-util: use mempcpy where appropriate
Mike Yuan [Wed, 17 Apr 2024 08:48:00 +0000 (16:48 +0800)] 
string-util: use mempcpy where appropriate

18 months agostring-util: use special_glyph() at one more place
Yu Watanabe [Wed, 17 Apr 2024 01:01:39 +0000 (10:01 +0900)] 
string-util: use special_glyph() at one more place

No functional change, just refactoring.

18 months agofuzz-ndisc-rs: also test packets with sd-radv
Yu Watanabe [Tue, 16 Apr 2024 06:17:50 +0000 (15:17 +0900)] 
fuzz-ndisc-rs: also test packets with sd-radv

Addresses https://github.com/systemd/systemd/pull/32267#discussion_r1566715787.

Suggested-by: Evgeny Vereshchagin <evvers@ya.ru>
18 months agotest: fix typo
Yu Watanabe [Wed, 17 Apr 2024 04:29:35 +0000 (13:29 +0900)] 
test: fix typo

Follow-up for 236634c82c56e280348f9452129f3cdfd1fb7a45.

18 months agosd-ndisc: improve debugging logs 32308/head
Yu Watanabe [Wed, 17 Apr 2024 04:02:26 +0000 (13:02 +0900)] 
sd-ndisc: improve debugging logs

18 months agosd-ndisc: disable one more timer event source
Yu Watanabe [Wed, 17 Apr 2024 03:21:44 +0000 (12:21 +0900)] 
sd-ndisc: disable one more timer event source

Otherwise, even if we have already received RA, timeout callback will be
called. Currently, networkd mostly does nothing on timeout, hence should
not change any effective behavior.

Follow-up for e7cb80474d4e580f7cc7c8645e1412e4a59f7588.

18 months agoMerge pull request #32300 from mrc0mmand/assorted-tweaks
Yu Watanabe [Wed, 17 Apr 2024 02:52:30 +0000 (11:52 +0900)] 
Merge pull request #32300 from mrc0mmand/assorted-tweaks

test: split TEST-50-DISSECT into smaller parts

18 months agoMerge pull request #32303 from CodethinkLabs/push_down_disk_partitioning
Yu Watanabe [Wed, 17 Apr 2024 02:49:23 +0000 (11:49 +0900)] 
Merge pull request #32303 from CodethinkLabs/push_down_disk_partitioning

test-64-udev-storage: Push disk partitioning into the testsuite itself

18 months agocryptenroll: Use CTAP2.1 credProtect extension
Bryan Jacobs [Tue, 16 Apr 2024 03:12:22 +0000 (13:12 +1000)] 
cryptenroll: Use CTAP2.1 credProtect extension

When enrolling a new FIDO2 token with a client PIN, this tells the authenticator to require the PIN on all uses.

It also collects a PIN before attempting to create a credential.

Works around #31443 in most (not all) scenarios.

18 months agotest-64-udev-storage: partition disk inside testcase - testcase_multipath_basic_failover 32303/head
Sam Leonard [Tue, 16 Apr 2024 16:02:31 +0000 (17:02 +0100)] 
test-64-udev-storage: partition disk inside testcase - testcase_multipath_basic_failover

18 months agotest-64-udev-storage: partition disk inside testcase - testcase_virtio_scsi_identical...
Sam Leonard [Tue, 16 Apr 2024 15:17:59 +0000 (16:17 +0100)] 
test-64-udev-storage: partition disk inside testcase - testcase_virtio_scsi_identically_named_partitions

18 months agotest-64-udev-storage: partition disk inside testcase - testcase_long_sysfs_path
Sam Leonard [Tue, 16 Apr 2024 12:18:34 +0000 (13:18 +0100)] 
test-64-udev-storage: partition disk inside testcase - testcase_long_sysfs_path

18 months agoMerge pull request #32302 from DaanDeMeyer/mkosi
Daan De Meyer [Tue, 16 Apr 2024 14:59:41 +0000 (16:59 +0200)] 
Merge pull request #32302 from DaanDeMeyer/mkosi

Various mkosi improvements

18 months agoMerge pull request #32236 from poettering/journalctl-list-namespace-followup
Lennart Poettering [Tue, 16 Apr 2024 13:45:06 +0000 (15:45 +0200)] 
Merge pull request #32236 from poettering/journalctl-list-namespace-followup

journalctl: --list-namespaces followup

18 months agomkosi: Add support for building debug packages 32302/head
Daan De Meyer [Tue, 16 Apr 2024 09:24:56 +0000 (11:24 +0200)] 
mkosi: Add support for building debug packages

This allows building debug packages by setting WITH_DEBUG=1. This
slows down the build a lot so it's opt in. We don't yet install
these but can do so in a future commit.

18 months agomkosi: Add --noclean when running rpmbuild
Daan De Meyer [Tue, 16 Apr 2024 11:59:20 +0000 (13:59 +0200)] 
mkosi: Add --noclean when running rpmbuild

The entire build environment is ephemeral anyway so everything is
cleaned regardless. By specifying --noclean, we make debugging
easier as the rpm build root can be inspected when using --debug-shell.

18 months agomkosi: Install which in image
Daan De Meyer [Tue, 16 Apr 2024 11:58:07 +0000 (13:58 +0200)] 
mkosi: Install which in image

gdb-headless in Fedora is missing a dependency on which:
https://bugzilla.redhat.com/show_bug.cgi?id=2275274

This happens all the time so let's make sure which is always installed
in the image.

18 months agoUpdate debugging with vscode section
Daan De Meyer [Mon, 15 Apr 2024 20:28:11 +0000 (22:28 +0200)] 
Update debugging with vscode section

- We have ssh-generator now, so need for mkosi's Ssh= option anymore.
- By enabling RuntimeBuildSources= by default, we don't need the gdb
  config file in the image anymore, since the build and source
  directories will be mounted at the expected locations.

18 months agotest: rework systemd-sysext test 32300/head
Frantisek Sumsal [Mon, 15 Apr 2024 21:28:43 +0000 (23:28 +0200)] 
test: rework systemd-sysext test

Let's rework the test a bit, namely:
  - condense the code a bit
  - drop unnecessary braces around variables
  - drop unnecessary explanations around `touch` calls
  - drop/rename functions to make the code more self-explanatory
  - simplify cleanup a bit
  - create R/O bind mounts directly (supported since util-linux 2.27)

18 months agotest: simplify unit check
Frantisek Sumsal [Mon, 15 Apr 2024 18:52:59 +0000 (20:52 +0200)] 
test: simplify unit check

18 months agotest: split some overly long lines
Frantisek Sumsal [Mon, 15 Apr 2024 18:27:32 +0000 (20:27 +0200)] 
test: split some overly long lines

Let's get the line count back up again by splitting some overly long
lines in hopes to make the code slightly more readable.

18 months agotest: split TEST-50-DISSECT into smaller parts
Frantisek Sumsal [Mon, 15 Apr 2024 17:44:23 +0000 (19:44 +0200)] 
test: split TEST-50-DISSECT into smaller parts

As the current version has almost 2k lines.

18 months agojournalctl: tighten rules on parsing namespace journal dir suffixes 32236/head
Lennart Poettering [Thu, 11 Apr 2024 17:07:21 +0000 (19:07 +0200)] 
journalctl: tighten rules on parsing namespace journal dir suffixes

The dot must follow the machine ID immediately, let's check for that.
Also, I think it's generally better to parse the machine ID and then
comparing it, instead of comparing the string representation. That's
more in line how we usually do it, as we parse 128bit IDs generally
case-insensitively.

18 months agojournalctl: show human readable text if no namespace is found
Lennart Poettering [Thu, 11 Apr 2024 17:04:14 +0000 (19:04 +0200)] 
journalctl: show human readable text if no namespace is found

The common case will be that no namespaces are defined, hence by default
we'd just output "NAMESPACE" and exit, which is very confusing.

Generate a nice message instead, how many of our tools do it. Suppress
it on --quiet however.