]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
10 months agopackit: Move fmf metadata into upstream 35700/head
Daan De Meyer [Fri, 20 Dec 2024 14:34:13 +0000 (15:34 +0100)] 
packit: Move fmf metadata into upstream

This moves https://src.fedoraproject.org/tests/systemd into upstream
so it's one less moving piece that we need to remember. While we're at
it, do various cleanups as well:

- Remove non-packit logic
- Set NO_BUILD in mkosi.local.conf as it's not picked up from the
  process environment
- Don't set unused environment variables
- Remove workdir logic as we run in an ephemeral VM already
- Drop --verbose from meson test to reduce noise
  from passed tests
- Use mkosi sandbox and drop duplicated deps from metadata file
- Stop running the unit tests as they already run as part of the rpm
  build and as part of the integration tests.
- Various style fixes

10 months agomkosi: Make path exclude more generic
Daan De Meyer [Sun, 5 Jan 2025 22:19:44 +0000 (23:19 +0100)] 
mkosi: Make path exclude more generic

The systemd rpms we try to install in packit have /usr/bin/bash and
/usr/bin/python3 as dependencies which breaks dnf5 because mkosi
doesn't download filelists metadata and
https://bugzilla.redhat.com/show_bug.cgi?id=2263771 is still not fixed
almost a year after being reported.

10 months agomkosi: Update to latest
Daan De Meyer [Fri, 3 Jan 2025 22:25:23 +0000 (23:25 +0100)] 
mkosi: Update to latest

10 months agomkosi: update debian commit reference
Luca Boccassi [Sat, 4 Jan 2025 15:24:57 +0000 (15:24 +0000)] 
mkosi: update debian commit reference

7dc7ee8007 d/rules: drop duplicated config flag
2f417d66d1 Install new files for upstream CI

10 months agoanalyze: fix URLs to DeviceAllow=, IPAddressDeny=
Chris Hofstaedtler [Sat, 4 Jan 2025 13:48:48 +0000 (14:48 +0100)] 
analyze: fix URLs to DeviceAllow=, IPAddressDeny=

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
10 months agofirewall-util: allow to override the table and map names through env var
Yu Watanabe [Fri, 20 Dec 2024 06:28:30 +0000 (15:28 +0900)] 
firewall-util: allow to override the table and map names through env var

Then, use test specific names to make the test not conflict with
networkd.

Hopefully fixes #35526.

10 months agohostname: read hardware serial from device tree (#35797)
Yu Watanabe [Sat, 4 Jan 2025 16:46:58 +0000 (01:46 +0900)] 
hostname: read hardware serial from device tree (#35797)

Closes #35792.

10 months agoptyfwd: fix typo
Yu Watanabe [Sat, 4 Jan 2025 14:46:38 +0000 (23:46 +0900)] 
ptyfwd: fix typo

Follow-up for 8224a48da94ed8bab706f04a35dd97d488c09539.

10 months agosd-varlink: introduce sd_varlink_get_current_method()
Yu Watanabe [Sat, 4 Jan 2025 12:18:42 +0000 (21:18 +0900)] 
sd-varlink: introduce sd_varlink_get_current_method()

10 months agovarlink: add comments for io.systemd.service interface
Yu Watanabe [Sat, 4 Jan 2025 12:51:09 +0000 (21:51 +0900)] 
varlink: add comments for io.systemd.service interface

10 months agoudev: split on_ctrl_msg() into small pieces (#35736)
Yu Watanabe [Sat, 4 Jan 2025 14:17:17 +0000 (23:17 +0900)] 
udev: split on_ctrl_msg() into small pieces (#35736)

10 months agovarlink: several cleanups for io.systemd.service interface (#35733)
Yu Watanabe [Sat, 4 Jan 2025 14:17:03 +0000 (23:17 +0900)] 
varlink: several cleanups for io.systemd.service interface (#35733)

10 months agohostname: also read serial number from device tree 35797/head
Yu Watanabe [Thu, 2 Jan 2025 02:01:25 +0000 (11:01 +0900)] 
hostname: also read serial number from device tree

This makes hostnamed try to read hardware serial number from
/proc/device-tree/serial-number.

Closes #35792.

10 months agohostname: cache sd-device object for DMI
Yu Watanabe [Thu, 2 Jan 2025 01:47:57 +0000 (10:47 +0900)] 
hostname: cache sd-device object for DMI

Also, always check if the obtained string is safe for passing through
DBus.
Just refactoring and preparation for later change.

10 months agomkosi: update debian commit reference
Luca Boccassi [Sat, 4 Jan 2025 12:04:02 +0000 (12:04 +0000)] 
mkosi: update debian commit reference

5d185f7901 Install new files for upstream CI
c6484e14fc Update changelog for 257.1-7 release
543c1e6a42 d/t/tests-in-lxd: more fixes for debci compatibility
a7d4a7ffa3 Add missing d/copyright file to signed template packages
ab48efa495 Install new files for upstream CI
d0cae6d06c Update changelog for 257.1-6 release
2fd23ffaaa Drop build dependency on libxen-dev on armhf, no longer available
35fbac92a5 d/t/upstream: update mkosi setting name
4d9862709e d/t/tests-in-lxd: drop auto-apt-proxy.conf from container
cf133a8d32 Update changelog for 257.1-5 release
77ec315ec5 d/t/upstream: switch from btrfs to ext4 and use nspawn again
9c57f51fb8 d/t/upstream: do not mask machined and instead use mkosi workaround
eb8b91d98b d/t/upstream: do not use --verbose with 'meson test'
21c65b7e22 d/t/tests-in-lxd: auto-apt-proxy is in universe in Ubuntu
081a78884b d/t/tests-in-lxd: install auto-apt-proxy in the nested container
faa014a64e Update changelog for 257.1-4 release
4a48235928 Backport patch to workaround issue in new mdadm
005390f039 d/t/upstream: mask systemd-machined
f7c86d8ec3 d/t/upstream: disable homed/userdbd in the test runner
a1c30e55e0 d/t/upstream: do not use nspawn for tests
9bad1d3021 d/t/upstream: decrease parallelism to nproc - 1
7d1d583d7b Update changelog for 257.1-3 release
dfe5996032 autopkgtest: mark tests-in-lxd as flaky
331567b13d d/t/upstream: disable ToolsTree= in mkosi config
04af5d8604 Update changelog for 257.1-2 release
2e58f0092c d/t/tests-in-lxd: use a single autopkgtest invocation
4b608de1d2 d/t/tests-in-lxd: prefer $AUTOPKGTEST_TMP to manual discovery
fb4f3e4272 d/t/tests-in-lxd: do not fail if /etc/apt/sources.list.d/autopkgtest.list does not exist
385bbd0147 d/t/tests-in-lxd: set -x to get more logs
ab678ff879 d/t/tests-in-lxd: quote variables to fix shellcheck warning
0d0eb96f16 d/t/tests-in-lxd: workaround broken os-release in sid
916a518d8e d/t/tests-in-lxd: use correct lxc image for debian
97deb28f99 Update changelog for 257.1-1 release
6276567a1d Install systemd-creds bash completion
084248775c Drop patches, merged upstream
c4aa4ac6bd Update upstream source from tag 'upstream/257.1'
dffde7eae8 d/watch: restrict to v257.x series
3c5143991c d/t/tests-in-lxd: fix autopkgtest source dir
5626a78ad1 systemd-ukify: recommend python3-cryptography
ca5fdf7bc5 d/t/control: move tests-in-lxd above upstream suite
71c3f1014c d/systemd-resolved.postinst: copy existing /etc/resolv.conf on new installs
6ca4f4c1e5 d/control: make systemd-sysv Depends: on matching version of systemd
eae57033c2 debian/control: add Breaks: systemd (<< ${binary:Version}) for udev
408cc1872c debian/systemd.postinst: Skip daemon-reexec and try-restarts during shutdown
6b3a01118b debian/tests/boot-and-services: drop test_no_failed
5a333eef8c d/t/tests-in-lxd: run some tests under LXD
882d221400 d/t/upstream: fix mkosi syntax warnings

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 agovarlink: invert uid check to reduce call of getuid() 35733/head
Yu Watanabe [Sat, 21 Dec 2024 16:34:04 +0000 (01:34 +0900)] 
varlink: invert uid check to reduce call of getuid()

10 months agosd-json: introduce json_dispatch_log_level()
Yu Watanabe [Sat, 4 Jan 2025 04:57:30 +0000 (13:57 +0900)] 
sd-json: introduce json_dispatch_log_level()

Then, use it in io.systemd.service.SetLogLevel method.

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