Commit Graph
81732 Commits
Author SHA1 Message Date
Daan De Meyer 0c15577abe basic + fundamental: Clean up includes
Split out of #37344.
2025-05-25 10:06:07 +02:00
Daan De Meyer e6e6131a2c login-util: Mark session_id_valid() as pure 2025-05-25 10:05:47 +02:00
Daan De Meyer 1aabcd7454 basic: Move userns_supported() to namespace-util.h 2025-05-25 10:00:54 +02:00
Daan De Meyer 01655aec3b strv: Drop unnecessary macros 2025-05-25 09:58:09 +02:00
Daan De Meyer b4736d9a25 basic: Move LogRatelimit struct to log-ratelimit.h as well 2025-05-25 09:40:26 +02:00
Shubhendra Kushwaha ac8ed83947 docs: add man pages for sd_device_enumerator_[new,ref,unref,unrefp] (#37586)
For #20929.
2025-05-25 05:01:27 +09:00
Daan De Meyer 881982b1b5 Various cleanups (#37597) 2025-05-24 21:48:04 +02:00
Yu Watanabe 7b41cf7731 Two follow ups for #37591 (#37594) 2025-05-25 04:22:42 +09:00
Daan De Meyer b065d3529a 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.
2025-05-24 20:57:05 +02:00
Daan De Meyer 8ad0d6d479 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.
2025-05-24 20:57:05 +02:00
Daan De Meyer 91a82e790e 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.
2025-05-24 20:57:05 +02:00
Daan De Meyer b4f3a3ad06 core: Add missing bpf-dlopen.h includes to bpf skeleton headers 2025-05-24 20:57:05 +02:00
Daan De Meyer a119c648f8 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.
2025-05-24 20:57:05 +02:00
Daan De Meyer 34269a6398 generate-sym-test: Only include required headers
If we don't use any symbols from a header, let's not include it.
2025-05-24 20:56:27 +02:00
Daan De Meyer a6f4a9c07b 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.
2025-05-24 20:44:32 +02:00
Daan De Meyer 4cfd024e73 forward: Move ChaseFlags forward declaration to forward.h 2025-05-24 20:44:12 +02:00
Daan De Meyer 5cdf13c70c 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.
2025-05-25 03:40:24 +09:00
Daan De Meyer b416ac0e15 basic: Move ratelimit logging functions to log-ratelimit.h 2025-05-25 03:28:50 +09:00
Daan De Meyer dbef7bcf29 shared: Followups for #37575 2025-05-25 03:28:50 +09:00
Daan De Meyer f989d2853f libudev: Clean up includes
Split out of #37344.
2025-05-25 02:15:36 +09:00
Yu Watanabe 9b6bb9a43c Bugprone argument comment 7 (#37556)
Follow up from https://github.com/systemd/systemd/pull/37507
2025-05-25 01:53:13 +09:00
Jelle van der Waa 637f623920 treewide: correct argument name to user_icon / askpw_icon 2025-05-24 17:13:39 +02:00
Jelle van der Waa 79d70bb282 killall: correct argument comment 2025-05-24 17:13:39 +02:00
Jelle van der Waa 8b67ed854f validatefs: correct argument comments
These functions come from util-linux and can't be renamed.
2025-05-24 17:13:39 +02:00
Jelle van der Waa 5c101b06ea sd-bus: rename 'add_callback' -> 'install_callback'
Throughout the whole codebase it is called install_callback.
2025-05-24 17:13:39 +02:00
Jelle van der Waa 03722d7120 tpm2-util: rename 'policy' -> 'pcrlock_policy'
Follow the used argument comment naming.
2025-05-24 17:13:39 +02:00
Jelle van der Waa d7bf63bcad creds-util: correct argument comment 2025-05-24 17:13:39 +02:00
Jelle van der Waa a56fc8a070 pcrlock: correct argument comment 2025-05-24 17:13:39 +02:00
Jelle van der Waa 3ce64b0fbe cgroup-util: rename 'kill_log' -> 'log_kill'
Rename according to the implementation.
2025-05-24 17:13:39 +02:00
Jelle van der Waa 684cd01f0e cgroup-util: rename 's' -> 'killed_pids' 2025-05-24 16:58:56 +02:00
Jelle van der Waa 457ce7d94a machine-id-setup: correct argument comments 2025-05-24 16:58:56 +02:00
Jelle van der Waa 3f0a9665d9 dissect-image: rename 'dest' -> 'where'
Consistently name dissect_image_mount*.
2025-05-24 16:58:55 +02:00
Jelle van der Waa 6217935422 sd-bus: prefix return arguments with 'ret_' for sd_bus_message_peek_type 2025-05-24 16:58:55 +02:00
Jelle van der Waa f54b0adec9 fuzz: correct argument comment 2025-05-24 16:58:55 +02:00
Daan De Meyer 69a283c5f2 shared: Clean up includes
Split out of #37344.
2025-05-24 14:00:44 +02:00
Yu Watanabe 9d75fb9647 linux: update kernel headers from v6.15-rc7 2025-05-24 03:04:22 +09:00
Yu Watanabe c2fcfda20f hwdb: merge entries for Ettus Research B200
Follow-up for 9dad00ef94.
2025-05-24 01:57:12 +09:00
Yu Watanabe 9a277f7106 hostname: two trivial cleanups (#37583) 2025-05-24 01:56:25 +09:00
Mike Yuan 4108529d3e 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.
2025-05-23 17:46:26 +02:00
Lennart Poettering 3ae6e64641 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.
2025-05-24 00:23:14 +09:00
Yu Watanabe 5b207b3cbf path-util: add flavour of path_startswith() that leaves a leading slash in place (#37572) 2025-05-24 00:20:40 +09:00
AsciiWolf f6f8c6e9fd hwdb: add RTL-SDR devices 2025-05-24 00:11:21 +09:00
Yu Watanabe dda0e5aa95 hostname: use FOREACH_ARGUMENT() at one more place
Follow-up for 29a352e8c1.
2025-05-23 23:24:38 +09:00
Yu Watanabe 2af3cad0cd hostname: use proper type 2025-05-23 23:19:40 +09:00
Yu Watanabe 2c1cc93840 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
2025-05-23 23:17:01 +09:00
Ivan Kruglov 9ffa967413 core: lowercase Context/Runtime
Varlink fields are camelCase unless well defined config names.
2025-05-23 06:32:49 -07:00
Ivan Kruglov 7a3c7344fa core: manager-varlink.{c,h} -> varlink-manager.{c,h} 2025-05-23 06:31:46 -07:00
AsciiWolf 9dad00ef94 hwdb: add Ettus Research SDR devices 2025-05-23 12:15:12 +01:00
Luca Boccassi 7c7aeb9b8d 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 382e4da4a5
2025-05-23 09:53:03 +02:00
Lennart Poettering ceed11e465 path-util: invert PATH_STARTSWITH_ACCEPT_DOT_DOT flag
As requested: https://github.com/systemd/systemd/pull/37572#pullrequestreview-2861928094
2025-05-23 06:51:45 +02:00