]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
30 hours agonspawn,vmspawn: improve errors for unknown users and groups
Zbigniew Jędrzejewski-Szmek [Tue, 18 Nov 2025 09:29:40 +0000 (10:29 +0100)] 
nspawn,vmspawn: improve errors for unknown users and groups

30 hours agologin: use STREROR_USER helper
Zbigniew Jędrzejewski-Szmek [Tue, 18 Nov 2025 09:28:53 +0000 (10:28 +0100)] 
login: use STREROR_USER helper

30 hours agocreds: improve message about unknown user
Zbigniew Jędrzejewski-Szmek [Tue, 18 Nov 2025 09:18:25 +0000 (10:18 +0100)] 
creds: improve message about unknown user

Before:
$ build/systemd-creds --uid=asdf
Failed to resolve user 'asdf': No such process
Now:
$ build/systemd-creds --uid=asdf
Failed to resolve user 'asdf': Unknown user

30 hours agocore: improve messages about unknown users and groups
Zbigniew Jędrzejewski-Szmek [Tue, 18 Nov 2025 09:08:41 +0000 (10:08 +0100)] 
core: improve messages about unknown users and groups

$ sudo build/systemd-run --uid=asdf whoami
$ journalctl -e
(whoami)[1007784]: run-p1007782-i5200512.service: Failed to determine user credentials: No such process
(whoami)[1007784]: run-p1007782-i5200512.service: Failed at step USER spawning /usr/sbin/whoami: No such process
systemd[1]: run-p1007782-i5200512.service: Main process exited, code=exited, status=217/USER
systemd[1]: run-p1007782-i5200512.service: Failed with result 'exit-code'.

Now:
(whoami)[1013204]: run-p1013202-i5205932.service: Failed to determine credentials for user 'asdf': Unknown user
(whoami)[1013204]: run-p1013202-i5205932.service: Failed at step USER spawning /usr/sbin/whoami: Invalid argument
systemd[1]: run-p1013202-i5205932.service: Main process exited, code=exited, status=217/USER
systemd[1]: run-p1013202-i5205932.service: Failed with result 'exit-code'.

30 hours agorun: improve log message for unknown user/group
Zbigniew Jędrzejewski-Szmek [Tue, 18 Nov 2025 08:26:49 +0000 (09:26 +0100)] 
run: improve log message for unknown user/group

Before:
$ sudo build/systemd-run --scope --uid=asdf whoami
Failed to resolve user asdf: No such process
Now:
$ sudo build/systemd-run --scope --uid=asdf whoami
Failed to resolve user 'asdf': Unknown user

30 hours agotmpfiles: improve error message for missing user/group
Zbigniew Jędrzejewski-Szmek [Tue, 18 Nov 2025 08:21:02 +0000 (09:21 +0100)] 
tmpfiles: improve error message for missing user/group

From a boot with a dracut initrd:
systemd-tmpfiles[242]: /usr/lib/tmpfiles.d/tpm2-tss-fapi.conf:2: Failed to resolve user 'tss': No such process
systemd-tmpfiles[242]: Failed to parse ACL "default:group:tss:rwx", ignoring: Invalid argument
systemd-tmpfiles[242]: /usr/lib/tmpfiles.d/tpm2-tss-fapi.conf:4: Failed to resolve user 'tss': No such process
systemd-tmpfiles[242]: Failed to parse ACL "default:group:tss:rwx", ignoring: Invalid argument
systemd-tmpfiles[242]: /usr/lib/tmpfiles.d/tpm2-tss-fapi.conf:6: Failed to resolve group 'tss': No such process
systemd-tmpfiles[242]: /usr/lib/tmpfiles.d/tpm2-tss-fapi.conf:7: Failed to resolve group 'tss': No such process

30 hours agoudev: define a generic helper to print messages about unknown users and groups
Zbigniew Jędrzejewski-Szmek [Tue, 18 Nov 2025 08:47:51 +0000 (09:47 +0100)] 
udev: define a generic helper to print messages about unknown users and groups

We cannot just use %m, because strerror returns a confusing error message
for ESRCH or ENOEXEC. udev code was doing a good job, but the error handling
was very verbose. Let's encapsulate the customized error messages in a
helper.

No functional change, except that the error messages have a slightly different
form now. The old messages were a bit better, but we don't have as much
flexibility in the new scheme. "Failed to resolve user 'foo': Unknown user"
should be good enough.

2 days agorepart: prefix LUKS superblock label with "luks-" by default, and add explicit Volume...
Luca Boccassi [Mon, 17 Nov 2025 17:46:39 +0000 (17:46 +0000)] 
repart: prefix LUKS superblock label with "luks-" by default, and add explicit VolumeLabel= setting to control it (#39713)

Alternative-to: #39536
2 days agoNEWS: menton future removal of SysV support and requirement bump
Yu Watanabe [Mon, 17 Nov 2025 17:40:22 +0000 (02:40 +0900)] 
NEWS: menton future removal of SysV support and requirement bump

2 days agoSplit out script for musl builds (#39758)
Yu Watanabe [Mon, 17 Nov 2025 17:17:05 +0000 (02:17 +0900)] 
Split out script for musl builds (#39758)

2 days agodocs: Update MEMORY_PRESSURE to mention recent improvements in GLib
Philip Withnall [Sun, 2 Nov 2025 11:34:03 +0000 (11:34 +0000)] 
docs: Update MEMORY_PRESSURE to mention recent improvements in GLib

See https://gitlab.gnome.org/GNOME/glib/-/issues/2931 for the changes in
GLib upstream. Using `GMemoryMonitor` is now more compliant with the
systemd recommended approach, but it needs further work to read the
recommended environment variables rather than unconditionally accessing
the per-cgroup PSI kernel file directly.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2 days agofs-util: enable automatic access mode logic in xopenat()
Lennart Poettering [Tue, 11 Nov 2025 10:35:16 +0000 (11:35 +0100)] 
fs-util: enable automatic access mode logic in xopenat()

2 days agotest: modernize test-log and add test cases for log_format_iovec() (#39750)
Yu Watanabe [Mon, 17 Nov 2025 16:31:02 +0000 (01:31 +0900)] 
test: modernize test-log and add test cases for log_format_iovec() (#39750)

2 days agoci: whitespace fix 39758/head
Zbigniew Jędrzejewski-Szmek [Mon, 17 Nov 2025 10:43:59 +0000 (11:43 +0100)] 
ci: whitespace fix

2 days agomusl: split out script to setup build
Zbigniew Jędrzejewski-Szmek [Sun, 16 Nov 2025 19:36:07 +0000 (20:36 +0100)] 
musl: split out script to setup build

This makes it easier to set up a local build with musl:
$ tools/setup-musl-build.sh build-meson
$ ninja -C build-meson

2 days agomusl: drop unused temporary pkgonfig directory
Zbigniew Jędrzejewski-Szmek [Mon, 17 Nov 2025 15:56:51 +0000 (16:56 +0100)] 
musl: drop unused temporary pkgonfig directory

2 days agotmpfile-util: make sure errno is left untouched by CLEANUP_TMPFILE_AT()
Lennart Poettering [Tue, 11 Nov 2025 10:35:45 +0000 (11:35 +0100)] 
tmpfile-util: make sure errno is left untouched by CLEANUP_TMPFILE_AT()

This mimics how rm_rf_physical_and_free() operate, and we should do the
same here, and make clean-up error paths not touch errno needlessly.

2 days agonspawn: move oci code to use json_dispatch_strv_environment()
Lennart Poettering [Tue, 11 Nov 2025 10:37:30 +0000 (11:37 +0100)] 
nspawn: move oci code to use json_dispatch_strv_environment()

2 days agoVarious comment and whitespace cleanups (#39740)
Zbigniew Jędrzejewski-Szmek [Mon, 17 Nov 2025 15:52:38 +0000 (16:52 +0100)] 
Various comment and whitespace cleanups (#39740)

2 days agotree-wide: drop space after shell redirection ops 39740/head
Zbigniew Jędrzejewski-Szmek [Sat, 15 Nov 2025 15:13:47 +0000 (16:13 +0100)] 
tree-wide: drop space after shell redirection ops

Those are all unary operators.

2 days agocore/namespace: tidy up comments and debug logs
Zbigniew Jędrzejewski-Szmek [Tue, 4 Nov 2025 13:08:37 +0000 (14:08 +0100)] 
core/namespace: tidy up comments and debug logs

Saying "table" everywhere is not needed. Everybody can see that the table
is a table is a table. Also tweak the grammar in various places to make
reading nicer.

2 days agotest: add testcase for VolumeLabel= 39713/head
Lennart Poettering [Mon, 17 Nov 2025 15:43:21 +0000 (16:43 +0100)] 
test: add testcase for VolumeLabel=

2 days agodissect-tool: accept encryption password via $PASSWORD
Lennart Poettering [Mon, 17 Nov 2025 15:42:58 +0000 (16:42 +0100)] 
dissect-tool: accept encryption password via $PASSWORD

2 days agonspawn: fix flags type for chase()
Lennart Poettering [Wed, 12 Nov 2025 15:47:17 +0000 (16:47 +0100)] 
nspawn: fix flags type for chase()

2 days agodiscover-image: support reading metadata from verity enabled DDI images, too
Lennart Poettering [Wed, 12 Nov 2025 15:48:26 +0000 (16:48 +0100)] 
discover-image: support reading metadata from verity enabled DDI images, too

2 days agohwdb: Fix keyboard backlight keys on Acer Nitro 5 AN515-58 (#39769)
Pranay Pawar [Mon, 17 Nov 2025 15:33:42 +0000 (21:03 +0530)] 
hwdb: Fix keyboard backlight keys on Acer Nitro 5 AN515-58 (#39769)

Pressing Fn+F10 on Acer Nitro 5 AN515-58 incorrectly triggers display
brightness down (scancode 0xef) instead of keyboard backlight control,
causing the screen to go completely dark. Similarly, Fn+F9 (scancode
0xf0) has no function explictily stated in hwdb causing unknown keycode
debug messages.

Both keys should control the keyboard backlight as labeled on the
keyboard. Map scancodes 0xef and 0xf0 to kbdillumup and kbdillumdown
respectively to enable proper keyboard backlight control.

2 days agoDrop remaining CGroup v1 specific code (#38969)
Yu Watanabe [Mon, 17 Nov 2025 14:48:29 +0000 (23:48 +0900)] 
Drop remaining CGroup v1 specific code (#38969)

2 days agoNEWS: mention the LUKS superblock default labelling change.
Lennart Poettering [Thu, 13 Nov 2025 09:11:00 +0000 (10:11 +0100)] 
NEWS: mention the LUKS superblock default labelling change.

This is a (weak) compat break, hence document it in NEWS.

2 days agoNEWS: insert hyphen
Yu Watanabe [Mon, 17 Nov 2025 14:37:19 +0000 (23:37 +0900)] 
NEWS: insert hyphen

2 days agorepart: avoid label string clashes between LUKS superblocks and the filesystems on...
Lennart Poettering [Thu, 13 Nov 2025 09:09:50 +0000 (10:09 +0100)] 
repart: avoid label string clashes between LUKS superblocks and the filesystems on them

Let's make sure that by default /dev/disk/by-label/ symlinks avoid
ambiguities, and the LUKS volume carries a different one than the file
system inside it.

Alternative-to: #39536
2 days agorepart: fix typo
Yu Watanabe [Mon, 17 Nov 2025 14:34:39 +0000 (23:34 +0900)] 
repart: fix typo

Follow-up for cfb6c543245be0a1908c270941b7881ac7395d1b.

2 days agoNEWS: cleanups and rewordings, extend the section about musl
Zbigniew Jędrzejewski-Szmek [Mon, 17 Nov 2025 14:17:23 +0000 (15:17 +0100)] 
NEWS: cleanups and rewordings, extend the section about musl

I think we should make it clear that the "incomplete musl support" does not
mean that it'll for certain be completed later. The feedback from users will be
an important consideration.

2 days agotest-log: add test cases for log_format_iovec() 39750/head
Yu Watanabe [Sun, 16 Nov 2025 07:54:53 +0000 (16:54 +0900)] 
test-log: add test cases for log_format_iovec()

2 days agotest-log: migrate to use ASSERT_OK() and friends
Yu Watanabe [Sun, 16 Nov 2025 06:31:28 +0000 (15:31 +0900)] 
test-log: migrate to use ASSERT_OK() and friends

2 days agolog: replace format string in LOG_ITEM() to a dummy one when analyzed by Coverity
Yu Watanabe [Sun, 16 Nov 2025 10:18:45 +0000 (19:18 +0900)] 
log: replace format string in LOG_ITEM() to a dummy one when analyzed by Coverity

Hopefully silence many false-positives.

2 days agolog: make each string generated in log_format_iovec() NUL terminated
Yu Watanabe [Sun, 16 Nov 2025 11:14:00 +0000 (20:14 +0900)] 
log: make each string generated in log_format_iovec() NUL terminated

Nowadays, we append an extra NUL for each data if possible for safety.
We already do the same for example at write_to_kmsg(), log_do_context(),
write_to_journal(), log_struct_iovec_internal(), and so on.
This does not change any behavior, as the iov_len field is unchanged.

2 days agorepart: adjust "partno" column
Zbigniew Jędrzejewski-Szmek [Fri, 24 Oct 2025 08:34:17 +0000 (10:34 +0200)] 
repart: adjust "partno" column

In a typical output from systemd-repart, the output is very wide any any wasted
space is bad because it pushes the interesting information even further to the
right. We usually need at most one or two digits to express the partition
numbers, so let's shorten the title of the column to effectively remove two
columns in the output.

In JSON output, the old field name is retained. This follows the pattern
already used for field "drop-in_files".

Also right-align the columns with numbers always to the right. I doesn't make
sense to align the columns which are only used for JSON output, so stop setting
alignment for those.

2 days agocoredumpctl: remove unnecessary line break
Lennart Poettering [Mon, 10 Nov 2025 11:12:47 +0000 (12:12 +0100)] 
coredumpctl: remove unnecessary line break

2 days agohwdb: Add Elecom IST Pro trackball (#39762)
Charlie Le [Mon, 17 Nov 2025 13:34:03 +0000 (08:34 -0500)] 
hwdb: Add Elecom IST Pro trackball (#39762)

Added entries for the Elecom IST Pro via its three connection methods- a
USB cable, the included G1000 USB receiver, and Bluetooth.

The G1000 USB receiver _may_ have to be removed in the future depending
on the input devices that can connect to it. According to Elecom, the
receiver can have up to three different input devices connected such as
trackballs, mice, keyboards, etc. That said, as far as I can tell, the
IST Pro is the only released Elecom device that uses the receiver. The
non-pro model and the upcoming Elecom Huge Plus might use the same
receiver, but that should not matter as both devices are trackballs.

2 days agoNEWS: fix typos
Jörg Behrmann [Mon, 17 Nov 2025 13:13:36 +0000 (14:13 +0100)] 
NEWS: fix typos

2 days agoNEWS: more adjustments for v259~rc1
Luca Boccassi [Mon, 17 Nov 2025 12:38:05 +0000 (12:38 +0000)] 
NEWS: more adjustments for v259~rc1

2 days agoshell-completion: drop deprecated cgroup controller suggestion 38969/head
Yu Watanabe [Sat, 15 Nov 2025 19:39:13 +0000 (04:39 +0900)] 
shell-completion: drop deprecated cgroup controller suggestion

2 days agocgroup-util: drop outdated comments
Yu Watanabe [Sat, 30 Aug 2025 01:26:10 +0000 (10:26 +0900)] 
cgroup-util: drop outdated comments

2 days agocgroup-util: drop unused SYSTEMD_CGROUP_CONTROLLER_{LEGACY,HYBRID}
Yu Watanabe [Sat, 30 Aug 2025 13:28:33 +0000 (22:28 +0900)] 
cgroup-util: drop unused SYSTEMD_CGROUP_CONTROLLER_{LEGACY,HYBRID}

2 days agocgroup-util: do not check validity of controller in cg_split_spec()
Yu Watanabe [Sat, 30 Aug 2025 13:25:22 +0000 (22:25 +0900)] 
cgroup-util: do not check validity of controller in cg_split_spec()

Now the controller part is always ignored, hence let's skip check for
the controller part of the spec. This also make it acceppt unnormalized
path. Previously paths were checked by path_is_normalized(), but now
checked by path_is_safe(). Also, now this mapps an empty path to NULL.

2 days agocgroup-show: drop unnecessary call of cg_mangle_path()
Yu Watanabe [Sat, 30 Aug 2025 00:52:14 +0000 (09:52 +0900)] 
cgroup-show: drop unnecessary call of cg_mangle_path()

As the caller already dropped controller part.

2 days agocgroup-util: drop 'controller' argument from cg_get_path()
Yu Watanabe [Fri, 29 Aug 2025 23:38:59 +0000 (08:38 +0900)] 
cgroup-util: drop 'controller' argument from cg_get_path()

The argument is not used anymore. Let's drop it.

2 days agocgroup-util: drop 'controller' argument from cg_get_keyed_attribute() and cg_is_empty()
Yu Watanabe [Fri, 29 Aug 2025 23:29:37 +0000 (08:29 +0900)] 
cgroup-util: drop 'controller' argument from cg_get_keyed_attribute() and cg_is_empty()

The argument is completely unused. Let's drop it.

2 days agocgroup-util: drop unused cg_unified() and friends
Yu Watanabe [Fri, 29 Aug 2025 22:54:19 +0000 (07:54 +0900)] 
cgroup-util: drop unused cg_unified() and friends

2 days agocgls: drop cgroup v1 support and warn when cgroup v1 controller is specified
Yu Watanabe [Fri, 29 Aug 2025 22:51:06 +0000 (07:51 +0900)] 
cgls: drop cgroup v1 support and warn when cgroup v1 controller is specified

2 days agolimits-util: drop cgroup v1 support from physical_memory()
Yu Watanabe [Fri, 29 Aug 2025 22:16:09 +0000 (07:16 +0900)] 
limits-util: drop cgroup v1 support from physical_memory()

2 days agocgroup-util: drop cgroup v1 support in cg_get_path()
Yu Watanabe [Fri, 29 Aug 2025 22:03:03 +0000 (07:03 +0900)] 
cgroup-util: drop cgroup v1 support in cg_get_path()

We have dropped cgroup v1 support in v258. Let's assume we are running
on cgroup v2 and drop unused legacy code.

2 days agocgroup-util: use cg_is_available() in cg_kill_supported()
Yu Watanabe [Fri, 29 Aug 2025 21:59:58 +0000 (06:59 +0900)] 
cgroup-util: use cg_is_available() in cg_kill_supported()

2 days agocgroup-util: drop cgroup v1 support from cg_mask_supported_subtree()
Yu Watanabe [Fri, 29 Aug 2025 21:57:13 +0000 (06:57 +0900)] 
cgroup-util: drop cgroup v1 support from cg_mask_supported_subtree()

We have dropped cgroup v1 support in v258. Let's drop unused legacy code.

2 days agotree-wide: replace cg_get_path_and_check() with cg_get_path()
Yu Watanabe [Fri, 29 Aug 2025 21:38:14 +0000 (06:38 +0900)] 
tree-wide: replace cg_get_path_and_check() with cg_get_path()

We have dropped cgroup v1 support in v258. When running on cgroup v2,
cg_get_path_and_check() with SYSTEMD_CGROUP_CONTROLLER as controller is
equivalent with checking if we are running on cgroup v2 and then
cg_get_path(). As we can assume we are running on cgroup v2, then the
check is not necessary anymore, thus we can replace
cg_get_path_and_check() with cg_get_path().

2 days agocgroup-util: drop cgroup v1 support from cg_pid_get_path()
Yu Watanabe [Fri, 29 Aug 2025 21:32:56 +0000 (06:32 +0900)] 
cgroup-util: drop cgroup v1 support from cg_pid_get_path()

We have dropped cgroup v1 support in v258. Let's drop legacy code.
Then, we can drop 'controller' argument from cg_pid_get_path() and
cg_pidref_get_path().

2 days agocgroup-util: drop 'controller' argument from cg_path_open()
Yu Watanabe [Fri, 29 Aug 2025 20:43:31 +0000 (05:43 +0900)] 
cgroup-util: drop 'controller' argument from cg_path_open()

Nowadays it always takes SYSTEMD_CGROUP_CONTROLLER as controller.
Let's drop it.

No functional change, just refactoring.

2 days agocgroup-util: drop 'controller' argument from cg_set_attribute(), cg_get_attribute...
Yu Watanabe [Fri, 29 Aug 2025 20:36:21 +0000 (05:36 +0900)] 
cgroup-util: drop 'controller' argument from cg_set_attribute(), cg_get_attribute() and friends

Non-null controller arguments are always ignored when running on cgroup v2.
Let's drop the argument.

No functional change, just refactoring.

2 days agocgroup-util: drop 'controller' argument from cg_enumerate_subgroups()
Yu Watanabe [Fri, 29 Aug 2025 20:22:21 +0000 (05:22 +0900)] 
cgroup-util: drop 'controller' argument from cg_enumerate_subgroups()

Nowadays it always takes SYSTEMD_CGROUP_CONTROLLER as controller.
Let's drop it.

No functional change, just refactoring.

2 days agocgroup-util: drop 'controller' argument from cg_enumerate_processes()
Yu Watanabe [Fri, 29 Aug 2025 20:18:55 +0000 (05:18 +0900)] 
cgroup-util: drop 'controller' argument from cg_enumerate_processes()

Nowadays it always takes SYSTEMD_CGROUP_CONTROLLER as controller.
Let's drop it.

No functional change, just refactoring.

2 days agocgroup-show: drop 'controller' argument from show_cgroup() and show_cgroup_and_extra()
Yu Watanabe [Fri, 29 Aug 2025 20:06:28 +0000 (05:06 +0900)] 
cgroup-show: drop 'controller' argument from show_cgroup() and show_cgroup_and_extra()

Nowadays these always take SYSTEMD_CGROUP_CONTROLLER as controller.
Let's drop it.

No functional change, just refactoring.

2 days agocgroup-util: introduce cg_is_available() and check it in tests
Yu Watanabe [Fri, 29 Aug 2025 22:32:49 +0000 (07:32 +0900)] 
cgroup-util: introduce cg_is_available() and check it in tests

Now most of our code does not support cgroup v1. Let's skip test cases
if we are running on cgroup v1.

2 days agotest: skip TEST-64-UDEV-STORAGE-simultaneous_events on Debian
Luca Boccassi [Mon, 17 Nov 2025 11:10:27 +0000 (11:10 +0000)] 
test: skip TEST-64-UDEV-STORAGE-simultaneous_events on Debian

It consistently fails with the new 6.17 kernel and nobody can
figure out why, so just disable it for now as it's just noise

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

2 days agoNEWS: first prep for v259
Lennart Poettering [Mon, 17 Nov 2025 11:56:42 +0000 (12:56 +0100)] 
NEWS: first prep for v259

2 days agoChores for RC1 (#39757)
Luca Boccassi [Mon, 17 Nov 2025 10:53:15 +0000 (10:53 +0000)] 
Chores for RC1 (#39757)

2 days agoAdd experimental musl support (#38825)
Zbigniew Jędrzejewski-Szmek [Mon, 17 Nov 2025 10:14:47 +0000 (11:14 +0100)] 
Add experimental musl support (#38825)

This adds experimental support of building systemd with musl. This
allows to build systemd with musl and run most of the unit tests.
Running integration tests is not yet supported, however. Hopefully, this
should be a good starting point to support musl.

This requires musl-1.2.5 with
https://github.com/kraj/musl/commit/fde29c04adbab9d5b081bf6717b5458188647f1c.
The patch is already backported to Alpine/postmarketOS's musl package
since musl-1.2.5-r11. See
https://gitlab.alpinelinux.org/alpine/aports/-/commit/333e50c2052c74bb372f821fdeea2e6814f2fe7a.

2 days agoman: regenerate man/rules/meson.build 39757/head
Luca Boccassi [Mon, 17 Nov 2025 08:59:53 +0000 (08:59 +0000)] 
man: regenerate man/rules/meson.build

ninja -C build update-man-rules

2 days agoTranslations: update systemd-po
Luca Boccassi [Mon, 17 Nov 2025 08:58:51 +0000 (08:58 +0000)] 
Translations: update systemd-po

ninja -C build systemd-update-po

2 days agoTranslations: update systemd-pot
Luca Boccassi [Mon, 17 Nov 2025 08:57:55 +0000 (08:57 +0000)] 
Translations: update systemd-pot

ninja -C build systemd-pot

2 days agoUpdate syscalls table
Luca Boccassi [Mon, 17 Nov 2025 08:56:39 +0000 (08:56 +0000)] 
Update syscalls table

ninja -C build update-syscall-tables update-syscall-header

2 days agoNEWS: update contributors list
Luca Boccassi [Mon, 17 Nov 2025 08:55:28 +0000 (08:55 +0000)] 
NEWS: update contributors list

2 days agoUpdate hwdb
Luca Boccassi [Mon, 17 Nov 2025 08:54:08 +0000 (08:54 +0000)] 
Update hwdb

ninja -C build update-hwdb

2 days agoupdate TODO
Lennart Poettering [Mon, 17 Nov 2025 07:53:40 +0000 (08:53 +0100)] 
update TODO

2 days agokeymap: Ignore brightness keys on Dell Inspiron 3505 to avoid double events
Armin Wolf [Mon, 17 Nov 2025 03:02:28 +0000 (04:02 +0100)] 
keymap: Ignore brightness keys on Dell Inspiron 3505 to avoid double events

On the Dell Inspiron 3505 both the atkbd and acpi-video input devices report
an event for pressing the brightness up / down keys, resulting in user
space seeing double events and increasing / decreasing the brightness 2 steps
for each keypress.

Fix this by adding the device to the already existing list of Dell
devices that suffer from the same problem.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2 days agomusl: ci: add build test and unit tests 38825/head
Yu Watanabe [Tue, 9 Sep 2025 04:42:24 +0000 (13:42 +0900)] 
musl: ci: add build test and unit tests

2 days agomusl: glob-util: filter out . and .. even if GLOB_ALTDIRFUNC is not supported
Yu Watanabe [Mon, 25 Feb 2019 06:56:21 +0000 (14:56 +0800)] 
musl: glob-util: filter out . and .. even if GLOB_ALTDIRFUNC is not supported

musl neither support GLOB_ALTDIRFUNC nor GLOB_BRACE.
Let's make safe_glob() work even when GLOB_ALTDIRFUNC is not supported.
Currently, GLOB_BRACE is simply ignored when it is not supported.

2 days agomusl: add fallback parse_printf_format() implementation
Emil Renner Berthing [Sat, 22 May 2021 18:26:24 +0000 (20:26 +0200)] 
musl: add fallback parse_printf_format() implementation

musl does not provide parse_printf_format(). Let's introduce a fallback
method.

Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com>
2 days agomusl: meson: add libutmps support
Yu Watanabe [Sun, 16 Nov 2025 21:57:44 +0000 (06:57 +0900)] 
musl: meson: add libutmps support

musl only provides fake functions, hence even with -Dutmp=true,
utmp/wtmp functionalities do not work. Let's allow to build with
libutmps.

2 days agomusl: utmpx: add several missing definitions
Yu Watanabe [Mon, 17 Nov 2025 01:47:25 +0000 (10:47 +0900)] 
musl: utmpx: add several missing definitions

2 days agoiovec-util: drop redundant ()
Lennart Poettering [Sun, 16 Nov 2025 07:11:07 +0000 (08:11 +0100)] 
iovec-util: drop redundant ()

2 days agodissect-image,execute: switch root hash/root hash sig storage to struct iovec
Lennart Poettering [Sat, 15 Nov 2025 06:42:12 +0000 (07:42 +0100)] 
dissect-image,execute: switch root hash/root hash sig storage to struct iovec

let's go one step further on our iovec'ification journey.

No change in behaviour, just rework to make struct iovec used
everywhere.

2 days agotest-network: several tweaks (#39752)
Yu Watanabe [Sun, 16 Nov 2025 21:39:45 +0000 (06:39 +0900)] 
test-network: several tweaks (#39752)

3 days agotest-network: drop two overly verbose outputs 39752/head
Yu Watanabe [Sun, 16 Nov 2025 13:14:53 +0000 (22:14 +0900)] 
test-network: drop two overly verbose outputs

Follow-up for 7f9c0c31d2f00f472c361868ac2184d77113db72.

3 days agotest-network: set TimeoutStopFailureMode=abort when running with sanitizers
Yu Watanabe [Sun, 16 Nov 2025 13:10:55 +0000 (22:10 +0900)] 
test-network: set TimeoutStopFailureMode=abort when running with sanitizers

Hopefully this provides useful data for issue #39631.

3 days agoRevert "test-network: disable several more sandbox features when running with sanitizers"
Yu Watanabe [Sun, 16 Nov 2025 13:08:11 +0000 (22:08 +0900)] 
Revert "test-network: disable several more sandbox features when running with sanitizers"

This reverts commit 454ce423050890bdc8c3c90add3713592a3cab38.

Unfortunately, it does not work.

3 days agologind-dbus: avoid assertion on HandlePowerKey=factory-reset
David Tardon [Tue, 21 Oct 2025 07:43:22 +0000 (09:43 +0200)] 
logind-dbus: avoid assertion on HandlePowerKey=factory-reset

The factory-reset action is handled together with the various
sleep/shutdown actions, but its not either one.

Fixes #39385

3 days agotree-wide: several cleanups (#39746)
Chris Down [Sun, 16 Nov 2025 07:40:39 +0000 (15:40 +0800)] 
tree-wide: several cleanups (#39746)

3 days agonetwork/dhcp: several follow-ups for recent change (#39744)
Chris Down [Sun, 16 Nov 2025 07:39:56 +0000 (15:39 +0800)] 
network/dhcp: several follow-ups for recent change (#39744)

Follow-ups for 7f9c0c31d2f00f472c361868ac2184d77113db72

3 days agoresolve: voidify one function call 39746/head
Yu Watanabe [Sun, 16 Nov 2025 05:06:24 +0000 (14:06 +0900)] 
resolve: voidify one function call

Fixes CID#1643235.

3 days agotree-wide: swap arguments for streq()
Yu Watanabe [Sun, 16 Nov 2025 02:19:02 +0000 (11:19 +0900)] 
tree-wide: swap arguments for streq()

We usually set a variable first, then constant.

3 days agotest-network: migrate to use ASSERT_OK() and friends
Yu Watanabe [Sun, 16 Nov 2025 02:25:47 +0000 (11:25 +0900)] 
test-network: migrate to use ASSERT_OK() and friends

3 days agonetwork-internal: do not save partially parsed values
Yu Watanabe [Sun, 16 Nov 2025 04:59:56 +0000 (13:59 +0900)] 
network-internal: do not save partially parsed values

3 days agoresolve: fix typo
Yu Watanabe [Sun, 16 Nov 2025 02:12:23 +0000 (11:12 +0900)] 
resolve: fix typo

Follow-up for 8209f4adcde08d225f56269e608ccd5f6704cd70.

3 days agoefivars: fix typo
Yu Watanabe [Sun, 16 Nov 2025 02:09:31 +0000 (11:09 +0900)] 
efivars: fix typo

Follow-up for ab69a04600fd34c152c44be6864eb3bc64568e17.

3 days agosd-dhcp-lease: use the last hostname option when multiple hostname is specified 39744/head
Yu Watanabe [Sat, 15 Nov 2025 21:10:58 +0000 (06:10 +0900)] 
sd-dhcp-lease: use the last hostname option when multiple hostname is specified

3 days agosd-dhcp-lease: drop ret_ prefixes from the parsers
Yu Watanabe [Sat, 15 Nov 2025 21:09:25 +0000 (06:09 +0900)] 
sd-dhcp-lease: drop ret_ prefixes from the parsers

3 days agonetwork: unify log messages
Yu Watanabe [Sat, 15 Nov 2025 20:59:56 +0000 (05:59 +0900)] 
network: unify log messages

3 days agosd-event: several follow-ups for recent change (#39743)
Daan De Meyer [Sat, 15 Nov 2025 21:47:42 +0000 (22:47 +0100)] 
sd-event: several follow-ups for recent change (#39743)

4 days agotest: add missing assertion 39743/head
Yu Watanabe [Sat, 15 Nov 2025 20:49:33 +0000 (05:49 +0900)] 
test: add missing assertion

Follow-up for 5a5cb6ba50594355734ff58487d2272a86b741b1.
Fixes CID#1643217.

4 days agosd-event: do not ignore result of callbacks
Yu Watanabe [Sat, 15 Nov 2025 20:43:59 +0000 (05:43 +0900)] 
sd-event: do not ignore result of callbacks

Follow-up for 4c8b6d636c92e84f4b40db5656db58f71f397a1d and
6aff6d3ffc8a481bb663ac4dd0cf479845a6e24f.
Fixes CID#1643218 and friends.