Lennart Poettering
272017d32a
socket-util: add trivial socket_get_cookie() helper
2025-05-15 09:45:19 +02:00
Lennart Poettering
3bdcd994cd
man: correct version information when $REMOTE_ADDR/$REMOTE_PORT where added
...
This was in commit 3b1c524154 , i.e. in the
v220 cycle.
2025-05-15 09:45:19 +02:00
Lennart Poettering
99d52ab51f
man: don't claim REMOTE_PORT= was initialized to the protocol for AF_RAW sockets
...
This claim has no basis in reality, not even in the original commit
where the sentence was added this was true, see
3b1c524154 .
Hence removing.
2025-05-15 09:33:34 +02:00
Lennart Poettering
8d7d2edcbb
bus-polkit: add a generic vtable for methods with no params, but with polkit
2025-05-15 09:31:27 +02:00
Lennart Poettering
231cab5c5e
core: always handle method call params via sd_varlink_dispatch(), even if we accept none
...
This results in much more precise errors for the clients, and is what we
do everywhere else these days.
2025-05-15 09:31:27 +02:00
Mike Yuan
29da53dde3
core: always enable CPU accounting
...
Our baseline is v5.4 and cgroup v2 is enforced now,
which means CPU accounting is cheap everywhere without
requiring any controller, hence just remove the directive.
2025-05-15 02:19:16 +02:00
Mike Yuan
7d71b23304
man: don't duplicate version in History section
2025-05-15 02:19:16 +02:00
Mike Yuan
72594d6771
man/systemd-run: --wait shows more than CPU accounting data
2025-05-15 02:19:16 +02:00
Mike Yuan
5fde5c0399
systemctl-show: drop BlockIO* property formatter
2025-05-15 02:19:15 +02:00
Mike Yuan
3274ef6792
core: drop Manager.blockio_accounting
...
Follow-up for 98d64ff500
2025-05-15 02:19:15 +02:00
Mike Yuan
0fc54e2390
cgtop: drop v1 support
2025-05-15 02:19:15 +02:00
Mike Yuan
946eea7a7f
mountpoint-util: remove unused TMPFS_LIMITS_SYS_FS_CGROUP
...
Follow-up for 6801a9d88a
2025-05-15 09:00:51 +09:00
Mike Yuan
68a2435cc2
cgroup-util: drop cg_kill() cgroup.threads kludge
...
Our baseline is v5.4 now.
2025-05-15 07:26:03 +09:00
Yu Watanabe
231557fe40
resolve: fix typo
...
Follow-up for 801ad6a6a9 .
2025-05-15 07:19:24 +09:00
Daan De Meyer
3e0f1aff94
portable: Clean up includes
...
Split out of #37344 .
2025-05-15 00:02:00 +02:00
Daan De Meyer
b06adfb06c
coredump: Clean up includes
...
Split out of #37344 .
2025-05-15 00:02:00 +02:00
Daan De Meyer
8b4a4e996c
hibernate-resume: Clean up includes
...
Split out of #37344 .
2025-05-15 00:02:00 +02:00
Daan De Meyer
2bb89066da
integritysetup: Clean up includes
...
Split out of #37344 .
2025-05-15 00:02:00 +02:00
Daan De Meyer
a7dad604d7
locale: Clean up includes
...
Split out of #37344 .
2025-05-15 00:01:59 +02:00
Daan De Meyer
a1e519910b
nsresourced: Clean up includes
...
Split out of #37344 .
2025-05-15 00:01:59 +02:00
Daan De Meyer
25fef10b33
userns-restrict: Move HAVE_VMLINUX check into functions
...
Let's do these checks like we try to do them elsewhere, in the
function, not outside. This avoids having to declare the function
arguments twice and keeps the logic for each function together
instead of spread out across the file.
2025-05-15 00:01:59 +02:00
Daan De Meyer
e59fa61ba2
mountfsd: Clean up includes
...
Split out of #37344 .
2025-05-15 00:01:59 +02:00
Daan De Meyer
ca00c93962
nss: Clean up includes
...
Split out of #37344 .
2025-05-15 00:01:59 +02:00
Daan De Meyer
06b5f13db3
shutdown: Clean up includes
...
Split out of #37344 .
2025-05-15 00:01:59 +02:00
Daan De Meyer
3b21af5234
hashmap: Split out iterator.h
...
As preparation for #37344 , let's split out iterator.h so we can
avoid including the entirety of hashmap.h where it's not needed.
2025-05-15 00:01:32 +02:00
Daan De Meyer
bfe1e8fc5e
busctl: Clean up includes
...
Split out of #37344 .
2025-05-15 00:00:03 +02:00
Daan De Meyer
546bba9097
path: Clean up includes
2025-05-15 00:00:03 +02:00
Daan De Meyer
6795ef3505
timedate: Clean up includes
...
Split out of #37344 .
2025-05-15 00:00:03 +02:00
Daan De Meyer
2a5559c290
userdb: Clean up includes
...
Split out of #37344 .
2025-05-15 00:00:03 +02:00
Daan De Meyer
90711654df
user-record: Make sure UserStorage enum has the same name as its typedef
2025-05-15 00:00:03 +02:00
Daan De Meyer
a1ccfc420c
tree-wide: Clean up includes ( #37457 )
2025-05-14 23:53:49 +02:00
Daan De Meyer
8857aa74e5
tree-wide: Clean up includes
...
This commit cleans up the includes for all the small tools across
the tree.
A few cases of returning EXIT_SUCCESS are replaced with returning
0 to avoid including <stdlib.h>.
Split out of #37344 .
2025-05-14 22:34:02 +02:00
Daan De Meyer
0dc510ab03
tpm2-util: Make sure structs/enums are named and add to forward.h
...
We have to name structs/enums to be able to forward declare them, so
let's do that and add the missing ones to forward.h.
2025-05-14 22:34:02 +02:00
Daan De Meyer
08fd159db1
networkd-util: Avoid call to endswith()
...
Instead of recalculating the length of the string again after
reading it, let's make sd_netlink_message_read_string() return the
length of the string that we then use to check if the last character
is a dot or not.
This allows us to get rid of the string-util.h include in #37344 .
2025-05-14 22:33:45 +02:00
Luca Boccassi
74acb358c5
test: fix assertion failure with CONFIG_UNIX_DIAG disabled
...
On OBS the build VM is heavily locked down, with network
disabled in various ways in the custom kernel, to isolate the
build, including disabling CONFIG_UNIX_DIAG.
[ 456s] /* test_af_unix_get_qlen */
[ 456s] src/test/test-socket-netlink.c:393: Assertion failed: Expected "af_unix_get_qlen(unix_fd, &q)" to succeed, but got error: No such file or directory
[ 454s] /* test_sock_diag_unix */
[ 454s] src/libsystemd/sd-netlink/test-netlink.c:727: Assertion failed: Expected "sd_netlink_call(nl, message, 0, &reply)" to succeed, but got error: No such file or directory
Follow-up for 89e546e927
Follow-up for 4a3bf440f2
2025-05-14 21:24:48 +01:00
Daan De Meyer
9ebbb785b0
serialize: Move some logic to the implementation file
...
This will allow removing the string-util.h include in #37344 .
2025-05-15 04:25:47 +09:00
Yu Watanabe
ff4814f60c
validatefs: follow ups for recent change ( #37447 )
...
Follow-ups for #37434 .
2025-05-15 04:25:28 +09:00
Yu Watanabe
1ef6cee327
Bugprone argument comment - round 4 ( #37380 )
...
Follow up from https://github.com/systemd/systemd/pull/37356
2025-05-15 03:36:16 +09:00
Daan De Meyer
17b0d165f6
capability-util: Ignore unknown capabilities instead of aborting
...
capability_quintet_mangle() can be called with capability sets
containing unknown capabilities. Let's not crash when this is the
case but instead ignore the unknown capabilities.
Fixes d5e12dc75e
2025-05-15 03:33:32 +09:00
Yu Watanabe
561f53c92b
Small fixups after review for stable ( #37442 )
2025-05-15 03:30:41 +09:00
Yu Watanabe
5472f6c78f
Improve hwdb boilerplate texts ( #37440 )
2025-05-15 03:29:53 +09:00
Yu Watanabe
f78e89b018
validatefs: split out validating gpt label and type
...
No functional change, just refactoring.
This addresses https://github.com/systemd/systemd/pull/37434#discussion_r2088950725 .
2025-05-15 02:58:05 +09:00
Yu Watanabe
e4db2c9b83
validatefs: drop unnecessary empty lines
2025-05-15 02:57:57 +09:00
Yu Watanabe
e71ff6639c
man: fix typo
...
Follow-up for 778cfac5fb .
Addresses https://github.com/systemd/systemd/pull/37434#discussion_r2088882005 .
2025-05-15 02:56:30 +09:00
Daan De Meyer
7305347221
discover-image: Move some logic to the implementation file
...
This will allow removing the string-util.h and path-util.h includes
as part of #37344 .
2025-05-14 19:55:56 +02:00
Daan De Meyer
d802d40e86
forward: Add forward declaration for LockFile ( #37445 )
2025-05-14 19:55:18 +02:00
Daan De Meyer
e03e45aef2
Cleanup up includes #1 ( #37438 )
2025-05-14 19:55:03 +02:00
Daan De Meyer
ba6d1f9aca
forward: Add forward declaration for LockFile
2025-05-14 19:20:00 +02:00
Yu Watanabe
eba8cc8981
integration-tests: several cleanups ( #37394 )
2025-05-15 01:45:10 +09:00
Zbigniew Jędrzejewski-Szmek
81d7934882
fundamental: assume that intmax_t is the biggest integer
...
Allowing intmax_t to be narrower than some other type in the assert
is rather strange. By definition, it is the widest type.
Follow-up for c0239e5f11 .
2025-05-14 18:35:32 +02:00