]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
5 months agocore: break line after sd_json_buildo( in varlink-manager.c 37432/head
Ivan Kruglov [Mon, 26 May 2025 14:56:29 +0000 (07:56 -0700)] 
core: break line after sd_json_buildo( in varlink-manager.c

5 months agotest: simple tests for io.systemd.Unit varlink interface
Ivan Kruglov [Mon, 26 May 2025 10:14:28 +0000 (03:14 -0700)] 
test: simple tests for io.systemd.Unit varlink interface

5 months agotest: quote entire path to socket in io.systemd.Manager tests
Ivan Kruglov [Mon, 26 May 2025 10:13:55 +0000 (03:13 -0700)] 
test: quote entire path to socket in io.systemd.Manager tests

5 months agocore: add basic lookup by name/pidref in io.systemd.Unit.List
Ivan Kruglov [Thu, 15 May 2025 10:04:28 +0000 (03:04 -0700)] 
core: add basic lookup by name/pidref in io.systemd.Unit.List

5 months agojson: add unit tests for json_dispatch_const_unit_name()
Ivan Kruglov [Mon, 26 May 2025 10:02:59 +0000 (03:02 -0700)] 
json: add unit tests for json_dispatch_const_unit_name()

5 months agojson: json_dispatch_const_unit_name()
Ivan Kruglov [Fri, 23 May 2025 13:57:02 +0000 (06:57 -0700)] 
json: json_dispatch_const_unit_name()

5 months agocore: Unit Runtime in io.systemd.Unit.List method
Ivan Kruglov [Tue, 13 May 2025 18:40:49 +0000 (11:40 -0700)] 
core: Unit Runtime in io.systemd.Unit.List method

5 months agocore: skeleton for io.system.Unit interface and io.systemd.Unit.List method
Ivan Kruglov [Fri, 15 Nov 2024 08:50:28 +0000 (09:50 +0100)] 
core: skeleton for io.system.Unit interface and io.systemd.Unit.List method

5 months agofs-util: prefer linkat(AT_EMPTY_PATH) over /proc/self/fd/ shenanigans
Mike Yuan [Tue, 27 May 2025 00:10:07 +0000 (02:10 +0200)] 
fs-util: prefer linkat(AT_EMPTY_PATH) over /proc/self/fd/ shenanigans

The permission check got relaxed in kernel v6.10, so let's
switch the fallback order around.

This also effectively reverts 94d94f0c0a7d28816c815dc9770cc659769fe980,
as I just realized that link_fd() involves multiple paths and
we can't tell which one tripped ENOENT...

5 months agocgroup-util: drop handcrafted cg_is_empty(), always check cgroup.events populated...
Yu Watanabe [Tue, 27 May 2025 01:41:56 +0000 (10:41 +0900)] 
cgroup-util: drop handcrafted cg_is_empty(), always check cgroup.events populated field (#37624)

5 months agohomed: generate proper error if we cannot create mountpoint for homedir
Lennart Poettering [Fri, 23 May 2025 10:15:45 +0000 (12:15 +0200)] 
homed: generate proper error if we cannot create mountpoint for homedir

Let's make this easier to debug. (When this failed for me due to disk
full it took me a bit to figure out what was going on.)

5 months agoudevadm-info: update error messages (#37619)
Yu Watanabe [Tue, 27 May 2025 01:08:24 +0000 (10:08 +0900)] 
udevadm-info: update error messages (#37619)

5 months agocgroup-util: remove now unused cg_read_event() 37624/head
Mike Yuan [Mon, 26 May 2025 20:32:12 +0000 (22:32 +0200)] 
cgroup-util: remove now unused cg_read_event()

cg_get_keyed_attribute() is a more generic version of this,
and cg_is_empty_recursive() was the only user of this function,
which got converted in the previous commit.

5 months agocgroup-util: drop handcrafted cg_is_empty(), always check cgroup.events populated...
Mike Yuan [Mon, 26 May 2025 20:27:26 +0000 (22:27 +0200)] 
cgroup-util: drop handcrafted cg_is_empty(), always check cgroup.events populated field

This effectively renames cg_is_empty_recursive() to cg_is_empty().
Note that all existing code calls the former and not the latter,
hence with cgv1 support being dropped it's trivial to consult
cgroup.events directly for populated state everywhere.

Additionally, use more generic cg_get_keyed_attribute() helper
rather than cg_read_event().

5 months agosrc/core/manager.c: log preset activity on first boot
Dusty Mabe [Fri, 23 May 2025 13:18:12 +0000 (09:18 -0400)] 
src/core/manager.c: log preset activity on first boot

This gives us a little more information about what units were enabled
or disabled on that first boot and will be useful for OS developers
tracking down the source of unit state.

An example with this enabled looks like:

```
NET: Registered PF_VSOCK protocol family
systemd[1]: Applying preset policy.
systemd[1]: Unit /etc/systemd/system/dnsmasq.service is masked, ignoring.
systemd[1]: Unit /etc/systemd/system/systemd-repart.service is masked, ignoring.
systemd[1]: Removed '/etc/systemd/system/sockets.target.wants/systemd-resolved-monitor.socket'.
systemd[1]: Removed '/etc/systemd/system/sockets.target.wants/systemd-resolved-varlink.socket'.
systemd[1]: Created symlink '/etc/systemd/system/multi-user.target.wants/var-mnt-workdir.mount' → '/etc/systemd/system/var-mnt-workdir.mount'.
systemd[1]: Created symlink '/etc/systemd/system/multi-user.target.wants/var-mnt-workdir\x2dtmp.mount' → '/etc/systemd/system/var-mnt-workdir\x2dtmp.mount'.
systemd[1]: Created symlink '/etc/systemd/system/afterburn-sshkeys.target.requires/afterburn-sshkeys@core.service' → '/usr/lib/systemd/system/afterburn-sshkeys@.service'.
systemd[1]: Created symlink '/etc/systemd/system/sockets.target.wants/systemd-resolved-varlink.socket' → '/usr/lib/systemd/system/systemd-resolved-varlink.socket'.
systemd[1]: Created symlink '/etc/systemd/system/sockets.target.wants/systemd-resolved-monitor.socket' → '/usr/lib/systemd/system/systemd-resolved-monitor.socket'.
systemd[1]: Populated /etc with preset unit settings.
```

Considering it only happens on first boot and not on every boot I think
the extra information is worth the extra verbosity in the logs just for
that boot.

5 months agopolkit: reword 'Interactive authentication required' error
Lennart Poettering [Fri, 23 May 2025 20:05:15 +0000 (22:05 +0200)] 
polkit: reword 'Interactive authentication required' error

I guess the current wording of "Interactive authentication required." is
hard to grok for many users. Let's try to reword this, and say
explicitly:

1. That this is a form of "access denied" error
2. That interactive auth could remedy this
3. But that the client disabled interactive auth

I think these are the three primary elements the error msg needs to
convey. I tried to distill this in a short error string with this.

Fixes: #2081
5 months agocore/cgroup: CGRuntime.cgroup_path indicates whether the cg is still alive
Mike Yuan [Mon, 26 May 2025 20:46:17 +0000 (22:46 +0200)] 
core/cgroup: CGRuntime.cgroup_path indicates whether the cg is still alive

so drop redundant checks in attr getters. Memory and IO accounting
functions already follow this pattern.

5 months agovarlinkctl: if returned error is an errno, print it as one in log message
Lennart Poettering [Mon, 26 May 2025 11:19:43 +0000 (13:19 +0200)] 
varlinkctl: if returned error is an errno, print it as one in log message

5 months agohwdb: make Saitek PLC Pro Flight Rudder Pedals a joystick (#37601)
tuxmainy [Mon, 26 May 2025 20:50:04 +0000 (20:50 +0000)] 
hwdb: make Saitek PLC Pro Flight Rudder Pedals a joystick (#37601)

Fuzzy logic on joystick vs. advanced keyboard detection thinks the
rudders are a keyboard. Adding this forces udev to use this device as
joystick.

```
# udevadm info /dev/input/by-id/usb-Saitek_Saitek_Pro_Flight_Rudder_Pedals-event-joystick
P: /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:06A3:0763.000D/input/input22/event3
M: event3
R: 3
U: input
D: c 13:67
N: input/event3
L: 0
S: input/by-id/usb-Saitek_Saitek_Pro_Flight_Rudder_Pedals-event-joystick
S: input/by-path/pci-0000:00:14.0-usbv2-0:3:1.0-event-joystick
S: input/by-path/pci-0000:00:14.0-usb-0:3:1.0-event-joystick
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:06A3:0763.000D/input/input22/event3
E: DEVNAME=/dev/input/event3
E: MAJOR=13
E: MINOR=67
E: SUBSYSTEM=input
E: USEC_INITIALIZED=10981053700
E: ID_INPUT=1
E: ID_INPUT_JOYSTICK=1
E: ID_BUS=usb
E: ID_MODEL=Saitek_Pro_Flight_Rudder_Pedals
E: ID_MODEL_ENC=Saitek\x20Pro\x20Flight\x20Rudder\x20Pedals
E: ID_MODEL_ID=0763
E: ID_SERIAL=Saitek_Saitek_Pro_Flight_Rudder_Pedals
E: ID_VENDOR=Saitek
E: ID_VENDOR_ENC=Saitek
E: ID_VENDOR_ID=06a3
E: ID_REVISION=0101
E: ID_TYPE=hid
E: ID_USB_MODEL=Saitek_Pro_Flight_Rudder_Pedals
E: ID_USB_MODEL_ENC=Saitek\x20Pro\x20Flight\x20Rudder\x20Pedals
E: ID_USB_MODEL_ID=0763
E: ID_USB_SERIAL=Saitek_Saitek_Pro_Flight_Rudder_Pedals
E: ID_USB_VENDOR=Saitek
E: ID_USB_VENDOR_ENC=Saitek
E: ID_USB_VENDOR_ID=06a3
E: ID_USB_REVISION=0101
E: ID_USB_TYPE=hid
E: ID_USB_INTERFACES=:030000:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=usbhid
E: ID_PATH_WITH_USB_REVISION=pci-0000:00:14.0-usbv2-0:3:1.0
E: ID_PATH=pci-0000:00:14.0-usb-0:3:1.0
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_3_1_0
E: ID_FOR_SEAT=input-pci-0000_00_14_0-usb-0_3_1_0
E: LIBINPUT_DEVICE_GROUP=3/6a3/763:usb-0000:00:14.0-3
E: DEVLINKS=/dev/input/by-id/usb-Saitek_Saitek_Pro_Flight_Rudder_Pedals-event-joystick /dev/input/by-path/pci-0000:00:14.0-usbv2-0:3:1.0-event-joystick /dev/input/by-path/pci-0000:00:14.>
E: TAGS=:seat:uaccess:
E: CURRENT_TAGS=:seat:uaccess:
```

```
# lsusb |fgrep Sait
Bus 001 Device 013: ID 06a3:0763 Saitek PLC Pro Flight Rudder Pedals
```

Closes #34642.

5 months agotree-wide: Handle EINVAL as not supported for chattr_xxx()
Daan De Meyer [Mon, 26 May 2025 14:11:06 +0000 (16:11 +0200)] 
tree-wide: Handle EINVAL as not supported for chattr_xxx()

F2FS returns EINVAL from FS_IOC_SETFLAGS when trying to set
FS_NOCOW_FL. Let's handle this by treating EINVAL as not supported.
While we're at it, make sure we use ERRNO_IS_IOCTL_NOT_SUPPORTED()
across the tree instead of ERRNO_IS_NOT_SUPPORTED() when calling any
of the chattr_xxx() functions.

Fixes #37593

5 months agosocket-util: Move getsockopt_int() to implementation file
Daan De Meyer [Mon, 26 May 2025 14:20:16 +0000 (16:20 +0200)] 
socket-util: Move getsockopt_int() to implementation file

And switch back to negative_errno() at the same time.

5 months agomachinectl: fix indentation of status output field
Lennart Poettering [Fri, 23 May 2025 13:32:35 +0000 (15:32 +0200)] 
machinectl: fix indentation of status output field

One field is differently aligned then the others in the "status" output.
Fix that.

5 months agoudevadm-info: make the error messages slightly more consistent 37619/head
Frantisek Sumsal [Mon, 26 May 2025 14:52:33 +0000 (16:52 +0200)] 
udevadm-info: make the error messages slightly more consistent

At least across the udevadm-info.c file. No functional changes.

5 months agoudevadm-info: print the original input on error
Frantisek Sumsal [Mon, 26 May 2025 14:44:13 +0000 (16:44 +0200)] 
udevadm-info: print the original input on error

Print the original input value on error instead of the consumed string
(which will be empty).

Previously:
$ udevadm info /dev/block/251:0 -e --attr-match='foo=\'
Failed to parse key/value pair : Invalid argument
$ udevadm info /dev/block/251:0 -e --attr-match='foo'
Missing '=' in key/value pair (null).

Now:
$ build/udevadm info /dev/block/251:0 -e --attr-match='foo=\'
Failed to parse key/value pair foo=\: Invalid argument

(The second scenario can't be hit anymore since
d89b3004da54228eb5ab2f3326a773a6e97924b9 due to an extra check before
calling parse_key_value_argument().)

5 months agoupdate TODO
Lennart Poettering [Mon, 26 May 2025 11:46:10 +0000 (13:46 +0200)] 
update TODO

5 months agounits: enable watchdog notifications for vmspawn
Lennart Poettering [Fri, 23 May 2025 13:45:00 +0000 (15:45 +0200)] 
units: enable watchdog notifications for vmspawn

nspawn supports it and enables it. Let's do this for vmspawn too. It
already supports it in code. Let's make it also work in the unit file.

5 months agotree-wide: Clean up more includes
Daan De Meyer [Fri, 23 May 2025 10:15:45 +0000 (12:15 +0200)] 
tree-wide: Clean up more includes

5 months agobasic + fundamental: Clean up includes (#37595)
Daan De Meyer [Mon, 26 May 2025 07:15:30 +0000 (09:15 +0200)] 
basic + fundamental: Clean up includes (#37595)

5 months agobasic + fundamental: Clean up includes 37595/head
Daan De Meyer [Thu, 22 May 2025 14:08:26 +0000 (16:08 +0200)] 
basic + fundamental: Clean up includes

Split out of #37344.

5 months agologin-util: Mark session_id_valid() as pure
Daan De Meyer [Sun, 25 May 2025 08:05:47 +0000 (10:05 +0200)] 
login-util: Mark session_id_valid() as pure

5 months agobasic: Move userns_supported() to namespace-util.h
Daan De Meyer [Sun, 25 May 2025 08:00:54 +0000 (10:00 +0200)] 
basic: Move userns_supported() to namespace-util.h

5 months agostrv: Drop unnecessary macros
Daan De Meyer [Sun, 25 May 2025 07:58:09 +0000 (09:58 +0200)] 
strv: Drop unnecessary macros

5 months agobasic: Move LogRatelimit struct to log-ratelimit.h as well
Daan De Meyer [Sun, 25 May 2025 06:28:13 +0000 (08:28 +0200)] 
basic: Move LogRatelimit struct to log-ratelimit.h as well

5 months agodocs: add man pages for sd_device_enumerator_[new,ref,unref,unrefp] (#37586)
Shubhendra Kushwaha [Sat, 24 May 2025 20:01:27 +0000 (01:31 +0530)] 
docs: add man pages for sd_device_enumerator_[new,ref,unref,unrefp] (#37586)

For #20929.

5 months agoVarious cleanups (#37597)
Daan De Meyer [Sat, 24 May 2025 19:48:04 +0000 (21:48 +0200)] 
Various cleanups (#37597)

5 months agoTwo follow ups for #37591 (#37594)
Yu Watanabe [Sat, 24 May 2025 19:22:42 +0000 (04:22 +0900)] 
Two follow ups for #37591 (#37594)

5 months agoclangd: Enable UnusedIncludes feature again 37597/head
Daan De Meyer [Fri, 23 May 2025 11:54:46 +0000 (13:54 +0200)] 
clangd: Enable UnusedIncludes feature again

Now that the entire free doesn't trigger any clang unused include
violations anymore, let's re-enable the clangd option as it's much
more useful now that the tree is clean.

5 months agoclang-tidy: Skip public headers
Daan De Meyer [Fri, 23 May 2025 11:03:57 +0000 (13:03 +0200)] 
clang-tidy: Skip public headers

We're very limited in our ability to change these due to backwards
compat, so let's skip them from analysis since we won't be able to
fix the errors anyway.

5 months agoci: Setup clang-tidy meson env with extra options
Daan De Meyer [Wed, 21 May 2025 10:55:35 +0000 (12:55 +0200)] 
ci: Setup clang-tidy meson env with extra options

We want the relevant code to be compiled so that it can be analyzed
by clang-tidy.

5 months agocore: Add missing bpf-dlopen.h includes to bpf skeleton headers
Daan De Meyer [Fri, 23 May 2025 11:36:55 +0000 (13:36 +0200)] 
core: Add missing bpf-dlopen.h includes to bpf skeleton headers

5 months agofundamental: Move declaration of free() to macro-fundamental.h
Daan De Meyer [Fri, 23 May 2025 11:32:52 +0000 (13:32 +0200)] 
fundamental: Move declaration of free() to macro-fundamental.h

Let's put it together with the macro that needs it (mfree()). Also,
get rid of the unnecessary <stdlib.h> include in iovec-util-fundamental.h.

5 months agogenerate-sym-test: Only include required headers
Daan De Meyer [Fri, 23 May 2025 09:27:31 +0000 (11:27 +0200)] 
generate-sym-test: Only include required headers

If we don't use any symbols from a header, let's not include it.

5 months agonetlink-internal: Make message_get_serial() static inline again 37594/head
Daan De Meyer [Sat, 24 May 2025 18:44:32 +0000 (20:44 +0200)] 
netlink-internal: Make message_get_serial() static inline again

There was no need to move this function to the implementation file,
so let's make it static inline again.

Follow up for #37591.

5 months agoforward: Move ChaseFlags forward declaration to forward.h
Daan De Meyer [Sat, 24 May 2025 18:44:12 +0000 (20:44 +0200)] 
forward: Move ChaseFlags forward declaration to forward.h

5 months agolibsystemd: Clean up includes
Daan De Meyer [Thu, 22 May 2025 09:27:45 +0000 (11:27 +0200)] 
libsystemd: Clean up includes

For libsystemd's headers, the changes made depend on whether the
header is installed or not. For installed headers, the only change
made is that commonly included headers were moved to _sd-common.h.
For these headers, there should be no noticeable change in behavior
when including them. For non-installed headers, includes were replaced
with forward declarations where possible as usual.

Split out of #37344.

5 months agobasic: Move ratelimit logging functions to log-ratelimit.h
Daan De Meyer [Sat, 24 May 2025 17:55:42 +0000 (19:55 +0200)] 
basic: Move ratelimit logging functions to log-ratelimit.h

5 months agoshared: Followups for #37575
Daan De Meyer [Sat, 24 May 2025 17:49:08 +0000 (19:49 +0200)] 
shared: Followups for #37575

5 months agolibudev: Clean up includes
Daan De Meyer [Thu, 22 May 2025 09:19:15 +0000 (11:19 +0200)] 
libudev: Clean up includes

Split out of #37344.

5 months agoBugprone argument comment 7 (#37556)
Yu Watanabe [Sat, 24 May 2025 16:53:13 +0000 (01:53 +0900)] 
Bugprone argument comment 7 (#37556)

Follow up from https://github.com/systemd/systemd/pull/37507

5 months agotreewide: correct argument name to user_icon / askpw_icon 37556/head
Jelle van der Waa [Thu, 22 May 2025 08:43:55 +0000 (10:43 +0200)] 
treewide: correct argument name to user_icon / askpw_icon

5 months agokillall: correct argument comment
Jelle van der Waa [Wed, 21 May 2025 18:49:19 +0000 (20:49 +0200)] 
killall: correct argument comment

5 months agovalidatefs: correct argument comments
Jelle van der Waa [Wed, 21 May 2025 18:44:59 +0000 (20:44 +0200)] 
validatefs: correct argument comments

These functions come from util-linux and can't be renamed.

5 months agosd-bus: rename 'add_callback' -> 'install_callback'
Jelle van der Waa [Wed, 21 May 2025 18:34:03 +0000 (20:34 +0200)] 
sd-bus: rename 'add_callback' -> 'install_callback'

Throughout the whole codebase it is called install_callback.

5 months agotpm2-util: rename 'policy' -> 'pcrlock_policy'
Jelle van der Waa [Wed, 21 May 2025 18:22:10 +0000 (20:22 +0200)] 
tpm2-util: rename 'policy' -> 'pcrlock_policy'

Follow the used argument comment naming.

5 months agocreds-util: correct argument comment
Jelle van der Waa [Wed, 21 May 2025 18:19:12 +0000 (20:19 +0200)] 
creds-util: correct argument comment

5 months agopcrlock: correct argument comment
Jelle van der Waa [Wed, 21 May 2025 18:16:05 +0000 (20:16 +0200)] 
pcrlock: correct argument comment

5 months agocgroup-util: rename 'kill_log' -> 'log_kill'
Jelle van der Waa [Sat, 24 May 2025 15:06:04 +0000 (17:06 +0200)] 
cgroup-util: rename 'kill_log' -> 'log_kill'

Rename according to the implementation.

5 months agocgroup-util: rename 's' -> 'killed_pids'
Jelle van der Waa [Wed, 21 May 2025 18:04:55 +0000 (20:04 +0200)] 
cgroup-util: rename 's' -> 'killed_pids'

5 months agomachine-id-setup: correct argument comments
Jelle van der Waa [Wed, 21 May 2025 18:02:32 +0000 (20:02 +0200)] 
machine-id-setup: correct argument comments

5 months agodissect-image: rename 'dest' -> 'where'
Jelle van der Waa [Wed, 21 May 2025 17:52:11 +0000 (19:52 +0200)] 
dissect-image: rename 'dest' -> 'where'

Consistently name dissect_image_mount*.

5 months agosd-bus: prefix return arguments with 'ret_' for sd_bus_message_peek_type
Jelle van der Waa [Wed, 21 May 2025 17:28:58 +0000 (19:28 +0200)] 
sd-bus: prefix return arguments with 'ret_' for sd_bus_message_peek_type

5 months agofuzz: correct argument comment
Jelle van der Waa [Wed, 21 May 2025 17:23:20 +0000 (19:23 +0200)] 
fuzz: correct argument comment

5 months agoshared: Clean up includes
Daan De Meyer [Thu, 22 May 2025 09:17:20 +0000 (11:17 +0200)] 
shared: Clean up includes

Split out of #37344.

5 months agolinux: update kernel headers from v6.15-rc7
Yu Watanabe [Fri, 23 May 2025 18:03:57 +0000 (03:03 +0900)] 
linux: update kernel headers from v6.15-rc7

5 months agohwdb: merge entries for Ettus Research B200
Yu Watanabe [Fri, 23 May 2025 15:13:02 +0000 (00:13 +0900)] 
hwdb: merge entries for Ettus Research B200

Follow-up for 9dad00ef94e6207642f04496c56a4123a396530c.

5 months agohostname: two trivial cleanups (#37583)
Yu Watanabe [Fri, 23 May 2025 16:56:25 +0000 (01:56 +0900)] 
hostname: two trivial cleanups (#37583)

5 months agocore: renames in io.systemd.Manager (#37582)
Mike Yuan [Fri, 23 May 2025 15:46:26 +0000 (17:46 +0200)] 
core: renames in io.systemd.Manager (#37582)

1. rename sources to follow `core/varlink-*` patter per @YHNdnzj's
comment in
https://github.com/systemd/systemd/pull/35098#issuecomment-2876509919
2. camelCase Context/Runtime in varlink spec. Varlink fields are
camelCase unless well defined config names.

5 months agologinctl,machinectl: use LESS_BY() where appropriate
Lennart Poettering [Fri, 23 May 2025 07:24:24 +0000 (09:24 +0200)] 
loginctl,machinectl: use LESS_BY() where appropriate

And while we are at it, add a lower bound of the display output to 10
for all three cases, because it's pointless outputting someting with
less space.

5 months agopath-util: add flavour of path_startswith() that leaves a leading slash in place...
Yu Watanabe [Fri, 23 May 2025 15:20:40 +0000 (00:20 +0900)] 
path-util: add flavour of path_startswith() that leaves a leading slash in place (#37572)

5 months agohwdb: add RTL-SDR devices
AsciiWolf [Fri, 23 May 2025 12:28:16 +0000 (14:28 +0200)] 
hwdb: add RTL-SDR devices

5 months agohostname: use FOREACH_ARGUMENT() at one more place 37583/head
Yu Watanabe [Fri, 23 May 2025 14:24:27 +0000 (23:24 +0900)] 
hostname: use FOREACH_ARGUMENT() at one more place

Follow-up for 29a352e8c14c51983ba661cb5f4ce51e2bc8664b.

5 months agohostname: use proper type
Yu Watanabe [Fri, 23 May 2025 14:19:40 +0000 (23:19 +0900)] 
hostname: use proper type

5 months agohostname: add hardware family, sku and version (#36956)
Yu Watanabe [Fri, 23 May 2025 14:17:01 +0000 (23:17 +0900)] 
hostname: add hardware family, sku and version (#36956)

Add support for the hardware family, SKU (Stock-Keeping Unit) and
version. The values are read from the file /etc/machine-info or DMI as
fallback.

The entries are useful to provide an unified interface to collect detail
hardware information. The /etc/machine-info entries enable embedded
devices without UEFI support to provide the information via a common
interface.

Fixes: #31134
5 months agocore: lowercase Context/Runtime 37582/head
Ivan Kruglov [Fri, 23 May 2025 13:32:47 +0000 (06:32 -0700)] 
core: lowercase Context/Runtime

Varlink fields are camelCase unless well defined config names.

5 months agocore: manager-varlink.{c,h} -> varlink-manager.{c,h}
Ivan Kruglov [Wed, 14 May 2025 09:45:15 +0000 (02:45 -0700)] 
core: manager-varlink.{c,h} -> varlink-manager.{c,h}

5 months agohwdb: add Ettus Research SDR devices
AsciiWolf [Thu, 22 May 2025 11:04:07 +0000 (13:04 +0200)] 
hwdb: add Ettus Research SDR devices

5 months agoboot: do not stop parsing profiles if .cmdline is missing
Luca Boccassi [Thu, 22 May 2025 21:38:11 +0000 (22:38 +0100)] 
boot: do not stop parsing profiles if .cmdline is missing

When profiles were added with a new interation this was left as
a return statement instead of a continue

Follow-up for 382e4da4a5b25ad0c225b4a8092ed24a44c84e18

5 months agopath-util: invert PATH_STARTSWITH_ACCEPT_DOT_DOT flag 37572/head
Lennart Poettering [Fri, 23 May 2025 04:45:40 +0000 (06:45 +0200)] 
path-util: invert PATH_STARTSWITH_ACCEPT_DOT_DOT flag

As requested: https://github.com/systemd/systemd/pull/37572#pullrequestreview-2861928094

5 months agocgroup: port some code over to path_startswith_full()
Lennart Poettering [Thu, 22 May 2025 16:35:25 +0000 (18:35 +0200)] 
cgroup: port some code over to path_startswith_full()

5 months agopath-util: add flavour of path_startswith() that leaves a leading slash in place
Lennart Poettering [Mon, 19 May 2025 10:58:52 +0000 (12:58 +0200)] 
path-util: add flavour of path_startswith() that leaves a leading slash in place

5 months agotests: fix TEST-74-AUX-UTILS.varlinkctl.sh (#37562)
Ivan Kruglov [Thu, 22 May 2025 14:05:10 +0000 (07:05 -0700)] 
tests: fix TEST-74-AUX-UTILS.varlinkctl.sh (#37562)

per Daan's explanation:
other subtests running as testuser apparently use systemd-run --user
--machine testuser@.host which turns user tracking in logind into "by
pin" mode. when the last pinning session exits it terminates the user.

5 months agoMore header cleanups (#37571)
Daan De Meyer [Thu, 22 May 2025 19:49:14 +0000 (21:49 +0200)] 
More header cleanups (#37571)

Split out of #37344

5 months agotree-wide: Clean up includes 37571/head
Daan De Meyer [Thu, 22 May 2025 11:40:43 +0000 (13:40 +0200)] 
tree-wide: Clean up includes

Preparation for cleaning up includes in src/shared.

5 months agomeson: Make sure <sys/socket.h> is included in af-from-name.gperf
Daan De Meyer [Thu, 22 May 2025 14:07:33 +0000 (16:07 +0200)] 
meson: Make sure <sys/socket.h> is included in af-from-name.gperf

5 months agobasic: Add missing process-util.h include to origin-id.h
Daan De Meyer [Thu, 22 May 2025 13:27:50 +0000 (15:27 +0200)] 
basic: Add missing process-util.h include to origin-id.h

5 months agologind: fix serialization of display user field
Lennart Poettering [Thu, 22 May 2025 16:04:34 +0000 (18:04 +0200)] 
logind: fix serialization of display user field

Follow-up for: 232f4e12fe526bfbcd5c7bd857bbb6a0db818cbc

5 months agoforward: Add more forward declarations
Daan De Meyer [Thu, 22 May 2025 10:08:31 +0000 (12:08 +0200)] 
forward: Add more forward declarations

CGroupMask was erronously added to core-forward.h even though it
comes from src/basic so we move it to the right location.

5 months agoRestore compatibility for coredump --backtrace (#37559)
Zbigniew Jędrzejewski-Szmek [Thu, 22 May 2025 11:40:29 +0000 (13:40 +0200)] 
Restore compatibility for coredump --backtrace (#37559)

5 months agoClang tidy headers (#37566)
Daan De Meyer [Thu, 22 May 2025 10:01:57 +0000 (12:01 +0200)] 
Clang tidy headers (#37566)

5 months agomeson: Run clang-tidy on libsystemd headers as well 37566/head
Daan De Meyer [Thu, 22 May 2025 09:06:54 +0000 (11:06 +0200)] 
meson: Run clang-tidy on libsystemd headers as well

5 months agomeson: Use .inc for generated code meant to be included in other files
Daan De Meyer [Thu, 22 May 2025 08:32:32 +0000 (10:32 +0200)] 
meson: Use .inc for generated code meant to be included in other files

These files use the .h extension but are not standalone so let's not
make it appear like they are proper headers and instead use the .inc
extension.

5 months agoboot: Clean up includes
Daan De Meyer [Thu, 22 May 2025 08:00:39 +0000 (10:00 +0200)] 
boot: Clean up includes

Instead of introducing efi-forward.h, we use efi.h for the same purpose
in the boot/ folder.

5 months agoRevert "logind: always enclose list fields (that may contain spaces) in quotes"
Luca Boccassi [Wed, 21 May 2025 23:56:18 +0000 (00:56 +0100)] 
Revert "logind: always enclose list fields (that may contain spaces) in quotes"

This breaks GNOME on Wayland, login no longer works:

gnome-shell[2250]: Running GNOME Shell (using mutter 48.2) as a Wayland display server
gnome-shell[2250]: Failed to setup: Failed to find any matching session
systemd[2054]: org.gnome.Shell@wayland.service: Failed with result 'protocol'.
systemd[2054]: Failed to start org.gnome.Shell@wayland.service - GNOME Shell on Wayland.

This reverts commit b0555149de780f81ec6f741d36bdb41b4d1d8a94.

5 months agoVarious cleanups (#37564)
Daan De Meyer [Thu, 22 May 2025 08:40:35 +0000 (10:40 +0200)] 
Various cleanups (#37564)

5 months agocore: Clean up includes 37564/head
Daan De Meyer [Thu, 22 May 2025 07:40:31 +0000 (09:40 +0200)] 
core: Clean up includes

Follow up for 836e4e7ea8fa24a0a08a3579f154ed4f4987c5df

5 months agotest: Remove unused includes
Daan De Meyer [Thu, 22 May 2025 07:22:07 +0000 (09:22 +0200)] 
test: Remove unused includes

5 months agomachine: Fix comment
Daan De Meyer [Thu, 22 May 2025 07:21:59 +0000 (09:21 +0200)] 
machine: Fix comment

5 months agocore: Clean up includes
Daan De Meyer [Wed, 21 May 2025 14:37:12 +0000 (16:37 +0200)] 
core: Clean up includes

Split out of #37344.

5 months agonetworkd: print a meaningful error on failure
Matteo Croce [Thu, 22 May 2025 03:41:49 +0000 (05:41 +0200)] 
networkd: print a meaningful error on failure

test_keep_configuration_on_restart() works, but the error printed is
misleading because self.assertNotEmpty() doesn't exist.

Add a working assert statement so, when the unmanaged interface is
altered, the test fails with a meaningful error, like:

        ### ip monitor dev unmanaged0 BEGIN
        222:33::/64 proto kernel metric 256 pref medium
        FAIL
        [...]
        Traceback (most recent call last):
          File "/work/src/test/test-network/systemd-networkd-tests.py", line 5085, in test_keep_configuration_on_restart
            self.assertEqual(line, '')
        AssertionError: '222:33::/64 proto kernel metric 256 pref medium' != ''
        - 222:33::/64 proto kernel metric 256 pref medium

While at it, strip the trailing newline so we can print easily the
string (and in future build more a robust regexp which uses the $ token)

5 months agohostname: add hardware version 36956/head
Stefan Herbrechtsmeier [Wed, 30 Apr 2025 07:55:21 +0000 (09:55 +0200)] 
hostname: add hardware version

Add support for the hardware version. The version describes a distinct
version of compatibility hardware. The value is read from the file
/etc/machine-info or DMI as fallback.

The integration provides an unified interface to collect detail hardware
information. The /etc/machine-info entry enables embedded devices
without UEFI support to read the information from a custom store.