Luca Boccassi
00ed239a7b
repart: prefix LUKS superblock label with "luks-" by default, and add explicit VolumeLabel= setting to control it ( #39713 )
...
Alternative-to: #39536
2025-11-17 17:46:39 +00:00
Lennart Poettering
0712316e8e
fs-util: enable automatic access mode logic in xopenat()
2025-11-18 01:31:49 +09:00
Yu Watanabe
07910c73b0
test: modernize test-log and add test cases for log_format_iovec() ( #39750 )
2025-11-18 01:31:02 +09:00
Lennart Poettering
1daf7b56bb
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.
2025-11-17 16:53:31 +01:00
Lennart Poettering
a5023c7a4b
nspawn: move oci code to use json_dispatch_strv_environment()
2025-11-17 16:53:13 +01:00
Zbigniew Jędrzejewski-Szmek
93470f0451
Various comment and whitespace cleanups ( #39740 )
2025-11-17 16:52:38 +01:00
Zbigniew Jędrzejewski-Szmek
3a5e748f6b
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.
2025-11-17 16:50:50 +01:00
Lennart Poettering
e30738c20c
dissect-tool: accept encryption password via $PASSWORD
2025-11-17 16:42:58 +01:00
Lennart Poettering
28fd2a66f4
nspawn: fix flags type for chase()
2025-11-18 00:36:58 +09:00
Lennart Poettering
d3c6a172a0
discover-image: support reading metadata from verity enabled DDI images, too
2025-11-18 00:35:49 +09:00
Yu Watanabe
d42db35a7c
Drop remaining CGroup v1 specific code ( #38969 )
2025-11-17 23:48:29 +09:00
Lennart Poettering
0a03092cb5
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
2025-11-17 15:37:14 +01:00
Yu Watanabe
c1568778d1
repart: fix typo
...
Follow-up for cfb6c54324 .
2025-11-17 23:34:42 +09:00
Yu Watanabe
f10444319e
test-log: add test cases for log_format_iovec()
2025-11-17 23:07:05 +09:00
Yu Watanabe
c1792c2005
test-log: migrate to use ASSERT_OK() and friends
2025-11-17 23:07:05 +09:00
Yu Watanabe
d753c0c658
log: replace format string in LOG_ITEM() to a dummy one when analyzed by Coverity
...
Hopefully silence many false-positives.
2025-11-17 23:06:53 +09:00
Yu Watanabe
1f546ab779
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.
2025-11-17 22:38:38 +09:00
Zbigniew Jędrzejewski-Szmek
cfb6c54324
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.
2025-11-17 22:36:27 +09:00
Lennart Poettering
1006b7e5ba
coredumpctl: remove unnecessary line break
2025-11-17 22:35:03 +09:00
Yu Watanabe
44440ea658
cgroup-util: drop outdated comments
2025-11-17 21:31:51 +09:00
Yu Watanabe
4434fd76f1
cgroup-util: drop unused SYSTEMD_CGROUP_CONTROLLER_{LEGACY,HYBRID}
2025-11-17 21:31:51 +09:00
Yu Watanabe
b9e612e070
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.
2025-11-17 21:31:51 +09:00
Yu Watanabe
6a8ab5f062
cgroup-show: drop unnecessary call of cg_mangle_path()
...
As the caller already dropped controller part.
2025-11-17 21:31:51 +09:00
Yu Watanabe
a8156588fa
cgroup-util: drop 'controller' argument from cg_get_path()
...
The argument is not used anymore. Let's drop it.
2025-11-17 21:31:50 +09:00
Yu Watanabe
5d397dc7f4
cgroup-util: drop 'controller' argument from cg_get_keyed_attribute() and cg_is_empty()
...
The argument is completely unused. Let's drop it.
2025-11-17 21:31:50 +09:00
Yu Watanabe
3454b160e4
cgroup-util: drop unused cg_unified() and friends
2025-11-17 21:31:50 +09:00
Yu Watanabe
90ee92b073
cgls: drop cgroup v1 support and warn when cgroup v1 controller is specified
2025-11-17 21:31:44 +09:00
Yu Watanabe
2fe89e3b0f
limits-util: drop cgroup v1 support from physical_memory()
2025-11-17 21:30:29 +09:00
Yu Watanabe
2d6dd692be
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.
2025-11-17 21:30:29 +09:00
Yu Watanabe
f5a48af34b
cgroup-util: use cg_is_available() in cg_kill_supported()
2025-11-17 21:30:29 +09:00
Yu Watanabe
57c16d344b
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.
2025-11-17 21:30:29 +09:00
Yu Watanabe
0ab90015e0
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().
2025-11-17 21:30:29 +09:00
Yu Watanabe
b525a72f7b
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().
2025-11-17 21:30:29 +09:00
Yu Watanabe
6475926a59
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.
2025-11-17 21:30:29 +09:00
Yu Watanabe
4dbf06bd85
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.
2025-11-17 21:30:29 +09:00
Yu Watanabe
4d1badbbc4
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.
2025-11-17 21:30:29 +09:00
Yu Watanabe
f8de2107a7
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.
2025-11-17 21:30:29 +09:00
Yu Watanabe
5169b1c5a7
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.
2025-11-17 21:30:29 +09:00
Yu Watanabe
4365351b93
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.
2025-11-17 21:29:51 +09:00
Luca Boccassi
b186ce49de
Chores for RC1 ( #39757 )
2025-11-17 10:53:15 +00:00
Luca Boccassi
5b81a76313
Update syscalls table
...
ninja -C build update-syscall-tables update-syscall-header
2025-11-17 08:56:39 +00:00
Yu Watanabe
07e437f569
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.
2025-11-17 12:19:22 +09:00
Emil Renner Berthing and Yu Watanabe
3bc03c67f0
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 >
2025-11-17 12:19:22 +09:00
Yu Watanabe
bf9bc5beb0
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.
2025-11-17 12:18:44 +09:00
Yu Watanabe
3ae7d8fd87
musl: utmpx: add several missing definitions
2025-11-17 11:27:07 +09:00
Lennart Poettering
1240ba1807
iovec-util: drop redundant ()
2025-11-16 23:36:11 +01:00
Lennart Poettering
08d75cfb99
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.
2025-11-16 23:36:11 +01:00
David Tardon
8fc02a8cfd
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
2025-11-16 17:00:53 +09:00
Chris Down
77a92e97eb
tree-wide: several cleanups ( #39746 )
2025-11-16 15:40:39 +08:00
Chris Down
92cbc95e7a
network/dhcp: several follow-ups for recent change ( #39744 )
...
Follow-ups for 7f9c0c31d2
2025-11-16 15:39:56 +08:00