]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
10 months agomachine: move io.systemd.Machine.Map* tests into right position 34913/head
Ivan Kruglov [Tue, 17 Dec 2024 18:03:05 +0000 (19:03 +0100)] 
machine: move io.systemd.Machine.Map* tests into right position

10 months agomachine: tests for io.systemd.Machine.{CopyFrom, CopyTo} methods
Ivan Kruglov [Thu, 24 Oct 2024 10:32:08 +0000 (12:32 +0200)] 
machine: tests for io.systemd.Machine.{CopyFrom, CopyTo} methods

10 months agomachine: introduce io.system.Machine.{CopyFrom, CopyTo} methods
Ivan Kruglov [Thu, 24 Oct 2024 10:19:56 +0000 (12:19 +0200)] 
machine: introduce io.system.Machine.{CopyFrom, CopyTo} methods

10 months agomachine: use machine_copy_from_to() in dbus implementation
Ivan Kruglov [Tue, 17 Dec 2024 11:53:28 +0000 (12:53 +0100)] 
machine: use machine_copy_from_to() in dbus implementation

10 months agomachine: introduce machine_copy_from_to() helper
Ivan Kruglov [Tue, 17 Dec 2024 11:25:34 +0000 (12:25 +0100)] 
machine: introduce machine_copy_from_to() helper

10 months agomachine: split operation initialization into two steps
Ivan Kruglov [Tue, 17 Dec 2024 11:24:51 +0000 (12:24 +0100)] 
machine: split operation initialization into two steps

10 months agomachine: adjust operation callback logic for varlink
Ivan Kruglov [Wed, 6 Nov 2024 13:31:29 +0000 (14:31 +0100)] 
machine: adjust operation callback logic for varlink

This is to simplyfy varlink callback. There is no use of this logic atm.
So, no harm.

10 months agosd-varlink: add flag for sd_varlink_server for creating connections w… (#35841)
Yu Watanabe [Mon, 6 Jan 2025 13:13:50 +0000 (22:13 +0900)] 
sd-varlink: add flag for sd_varlink_server for creating connections w… (#35841)

…ith fd passing enabled

Let's add a simple flag that enables fd passing for all connections of a
server. It's much easier to use this than to install a connect handler
which manually enables this for each connection.

10 months ago mkosi: Migrate more deprecated options (#35873)
Daan De Meyer [Mon, 6 Jan 2025 12:42:21 +0000 (13:42 +0100)] 
 mkosi: Migrate more deprecated options  (#35873)

10 months agoCI: add OBS workflow integration to build packages on push to main
Luca Boccassi [Mon, 6 Jan 2025 10:45:21 +0000 (10:45 +0000)] 
CI: add OBS workflow integration to build packages on push to main

When main is updated, packages for Arch/Debian/Ubuntu/SUSE will be built and published
on OBS:

https://download.opensuse.org/repositories/home:/bluca:/systemd/
https://build.opensuse.org/project/show/home:bluca:systemd

10 months agoci: Rename qemu variable to vm 35873/head
Daan De Meyer [Mon, 6 Jan 2025 11:08:33 +0000 (12:08 +0100)] 
ci: Rename qemu variable to vm

10 months agomkosi: Migrate more deprecated options
Daan De Meyer [Mon, 6 Jan 2025 11:07:53 +0000 (12:07 +0100)] 
mkosi: Migrate more deprecated options

10 months agosd-device: fix validation for devices under /sys/firmware/ in sd_device_new_from_subs...
Luca Boccassi [Mon, 6 Jan 2025 11:06:23 +0000 (11:06 +0000)] 
sd-device: fix validation for devices under /sys/firmware/ in sd_device_new_from_subsystem_sysname() (#35863)

Devices under /sys/firmware/ do not have subsystems. Hence, the
validation in sd_device_new_from_subsystem_sysname() ->
device_new_from_path_join() always failed.

Fixes a bug introduced by cd7c71154cd62d3f50c07ce387edd9c20aebd7bc
(v257).
Fixes #35861.

10 months agomkosi: replace deprecated settings and command with new ones
Yu Watanabe [Mon, 6 Jan 2025 07:30:26 +0000 (16:30 +0900)] 
mkosi: replace deprecated settings and command with new ones

Follow-up for c008b703701e676a88e16de4c867b9fc4818070d.

These settings and command were deprecated by the following commit.
https://github.com/systemd/mkosi/commit/ebcd2efa03af5c04de91434634f2e4a956f7e53c

10 months agomachine: several follow-ups for #35066 (#35868)
Daan De Meyer [Mon, 6 Jan 2025 10:59:55 +0000 (11:59 +0100)] 
machine: several follow-ups for #35066 (#35868)

Addresses the post-merge review comments.

10 months agobasic: port various pidfd/pidref helpers to PIDFD_GET_INFO and PIDFD_GET_*_NAMESPACE...
Lennart Poettering [Mon, 6 Jan 2025 10:23:08 +0000 (11:23 +0100)] 
basic: port various pidfd/pidref helpers to PIDFD_GET_INFO and PIDFD_GET_*_NAMESPACE (#35242)

Supersedes #35308 (cherry-picked one commit and replaced the rest)

(I left a few comments that's folded by GitHub. Please make sure to
check them too.)

10 months agomore pidref'ification (#35839)
Lennart Poettering [Mon, 6 Jan 2025 10:21:43 +0000 (11:21 +0100)] 
more pidref'ification (#35839)

This is split out of #35264, but makes a ton of sense on its own.

10 months agomountfsd,networkd,nsresourced: port over to new fd passing varlink server flags 35841/head
Lennart Poettering [Mon, 6 Jan 2025 08:33:50 +0000 (09:33 +0100)] 
mountfsd,networkd,nsresourced: port over to new fd passing varlink server flags

10 months agotty-ask-password-agent: if we're spawning further agents, grant them notify access...
Daan De Meyer [Mon, 6 Jan 2025 09:05:29 +0000 (10:05 +0100)] 
tty-ask-password-agent: if we're spawning further agents, grant them notify access (#35855)

Alternative to #35853

10 months agocgroup-util: add remoteness checks to all cg_pidref_get_xyz() calls 35839/head
Lennart Poettering [Mon, 6 Jan 2025 08:54:13 +0000 (09:54 +0100)] 
cgroup-util: add remoteness checks to all cg_pidref_get_xyz() calls

10 months agosd-login: make use of getpeerpidref() and cg_pidref_get_*()
Lennart Poettering [Tue, 19 Nov 2024 15:37:10 +0000 (16:37 +0100)] 
sd-login: make use of getpeerpidref() and cg_pidref_get_*()

10 months agocgroup-util: add pidref counterparts for cg_pid_get_session() + cg_pid_get_owner_uid()
Lennart Poettering [Tue, 19 Nov 2024 15:35:26 +0000 (16:35 +0100)] 
cgroup-util: add pidref counterparts for cg_pid_get_session() + cg_pid_get_owner_uid()

10 months agosocket-util: introduce getpeerpidref()
Lennart Poettering [Tue, 19 Nov 2024 15:35:48 +0000 (16:35 +0100)] 
socket-util: introduce getpeerpidref()

This combines getpeercred() and getpeerpidfd() and returns a PidRef

10 months agosd-varlink: add flag for sd_varlink_server for creating connections with fd passing...
Lennart Poettering [Wed, 20 Nov 2024 11:57:33 +0000 (12:57 +0100)] 
sd-varlink: add flag for sd_varlink_server for creating connections with fd passing enabled

Let's add a simple flag that enables fd passing for all connections of a
server. It's much easier to use this than to install a connect handler
which manually enables this for each connection.

10 months agomachine: comment source and destination must be absolute 35868/head
Yu Watanabe [Mon, 6 Jan 2025 08:12:26 +0000 (17:12 +0900)] 
machine: comment source and destination must be absolute

Addresses the post-merge review comment:
https://github.com/systemd/systemd/pull/35066#discussion_r1901841247

10 months agomachine: use json_dispatch_const_path() where applicable
Yu Watanabe [Mon, 6 Jan 2025 08:09:18 +0000 (17:09 +0900)] 
machine: use json_dispatch_const_path() where applicable

Follow-up for #35066 and 3866e9ce9d34328460aee5ca01f6f1becfa200eb.

10 months agopackit: Move fmf metadata into upstream (#35700)
Yu Watanabe [Mon, 6 Jan 2025 01:37:56 +0000 (10:37 +0900)] 
packit: Move fmf metadata into upstream (#35700)

This moves https://src.fedoraproject.org/tests/systemd into upstream so
it's one less moving piece that we need to remember.

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 agosd-device: fix validation for devices under /sys/firmware/ in sd_device_new_from_subs... 35863/head
Yu Watanabe [Sat, 4 Jan 2025 18:52:05 +0000 (03:52 +0900)] 
sd-device: fix validation for devices under /sys/firmware/ in sd_device_new_from_subsystem_sysname()

Devices under /sys/firmware/ do not have subsystems. Hence, the
validation in sd_device_new_from_subsystem_sysname() ->
device_new_from_path_join() always failed.

Fixes a bug introduced by cd7c71154cd62d3f50c07ce387edd9c20aebd7bc (v257).
Fixes #35861.

10 months agosd-device: add missing debugging log
Yu Watanabe [Sat, 4 Jan 2025 18:09:29 +0000 (03:09 +0900)] 
sd-device: add missing debugging log

It was unexpectedly dropped by 660087dc9c4a5c610da99e7b6b1772e371eb0a80.

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 agocgroup-util: explain why cg_pidref_get_path() cannot be ported over to pidfd helpers... 35242/head
Mike Yuan [Fri, 29 Nov 2024 16:13:18 +0000 (17:13 +0100)] 
cgroup-util: explain why cg_pidref_get_path() cannot be ported over to pidfd helpers (yet)

See also: https://github.com/systemd/systemd/pull/35242#issuecomment-2506686806

10 months agocgroup-util: introduce generic cg_path_from_cgroupid() helper
Mike Yuan [Tue, 19 Nov 2024 20:13:05 +0000 (21:13 +0100)] 
cgroup-util: introduce generic cg_path_from_cgroupid() helper

Taken from nsresourced/userns-registry.c userns_destroy_cgroup()

10 months agoprocess-util: make pid_is_unwaited() wrapper around pidref version
Mike Yuan [Fri, 29 Nov 2024 15:54:29 +0000 (16:54 +0100)] 
process-util: make pid_is_unwaited() wrapper around pidref version

10 months agoprocess-util: port pidref_get_uid() and pidref_is_my_child() to pidfd helpers
Mike Yuan [Wed, 20 Nov 2024 14:17:30 +0000 (15:17 +0100)] 
process-util: port pidref_get_uid() and pidref_is_my_child() to pidfd helpers

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 agopidfd-util: introduce pidfd_get_{ppid,uid,cgroupid} which goes via PIDFD_GET_INFO too
Mike Yuan [Tue, 19 Nov 2024 19:57:41 +0000 (20:57 +0100)] 
pidfd-util: introduce pidfd_get_{ppid,uid,cgroupid} which goes via PIDFD_GET_INFO too

10 months agopidfd-util: try to translate pidfd -> pid through ioctl(PIDFD_GET_INFO)
Mike Yuan [Tue, 19 Nov 2024 19:51:53 +0000 (20:51 +0100)] 
pidfd-util: try to translate pidfd -> pid through ioctl(PIDFD_GET_INFO)

10 months agonamespace-util: introduce pidref_in_same_namespace()
Mike Yuan [Wed, 27 Nov 2024 23:22:33 +0000 (00:22 +0100)] 
namespace-util: introduce pidref_in_same_namespace()

10 months agoprocess-util: move namespace_get_leader() to namespace-util
Mike Yuan [Thu, 28 Nov 2024 00:21:03 +0000 (01:21 +0100)] 
process-util: move namespace_get_leader() to namespace-util

This allows us to drop the hack for recursive includes.

10 months agovarious: add missing include for namespace-util.h
Mike Yuan [Thu, 28 Nov 2024 14:58:53 +0000 (15:58 +0100)] 
various: add missing include for namespace-util.h

Preparation for later commits for removing inclusion
of namespace-util from process-util.h

10 months agonamespace-util: hook pidref_namespace_open() up with pidfd_get_namespace()
Mike Yuan [Tue, 19 Nov 2024 23:14:32 +0000 (00:14 +0100)] 
namespace-util: hook pidref_namespace_open() up with pidfd_get_namespace()

Supersedes #35308

10 months agonamespace-util: correct assertion in namespace_is_init()
Mike Yuan [Thu, 28 Nov 2024 14:17:34 +0000 (15:17 +0100)] 
namespace-util: correct assertion in namespace_is_init()

Follow-up for 18ead2b03d9df251ab682539648a556ace239dc7

10 months agonamespace-util: modernize fd_is_namespace() and is_our_namespace()
Mike Yuan [Wed, 27 Nov 2024 15:35:11 +0000 (16:35 +0100)] 
namespace-util: modernize fd_is_namespace() and is_our_namespace()

- Make fd_is_namespace() take NamespaceType
- Drop support for kernel without NS_GET_NSTYPE (< 4.11)
- Port is_our_namespace() to namespace_open_by_type()
  (preparation for later commits, where the latter
  would go by pidfd if available, avoiding procfs)

10 months agonamespace-util: refuse remote pidref in pidref_namespace_open()
Yu Watanabe [Fri, 22 Nov 2024 17:29:17 +0000 (02:29 +0900)] 
namespace-util: refuse remote pidref in pidref_namespace_open()

10 months agopidfd-util: introduce helper for obtaining ns fd using PIDFD_GET_*_NAMESPACE directly
Mike Yuan [Tue, 19 Nov 2024 23:14:12 +0000 (00:14 +0100)] 
pidfd-util: introduce helper for obtaining ns fd using PIDFD_GET_*_NAMESPACE directly

10 months agoerrno-util: add ERRNO_IS_IOCTL_NOT_SUPPORTED that checks EINVAL additionally
Mike Yuan [Tue, 19 Nov 2024 22:59:00 +0000 (23:59 +0100)] 
errno-util: add ERRNO_IS_IOCTL_NOT_SUPPORTED that checks EINVAL additionally

10 months agocore/socket: include peer pidfd id in socket service instance if available
Mike Yuan [Mon, 30 Dec 2024 19:22:16 +0000 (20:22 +0100)] 
core/socket: include peer pidfd id in socket service instance if available

10 months agopidref: move generic pidfd_get_inode_id() to pidfd-util
Mike Yuan [Tue, 19 Nov 2024 20:30:47 +0000 (21:30 +0100)] 
pidref: move generic pidfd_get_inode_id() to pidfd-util

Prompted by https://github.com/systemd/systemd/pull/35224/commits/221d6e54c60389f26c2c79dbfa4e83204d2775d7

Also generalize pidfd_check_pidfs() and expose have_pidfs for later use.

10 months agobasic: introduce missing_pidfd.h
Mike Yuan [Tue, 19 Nov 2024 18:56:28 +0000 (19:56 +0100)] 
basic: introduce missing_pidfd.h

10 months agoprocess-util: extract pidfd-related funcs into pidfd-util.[ch]
Mike Yuan [Tue, 19 Nov 2024 19:03:55 +0000 (20:03 +0100)] 
process-util: extract pidfd-related funcs into pidfd-util.[ch]

10 months agotty-ask-password-agent: if we're spawning further agents, grant them notify access 35855/head
Mike Yuan [Sat, 4 Jan 2025 12:31:28 +0000 (13:31 +0100)] 
tty-ask-password-agent: if we're spawning further agents, grant them notify access

Follow-up for 254649d5762540ade590909c70c27af86c7dfdac

Otherwise, systemd-ask-password-console.service times out
being started since the main process never delivers READY=1
notification.

Alternative to #35853

10 months agotty-ask-password-agent: coding style tweaks
Mike Yuan [Sat, 4 Jan 2025 14:11:53 +0000 (15:11 +0100)] 
tty-ask-password-agent: coding style tweaks

10 months agotree-wide: make sigactions static const
Mike Yuan [Sat, 4 Jan 2025 13:49:14 +0000 (14:49 +0100)] 
tree-wide: make sigactions static const

10 months agosignal-util: generalize sigaction_nop_nocldstop
Mike Yuan [Sat, 4 Jan 2025 13:43:07 +0000 (14:43 +0100)] 
signal-util: generalize sigaction_nop_nocldstop

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.