]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
10 months agoudev-ctrl: refuse ENV control message with invalid environment assignment 35736/head
Yu Watanabe [Sat, 21 Dec 2024 21:34:33 +0000 (06:34 +0900)] 
udev-ctrl: refuse ENV control message with invalid environment assignment

Previously, udevd accepts an arbitrary pair of key and value.
Let's make the environment variable assignment more strict for safety.

Note, we already refuse environment variables with the same way in
net/link-config.c.

10 months agoudev: introduce udev_property_name_is_valid() and friends
Yu Watanabe [Sat, 4 Jan 2025 12:07:41 +0000 (21:07 +0900)] 
udev: introduce udev_property_name_is_valid() and friends

10 months agoudev-config: split on_ctrl_msg() into small pieces
Yu Watanabe [Sat, 21 Dec 2024 16:48:37 +0000 (01:48 +0900)] 
udev-config: split on_ctrl_msg() into small pieces

No functional change, just refactroing and preparation for later
commits.

10 months agosd-json: replace ASSERT_PTR() with assert_return() (#35849)
Daan De Meyer [Sat, 4 Jan 2025 10:06:36 +0000 (11:06 +0100)] 
sd-json: replace ASSERT_PTR() with assert_return() (#35849)

10 months agolibsystemd: drop duplicated symbol
Yu Watanabe [Sat, 4 Jan 2025 03:01:20 +0000 (12:01 +0900)] 
libsystemd: drop duplicated symbol

Follow-up for 107986a33e8fc356ddeda256d730921836f4b521.

10 months agosd-json,sd-varlink: trivial coding style fixlets 35849/head
Yu Watanabe [Sat, 4 Jan 2025 04:20:50 +0000 (13:20 +0900)] 
sd-json,sd-varlink: trivial coding style fixlets

10 months agosd-json: replace ASSERT_PTR() with assert_return() in public functions
Yu Watanabe [Sat, 4 Jan 2025 04:10:38 +0000 (13:10 +0900)] 
sd-json: replace ASSERT_PTR() with assert_return() in public functions

10 months agotpm2: tweaks to PCR mask parsing (#35835)
Yu Watanabe [Sat, 4 Jan 2025 03:42:54 +0000 (12:42 +0900)] 
tpm2: tweaks to PCR mask parsing (#35835)

10 months agonspawn: move uid shift/chown() code into shared/
Lennart Poettering [Mon, 11 Nov 2024 19:58:30 +0000 (20:58 +0100)] 
nspawn: move uid shift/chown() code into shared/

10 months agohwdb: Add newer System76 Pangolins
Tim Crawford [Fri, 3 Jan 2025 18:43:30 +0000 (11:43 -0700)] 
hwdb: Add newer System76 Pangolins

Signed-off-by: Tim Crawford <tcrawford@system76.com>
10 months agolibsystemd: drop duplicated symbol 35847/head
Yu Watanabe [Sat, 4 Jan 2025 03:01:20 +0000 (12:01 +0900)] 
libsystemd: drop duplicated symbol

Follow-up for 107986a33e8fc356ddeda256d730921836f4b521.

10 months agoptyfwd: Add --read-only option
Daan De Meyer [Fri, 3 Jan 2025 18:40:45 +0000 (19:40 +0100)] 
ptyfwd: Add --read-only option

10 months agohwdb: Add micmute for System76
Tim Crawford [Fri, 3 Jan 2025 18:32:15 +0000 (11:32 -0700)] 
hwdb: Add micmute for System76

Signed-off-by: Tim Crawford <tcrawford@system76.com>
10 months agoterminal-util: modernize vtnr_from_tty() a bit
Lennart Poettering [Tue, 19 Nov 2024 19:42:27 +0000 (20:42 +0100)] 
terminal-util: modernize vtnr_from_tty() a bit

10 months agomkosi: Handle directories in debian/not-installed correctly (#35832)
Daan De Meyer [Fri, 3 Jan 2025 19:27:05 +0000 (20:27 +0100)] 
mkosi: Handle directories in debian/not-installed correctly (#35832)

If a directory is specified without a glob pattern, we have to exclude
all files in that directory, so add a recursive glob to every directory
and enable the bash globstar feature when globbing to '**/*' matches all
files and directories beneath the given directory.

10 months agoIntroduce systemd-pty-forward (#35761)
Daan De Meyer [Fri, 3 Jan 2025 18:34:42 +0000 (19:34 +0100)] 
Introduce systemd-pty-forward (#35761)

This allows running a command with tinted terminal background.

10 months agomkosi: Warn on unpackaged files in the debian package build 35832/head
Daan De Meyer [Fri, 3 Jan 2025 10:42:47 +0000 (11:42 +0100)] 
mkosi: Warn on unpackaged files in the debian package build

10 months agoTEST-74-AUX-UTILS: Use tee
Daan De Meyer [Fri, 3 Jan 2025 15:33:29 +0000 (16:33 +0100)] 
TEST-74-AUX-UTILS: Use tee

Something is failing but we can't see what from the logs so let's use
tee so we can.

10 months agoIntroduce systemd-pty-forward 35761/head
Daan De Meyer [Thu, 26 Dec 2024 21:58:33 +0000 (22:58 +0100)] 
Introduce systemd-pty-forward

This allows running a command with tinted terminal background.

10 months agocore: do not disconnect from bus when failed to install signal match (#35779)
Daan De Meyer [Fri, 3 Jan 2025 15:45:50 +0000 (16:45 +0100)] 
core: do not disconnect from bus when failed to install signal match (#35779)

If bus_add_match_full() is called without install callback and we failed
to install the signal match e.g. by timeout, then add_match_callback()
will disconnect from the bus. Let's use a custom install handler and
handle failures gracefully.

This does not *solve* the root cause of issue
https://github.com/systemd/systemd/issues/30573, but should improve the
situation when the issue is triggered.

10 months agodissect-image: rename ReplyParameters → MountImageReplyParameters
Lennart Poettering [Mon, 11 Nov 2024 16:20:19 +0000 (17:20 +0100)] 
dissect-image: rename ReplyParameters → MountImageReplyParameters

10 months agodissect: minor simplifications
Lennart Poettering [Tue, 12 Nov 2024 08:45:05 +0000 (09:45 +0100)] 
dissect: minor simplifications

10 months agosd-json: add json_dispatch_const_path() helper
Lennart Poettering [Tue, 19 Nov 2024 13:59:00 +0000 (14:59 +0100)] 
sd-json: add json_dispatch_const_path() helper

The new json_dispatch_const_path() is to json_dispatch_path() what
sd_json_dispatch_const_string() is to sd_json_dispatch_ string(), i.e.
doesn't implicitly strdup() the string, but gives you the pointer into
the JSON structure, and thus requires you to keep it pinned.

10 months agodissect: minor additions to the systemd-dissect tool (#35829)
Daan De Meyer [Fri, 3 Jan 2025 15:05:30 +0000 (16:05 +0100)] 
dissect: minor additions to the systemd-dissect tool (#35829)

10 months agonspawn: trivial tweaklets (#35831)
Daan De Meyer [Fri, 3 Jan 2025 14:54:43 +0000 (15:54 +0100)] 
nspawn: trivial tweaklets (#35831)

10 months agohwdb: replace f20 by micmute in mm kbd database (#34325)
Lennart Poettering [Fri, 3 Jan 2025 13:55:50 +0000 (14:55 +0100)] 
hwdb: replace f20 by micmute in mm kbd database (#34325)

here's a (strawman for now) PR addressing #34323.

don't merge until there's consensus that it's the right time to address
this.

Fixes: #34323
10 months agovmspawn: Switch to virtconsole for headless console (#35836)
Daan De Meyer [Fri, 3 Jan 2025 12:54:09 +0000 (13:54 +0100)] 
vmspawn: Switch to virtconsole for headless console (#35836)

virtconsole is the modern way to set up a headless serial connection
to a virtual machine so let's make use of it instead of -serial. This
also allows us to get rid of the per architecture serial console device
names and makes vmspawn more consistent with mkosi qemu which already
uses
virtconsole.

10 months agomachine: introduce io.systemd.Machine.BindMount method (#35066)
Daan De Meyer [Fri, 3 Jan 2025 12:19:48 +0000 (13:19 +0100)] 
machine: introduce io.systemd.Machine.BindMount method (#35066)

This PR introduces io.systemd.Machine.BindMount method which is
alternative to DBus's BindMountMachine.

10 months agofs-util: teach xopenat_full() to pick automatically if given as MODE_INVALID
Lennart Poettering [Thu, 14 Nov 2024 11:20:07 +0000 (12:20 +0100)] 
fs-util: teach xopenat_full() to pick automatically if given as MODE_INVALID

10 months agonspawn: rework userns_mkdir() around chase()
Lennart Poettering [Thu, 14 Nov 2024 11:23:19 +0000 (12:23 +0100)] 
nspawn: rework userns_mkdir() around chase()

10 months agomkosi: Handle directories in debian/not-installed correctly
Daan De Meyer [Fri, 3 Jan 2025 09:20:45 +0000 (10:20 +0100)] 
mkosi: Handle directories in debian/not-installed correctly

If a directory is specified without a glob pattern, we have to exclude
all files in that directory, so add a recursive glob to every directory
and enable the bash globstar feature when globbing to '**/*' matches all
files and directories beneath the given directory.

10 months agoudev: split udev_manager_init() and udev_manager_main() into small pieces (#35735)
Lennart Poettering [Fri, 3 Jan 2025 11:27:14 +0000 (12:27 +0100)] 
udev: split udev_manager_init() and udev_manager_main() into small pieces (#35735)

10 months agofix: sd-measure `dtbauto` and `hwdids` arg parsing
Noel Georgi [Fri, 27 Dec 2024 11:50:41 +0000 (17:20 +0530)] 
fix: sd-measure `dtbauto` and `hwdids` arg parsing

Commit 630cf4e7dafb062588a2d9e09cf470806f00bb9e introduced `.dtbauto`,
but since it's before `.hwdids` commit 4c0b7f425024923f37c7e571fa563f602e8bf369
made `dtbauto` the last argument whereas it should have been `hwdids`.

Otherwise the code was measuring the content of hwdids into dtbauto
section and vice-versa.

Found this while adding the new `dtbauto` and `.hwdids` fields in the go
implementation of `sd-measure` at
https://github.com/siderolabs/talos/blob/main/internal/pkg/secureboot/measure/measure.go.

Signed-off-by: Noel Georgi <git@frezbo.dev>
10 months agohwdb: drop some now redundant mappings 34325/head
Lennart Poettering [Wed, 11 Dec 2024 14:23:04 +0000 (15:23 +0100)] 
hwdb: drop some now redundant mappings

According to @jwrdegoede these are now redundant, since the kernel
drivers map these correctly already now that the f20/f21/f23 tweaks are
gone.

Hence, let's just drop this.

All credit to Hans.

As per: https://github.com/systemd/systemd/pull/34325#pullrequestreview-2495482652

10 months agohwdb: f23 → touchpad_off
Lennart Poettering [Mon, 9 Sep 2024 14:14:11 +0000 (16:14 +0200)] 
hwdb: f23 → touchpad_off

10 months agohwdb: f22 → touchpad_on
Lennart Poettering [Mon, 9 Sep 2024 14:12:44 +0000 (16:12 +0200)] 
hwdb: f22 → touchpad_on

10 months agohwdb: f21 → touchpad_toggle
Lennart Poettering [Mon, 9 Sep 2024 14:10:09 +0000 (16:10 +0200)] 
hwdb: f21 → touchpad_toggle

Similar to the previous commit.

10 months agohwdb: f20 → micmute
Lennart Poettering [Mon, 9 Sep 2024 13:56:09 +0000 (15:56 +0200)] 
hwdb: f20 → micmute

See: #34323

10 months agovmspawn: Switch to virtconsole for headless console 35836/head
Daan De Meyer [Fri, 3 Jan 2025 10:14:44 +0000 (11:14 +0100)] 
vmspawn: Switch to virtconsole for headless console

virtconsole is the modern way to set up a headless serial connection
to a virtual machine so let's make use of it instead of -serial. This
also allows us to get rid of the per architecture serial console device
names and makes vmspawn more consistent with mkosi qemu which already uses
virtconsole.

10 months agovmspawn: Use vmspawn in drive ID name instead of mkosi
Daan De Meyer [Fri, 3 Jan 2025 10:14:09 +0000 (11:14 +0100)] 
vmspawn: Use vmspawn in drive ID name instead of mkosi

10 months agoupdate TODO
Lennart Poettering [Sat, 21 Dec 2024 11:54:41 +0000 (12:54 +0100)] 
update TODO

10 months agoupdate TODO 35835/head
Lennart Poettering [Fri, 3 Jan 2025 09:44:38 +0000 (10:44 +0100)] 
update TODO

10 months agotpm2-util: refuse hash algorithm/value specification when we only parse a mask
Lennart Poettering [Sun, 22 Dec 2024 17:32:09 +0000 (18:32 +0100)] 
tpm2-util: refuse hash algorithm/value specification when we only parse a mask

tpm2_parse_pcr_argument_to_mask() is supposed to parse a PCR mask
string, and uses the full blown tpm2_parse_pcr_argument() call at its
core, which parses more than just a mask, i.e. values and algorithms
too. Which is very confusing at times, because commands such as
"systemd-cryptenroll --tpm2-device=auto
--tpm2-public-key-pcrs=1:sha1=09dbdbc7f6cdd8029cc90b57a915c19a0ac21bce"
are very confusing, since they suggest enrollment with a specific
algorithm and has value, but this is not in fact what happens: both are
entirely ignored.

That this was accepted this way was more an accident than intended,
which is already visible in the fact that extensive test case entirely
ignores the fact that strings like this are accepted.

10 months agotpm2-util: optionally do wildcard hash check in tpm2_pcr_values_to_mask()
Lennart Poettering [Sun, 22 Dec 2024 17:12:37 +0000 (18:12 +0100)] 
tpm2-util: optionally do wildcard hash check in tpm2_pcr_values_to_mask()

If TPM2_ALG_ERROR (aka "0") is specified as algorithm in
tpm2_pcr_values_to_mask() we'll simply match all algorithms. This allows
us to shorten tpm2_parse_pcr_argument_to_mask() a bit. The function
accepts but ignores a hash algorithm specification currently, hence this
should not really much effect.

10 months agotpm2-util: drop ret_x prefix from two arguments that are not just return but also...
Lennart Poettering [Sat, 21 Dec 2024 12:09:29 +0000 (13:09 +0100)] 
tpm2-util: drop ret_x prefix from two arguments that are not just return but also input params

10 months agonspawn: improve log messages a bit 35831/head
Lennart Poettering [Mon, 25 Nov 2024 11:11:53 +0000 (12:11 +0100)] 
nspawn: improve log messages a bit

10 months agonspawn: drop some redundant {}
Lennart Poettering [Mon, 25 Nov 2024 11:15:17 +0000 (12:15 +0100)] 
nspawn: drop some redundant {}

10 months agodissect: employ vpick also if we operate on a directory-based image 35829/head
Lennart Poettering [Thu, 14 Nov 2024 11:14:39 +0000 (12:14 +0100)] 
dissect: employ vpick also if we operate on a directory-based image

10 months agodissect: add a bit of color to --discover table
Lennart Poettering [Tue, 12 Nov 2024 11:48:54 +0000 (12:48 +0100)] 
dissect: add a bit of color to --discover table

10 months agodissect: show all kinds of images in --discover
Lennart Poettering [Tue, 12 Nov 2024 11:48:39 +0000 (12:48 +0100)] 
dissect: show all kinds of images in --discover

Given that systemd-dissect can nowadays operate on plain directories,
let's include directory images in the --discover output too.

Replace the filter with a filter for hidden images instead, as suddenly
the root fs image (which is a directory image ".host") otherwise shows up.

10 months agodebug-generator: rework from post-merge review #35410 (#35696)
Lennart Poettering [Fri, 3 Jan 2025 08:34:50 +0000 (09:34 +0100)] 
debug-generator: rework from post-merge review #35410 (#35696)

- https://github.com/systemd/systemd/pull/35410#discussion_r1893664993
- https://github.com/systemd/systemd/pull/35410#discussion_r1893667581

10 months agomkosi: Add docbook tools
Daan De Meyer [Thu, 2 Jan 2025 14:48:54 +0000 (15:48 +0100)] 
mkosi: Add docbook tools

10 months agotree-wide: Rename ret_slave to ret_peer
Daan De Meyer [Thu, 2 Jan 2025 13:10:18 +0000 (14:10 +0100)] 
tree-wide: Rename ret_slave to ret_peer

10 months agohwdb: Add macro keys for HP 430 Programmable Wireless Keypad
Chris Mayo [Thu, 2 Jan 2025 19:22:10 +0000 (19:22 +0000)] 
hwdb: Add macro keys for HP 430 Programmable Wireless Keypad

10 months agorandom-util: our baseline includes getrandom() (v3.17) now (#35816)
Daan De Meyer [Fri, 3 Jan 2025 08:23:06 +0000 (09:23 +0100)] 
random-util: our baseline includes getrandom() (v3.17) now (#35816)

10 months agoresolved: stop mdns/lnrr when config changes to disabled on reload
Luca Boccassi [Thu, 2 Jan 2025 17:30:21 +0000 (17:30 +0000)] 
resolved: stop mdns/lnrr when config changes to disabled on reload

Currently on reload mdns/lnrr are enabled if they were disabled,
but not viceversa. Fix it.

Follow-up for 14a52176798bc2d013297b503ac6fa49a64e2725

10 months agoCorrect ACCEL_MOUNT_MATRIX for Chuwi Hi10 Max
Michael Limiero [Thu, 2 Jan 2025 15:41:28 +0000 (10:41 -0500)] 
Correct ACCEL_MOUNT_MATRIX for Chuwi Hi10 Max

10 months agoterminal-util: introduce terminal_{new,detach}_session helpers (#35811)
Daan De Meyer [Fri, 3 Jan 2025 08:21:19 +0000 (09:21 +0100)] 
terminal-util: introduce terminal_{new,detach}_session helpers (#35811)

10 months agonetwork/dhcp: introduce global setting for DHCPv4 client identifier (#35783)
Daan De Meyer [Fri, 3 Jan 2025 08:19:55 +0000 (09:19 +0100)] 
network/dhcp: introduce global setting for DHCPv4 client identifier (#35783)

Typically, the same client identifier setting is used for all
interfaces. Hence, better to provide the system-wide setting to specify
the client identifier.

10 months agounits: some improvements in breakpoint-* units. 35696/head
Antonio Alvarez Feijoo [Fri, 3 Jan 2025 07:32:43 +0000 (08:32 +0100)] 
units: some improvements in breakpoint-* units.

- Set `RefuseManualStart=yes`.
- Order before shutdown.target and emergency.target.
- Remove wrong `Wants=remote-fs.target` dependency from
breakpoint-pre-switch-root.service.
- Remove unneeded `After=sysroot.mount` from breakpoint-pre-switch-root.service
(implied by initrd.target).

10 months agodebug-generator: use helper to check breakpoint validity
Antonio Alvarez Feijoo [Fri, 3 Jan 2025 07:32:27 +0000 (08:32 +0100)] 
debug-generator: use helper to check breakpoint validity

10 months agoterminal-util: introduce terminal_{new,detach}_session helpers 35811/head
Mike Yuan [Thu, 2 Jan 2025 15:25:40 +0000 (16:25 +0100)] 
terminal-util: introduce terminal_{new,detach}_session helpers

Prompted by #35761

10 months agoterminal-util: regroup some functions
Mike Yuan [Thu, 2 Jan 2025 15:12:35 +0000 (16:12 +0100)] 
terminal-util: regroup some functions

10 months agorandom-util: our baseline includes getrandom() (v3.17) now 35816/head
Mike Yuan [Thu, 2 Jan 2025 19:03:33 +0000 (20:03 +0100)] 
random-util: our baseline includes getrandom() (v3.17) now

Plus, linux/random.h never defined getrandom(), hence remove
the custom machinery for sys/random.h vs linux/random.h
in favor of single HAVE_GETRANDOM.

10 months agorandom-util: drop needless conditionalization of sys/auxv.h
Mike Yuan [Thu, 2 Jan 2025 18:59:56 +0000 (19:59 +0100)] 
random-util: drop needless conditionalization of sys/auxv.h

We assume its existence in basic/build-path.c, shared/userdb.c,
and coredump/coredump.c already, for which nothing has been reported
so far. So this seems safe to drop.

10 months agomissing_syscall: mandate __NR_memfd_create
Mike Yuan [Thu, 2 Jan 2025 19:32:51 +0000 (20:32 +0100)] 
missing_syscall: mandate __NR_memfd_create

Follow-up for 6db5a6e799db9d95185cd0c2a327109e80114aea

For basic system functionality we require memfd nowadays,
so fail the build if syscall number not available.

10 months agoREADME: document kernel version for GRND_INSECURE and close_range()
Mike Yuan [Thu, 2 Jan 2025 19:03:00 +0000 (20:03 +0100)] 
README: document kernel version for GRND_INSECURE and close_range()

10 months agoshared/hibernate-util: handle the case where no swap has available backing dev (...
Mike Yuan [Thu, 2 Jan 2025 18:26:58 +0000 (19:26 +0100)] 
shared/hibernate-util: handle the case where no swap has available backing dev (#35802)

Fixes https://github.com/systemd/systemd/issues/35798
Replaces https://github.com/systemd/systemd/pull/35801

10 months agoask-password: add varlink IPC interface and various other additions and fixes (#35074)
Lennart Poettering [Thu, 2 Jan 2025 17:21:35 +0000 (18:21 +0100)] 
ask-password: add varlink IPC interface and various other additions and fixes (#35074)

10 months agocore/socket: several fixlets (#35637)
Lennart Poettering [Thu, 2 Jan 2025 17:20:48 +0000 (18:20 +0100)] 
core/socket: several fixlets (#35637)

Fixes https://github.com/systemd/systemd/issues/35635

10 months agotest: update README's Ubuntu CI section for mkosi changes
Luca Boccassi [Thu, 2 Jan 2025 16:21:42 +0000 (16:21 +0000)] 
test: update README's Ubuntu CI section for mkosi changes

10 months agoTwo doc updates (#35810)
Luca Boccassi [Thu, 2 Jan 2025 16:04:00 +0000 (16:04 +0000)] 
Two doc updates (#35810)

10 months agomachine: tests for io.systemd.Machine.BindMount 35066/head
Ivan Kruglov [Wed, 18 Dec 2024 18:08:00 +0000 (19:08 +0100)] 
machine: tests for io.systemd.Machine.BindMount

10 months agomachine: introduce io.systemd.Machine.BindMount method
Ivan Kruglov [Wed, 18 Dec 2024 18:06:36 +0000 (19:06 +0100)] 
machine: introduce io.systemd.Machine.BindMount method

10 months agotest: add CI test validating the new varlink interface and more 35074/head
Lennart Poettering [Wed, 6 Nov 2024 22:47:37 +0000 (23:47 +0100)] 
test: add CI test validating the new varlink interface and more

10 months agoask-password: add comment with well-known errors from ask_password_auto()
Lennart Poettering [Thu, 7 Nov 2024 14:07:18 +0000 (15:07 +0100)] 
ask-password: add comment with well-known errors from ask_password_auto()

10 months agoask-password: add Varlink API for querying passwords from the user
Lennart Poettering [Wed, 6 Nov 2024 10:56:46 +0000 (11:56 +0100)] 
ask-password: add Varlink API for querying passwords from the user

This turns systemd-ask-password into a small Varlink service, so that
there's an standard IPC way to ask for a password. It mostly directly
exposes the functionality of the Varlink service.

10 months agoask-password-api: add new "hup_fd" field to AskPasswordReq
Lennart Poettering [Thu, 7 Nov 2024 10:38:23 +0000 (11:38 +0100)] 
ask-password-api: add new "hup_fd" field to AskPasswordReq

This new field allows specification of an fd on which the password
prompt logic will look for POLLHUP events for, and if seen will abort
the query.

The usecase for this is that when we query for a pw on behalf of a
Varlink client we can abort the query automatically if the client dies.

10 months agoask-password-api: move timeout into AskPasswordRequest structure too
Lennart Poettering [Thu, 7 Nov 2024 09:41:56 +0000 (10:41 +0100)] 
ask-password-api: move timeout into AskPasswordRequest structure too

10 months agoask-password-api: move tty_fd into AskPasswordRequest structure, too
Lennart Poettering [Thu, 7 Nov 2024 09:30:34 +0000 (10:30 +0100)] 
ask-password-api: move tty_fd into AskPasswordRequest structure, too

10 months agoask-password-api: move 'flag_file' from function parameter into AskPasswordRequest...
Lennart Poettering [Thu, 7 Nov 2024 09:00:53 +0000 (10:00 +0100)] 
ask-password-api: move 'flag_file' from function parameter into AskPasswordRequest structure

10 months agoask-password-agent: send READY=1 when we established inotify watch
Lennart Poettering [Wed, 6 Nov 2024 22:38:17 +0000 (23:38 +0100)] 
ask-password-agent: send READY=1 when we established inotify watch

10 months agoask-password-agent: optionally read pw to reply from env var
Lennart Poettering [Wed, 6 Nov 2024 22:38:01 +0000 (23:38 +0100)] 
ask-password-agent: optionally read pw to reply from env var

10 months agopcrextend: split out varlink server setup into its own function
Lennart Poettering [Wed, 6 Nov 2024 10:58:56 +0000 (11:58 +0100)] 
pcrextend: split out varlink server setup into its own function

10 months agosd-varlink: expose api to get input/output fd separately
Lennart Poettering [Thu, 7 Nov 2024 10:49:33 +0000 (11:49 +0100)] 
sd-varlink: expose api to get input/output fd separately

10 months agodocs: Update code coverage documentation 35810/head
Daan De Meyer [Thu, 2 Jan 2025 15:25:19 +0000 (16:25 +0100)] 
docs: Update code coverage documentation

10 months agodocs: Use mkosi sandbox in test documentation as well
Daan De Meyer [Thu, 2 Jan 2025 15:17:53 +0000 (16:17 +0100)] 
docs: Use mkosi sandbox in test documentation as well

Same change as in HACKING.md, but for running the integration tests.

10 months agoshared/hibernate-util: drop support for kernels lacking /sys/power/resume_offset 35802/head
Mike Yuan [Thu, 2 Jan 2025 03:32:00 +0000 (04:32 +0100)] 
shared/hibernate-util: drop support for kernels lacking /sys/power/resume_offset

The current fallback path is actually unreliable, given
the kernel *supports* setting the resume offset through
cmdline after all, but just not exposed under /sys/.
For v258 let's drop it hence.

I didn't bump the baseline to 4.17, but merely documented
new requirement in README, because there's certainly more
compat stuff to drop between 4.3 and 4.17, and README is
a useful list for things to kill. We'll get to 5.4 eventually.

10 months agoREADME: document a bunch of new kernel APIs we utilize
Mike Yuan [Thu, 2 Jan 2025 14:44:59 +0000 (15:44 +0100)] 
README: document a bunch of new kernel APIs we utilize

10 months agoshared/blockdev-util: shorten the code a bit
Mike Yuan [Thu, 2 Jan 2025 03:22:46 +0000 (04:22 +0100)] 
shared/blockdev-util: shorten the code a bit

If btrfs_get_block_device_fd() returns 0, ret is already initialized.

10 months agoshared/hibernate-util: handle the case where no swap has available backing dev
Mike Yuan [Thu, 2 Jan 2025 03:17:47 +0000 (04:17 +0100)] 
shared/hibernate-util: handle the case where no swap has available backing dev

This also makes find_suitable_hibernation_device() report
more accurate error (ENOSPC -> ESTALE) if there's
no swap space on the system at all but resume= is set.

Fixes #35798
Replaces #35801

10 months agoshared/hibernate-util: don't attempt to fiemap fd if no backing dev available
Mike Yuan [Thu, 2 Jan 2025 03:13:23 +0000 (04:13 +0100)] 
shared/hibernate-util: don't attempt to fiemap fd if no backing dev available

Prompted by #35798

Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com>
10 months agosystemctl: certainly ignore ENOENT in checking inhibitors
Yu Watanabe [Thu, 2 Jan 2025 12:15:02 +0000 (21:15 +0900)] 
systemctl: certainly ignore ENOENT in checking inhibitors

Fixes a bug caused by 804874d26ac73e0af07c4c5d7165c95372f03f6d.

Follow-up for 084f361b509cbffe7ffd5ab6085469f76f799fe5 and
a1417e5563acb73a0accdc12b3af91e4ec1c7f46.

Note, ERRNO_IS_NEG_DISCONNECT() includes ENONET rather than ENOENT...
So, ENOENT needs to be handled explicitly.

Fixes #35757 and #35806.

10 months agounits/breakpoint-pre-basic.service: explicitly order it before sysroot.mount
Antonio Alvarez Feijoo [Fri, 20 Dec 2024 13:29:05 +0000 (14:29 +0100)] 
units/breakpoint-pre-basic.service: explicitly order it before sysroot.mount

If `rd.systemd.break=pre-mount` is not set during boot, there is no unit that
prevents sysroot.mount from being activated.

10 months agoman/debug-generator: replace "main system" with "host"
Antonio Alvarez Feijoo [Fri, 20 Dec 2024 13:28:36 +0000 (14:28 +0100)] 
man/debug-generator: replace "main system" with "host"

10 months agomkosi: Allow disabling vcs-tag via environment variable
Daan De Meyer [Thu, 2 Jan 2025 12:11:48 +0000 (13:11 +0100)] 
mkosi: Allow disabling vcs-tag via environment variable

10 months agobash-completion/journalctl: list user units when --user is already specified (#35799)
Luca Boccassi [Thu, 2 Jan 2025 11:20:31 +0000 (11:20 +0000)] 
bash-completion/journalctl: list user units when --user is already specified (#35799)

Also, escape the current input before matching listed user units.

Fixes #35794.

10 months agoerrno-list: prefer strerrorname_np() as errno_to_name() provider
Mike Yuan [Tue, 31 Dec 2024 01:46:28 +0000 (02:46 +0100)] 
errno-list: prefer strerrorname_np() as errno_to_name() provider

10 months agobash-completion/journalctl: also escape the current input of user unit 35799/head
Yu Watanabe [Thu, 2 Jan 2025 02:50:38 +0000 (11:50 +0900)] 
bash-completion/journalctl: also escape the current input of user unit

Follow-up for cec82cb943d0fd23dd09309be62c6bcde6b47839.

10 months agobash-completion/journalctl: list user units when --user is already specified
Yu Watanabe [Thu, 2 Jan 2025 02:48:58 +0000 (11:48 +0900)] 
bash-completion/journalctl: list user units when --user is already specified

Follow-up for 52051dd84c45c745ca877d8893be6f71aa27bf97.
Fixes #35794.