Commit Graph

85752 Commits

Author SHA1 Message Date
Mike Yuan
742308caba nspawn: drop compat glue for kernel < 3.14 2026-01-19 12:51:55 +01:00
Mike Yuan
254445e927 README: kcmp() is unnecessary if we have F_DUPFD_QUERY (v6.10) 2026-01-19 12:51:55 +01:00
Mike Yuan
77b4a411ac README: CONFIG_DEVPTS_MULTIPLE_INSTANCES has been dropped in v4.7 2026-01-19 12:51:55 +01:00
Mike Yuan
a3507f6628 mkosi/opensuse: remove resolved TODO
Follow-up for ff9c4ace70
2026-01-19 03:06:30 +01:00
Mike Yuan
537045ec2f recurse-dir: remove stale comment
Follow-up for 6393b847f4
2026-01-19 03:06:30 +01:00
Mike Yuan
30f3a7ad51 TODO: remove completed entries 2026-01-19 03:04:54 +01:00
cyclopentane
465f6a6284 cryptenroll,cryptsetup,shutdown: only call mlockall if we have CAP_IPC_LOCK
Calling mlockall in an unprivileged process most notably had the effect
of making systemd-cryptenroll OOM while trying to open a normal-sized
argon2 keyslot due to it hitting RLIMIT_MEMLOCK.
2026-01-18 19:15:30 +01:00
Mike Yuan
6b3c289406 core: a few cleanups, follow-ups for MemoryTHP= (#40382) 2026-01-18 18:25:22 +01:00
Mike Yuan
a91bb7459b core/exec-invoke: dedup error handling
Also, do not log about errno if it's suffciently encoded
in the log text already.
2026-01-18 16:42:22 +01:00
Mike Yuan
64d0c3cf2c shared/varlink-io.systemd.Unit: MemoryTHP is not nullable 2026-01-18 16:42:21 +01:00
Mike Yuan
64a2712db5 core: rearrange MemoryTHP=
* Place related logic closer to MemoryKSM=, do not interleave
  it with various BPF delegation knobs
* MemoryTHP= is a execute directive, not namespace
2026-01-18 16:42:21 +01:00
Mike Yuan
bbce82dfab core/unit: drop unneeded unit_modify_nft_set() call during coldplug
We re-realize all unit cgroups upon daemon-reload, and
cgroup_context_apply() would take care of NFT set refreshing.
No need to duplicate that in unit_coldplug().
2026-01-18 16:34:12 +01:00
Mike Yuan
417a8223af core/exec-credential: group write_credential() with maybe_decrypt_and_write_credential()
As requested in
https://github.com/systemd/systemd/pull/40093#discussion_r2661389365
2026-01-18 16:34:11 +01:00
Yu Watanabe
c02f81cb2d include: update linux kernel headers from v6.19-rc5 2026-01-18 15:32:08 +01:00
novenary
399c8152ae hwdb: set touchpad resolution for all ThinkPad T49x chassis laptops
Confirmed with owners of T495 and T14 Gen2i.
P14s should be identical.
2026-01-18 21:26:04 +09:00
Yu Watanabe
112cbc3790 journal-file: do not trigger assertion on removed or corrupted journal file
When a journal file is removed or corrupted, then the value `p`, which is
read from Object.data.entry_offset, may be zero.

Note, journal_file_move_to_object() checks the passed offset and return
-EBADMSG if it is invalid.

Fixes the issue reported at
https://github.com/systemd/systemd/pull/40372#issuecomment-3762907261.
2026-01-18 21:25:20 +09:00
Daan De Meyer
103f7d2303 fd-util: introduce XAT_FDROOT fd shortcut for the root dir (#39244) 2026-01-18 11:57:11 +01:00
Yu Watanabe
fe7692227d mountfsd: fix potential memleak on malicious json message
This also makes json_log_oom() used on OOM.

Follow-up for 78b40aea61.
2026-01-18 18:03:21 +09:00
Yu Watanabe
f02e4b4f38 Several follow-ups for removal of SysV compat (#40371) 2026-01-18 18:02:53 +09:00
Mike Yuan
73b82070e1 docs,man: more SysV compat removal notes 2026-01-18 15:50:54 +09:00
Yu Watanabe
ff9c4ace70 mkosi/opensuse: do not build/install systemd-sysvcompat package
The package is now empty. It is not necessary to build it.

This also drops unnecessary modifications for files.*.
2026-01-18 15:49:37 +09:00
Yu Watanabe
badff4ce2a meson: update description of deprecated options 2026-01-18 15:48:02 +09:00
Yu Watanabe
a3f0d88fee systemctl: drop unnecessary shortcut for removed SysV compat support
Follow-up for 986fee6217.
2026-01-18 15:48:02 +09:00
Yu Watanabe
01885138be Assorted cleanups (#40373) 2026-01-18 14:41:44 +09:00
Heran Yang
c55aadc13e core/unit: re-find dropin paths of a unit after writting settings
Fixes: ab932a622d ("core: simplify unit_need_daemon_reload() a bit")
Fixes #35710

Co-authored-by: Jian Wen <wenjianhn@gmail.com>
2026-01-18 14:14:24 +09:00
Mike Yuan
12effc32da core/unit: several cleanups for unit_queue_job_check_and_collapse_type()
* Rename to _mangle_type() - it turned out this one doesn't collapse
  anything, but rather mangles the type if reload_if_possible is set.
  Hence name accordingly.
* Use -ELIBEXEC rather than -EUNATCH to denote dependency only units.
* Add a comment about the JOB_STOP and load state check.
2026-01-17 15:00:10 +01:00
Mike Yuan
490067d41c core/dbus-manager: be explicit that job enqueue errors are from EnqueueMarkedJobs call
Follow-up for 502d6f4bc9
2026-01-17 15:00:10 +01:00
Mike Yuan
7fb883fea8 core/dbus-unit: remove reference to cgroup v1 attribute 2026-01-17 15:00:09 +01:00
Mike Yuan
0fcad6eead core/main: use saturate_add() where appropriate 2026-01-17 15:00:09 +01:00
Mike Yuan
3e9ed98514 logind-varlink: add missing validation for session class
D-Bus CreateSession() method carries this check, but the varlink
one didn't.
2026-01-17 15:00:09 +01:00
Mike Yuan
7b6b7d484d util: two fixes regarding ansi color handling (#40366) 2026-01-17 14:57:35 +01:00
Lennart Poettering
6527f64600 test-fs-util: some basic tests for XAT_FDROOT 2026-01-17 12:37:55 +01:00
Lennart Poettering
80499cf1c8 find-esp: make use of XAT_FDROOT 2026-01-17 12:37:39 +01:00
Lennart Poettering
7e64b58f4c kernel-image: pass through XAT_FDROOT 2026-01-17 12:37:39 +01:00
Lennart Poettering
192f71baed id128-util: pass through XAT_FDROOT 2026-01-17 12:37:39 +01:00
Lennart Poettering
95abe4beff stat-util: write up XAT_FDROOT in stat-util.[ch] 2026-01-17 12:37:39 +01:00
Lennart Poettering
c67abc9c43 chase: extend coverage of the root fd shortcut
Let's use dir_fd_is_root() to check if we are looking at the real root
fs.
2026-01-17 12:37:39 +01:00
Lennart Poettering
ded2531764 chase: optimize the special case where no root dir specified
Now that we can recognize the root dir in chaseat() sanely, let's use it
top optimize the very common special case where we have no root dir to
consider, and directly call open_tree().
2026-01-17 12:37:39 +01:00
Lennart Poettering
874971b1c0 chase: wire up XAT_FDROOT 2026-01-17 12:37:39 +01:00
Lennart Poettering
5667cbcacf fd-util: wire up XAT_FDROOT in various really basic fd-util.h calls 2026-01-17 12:37:39 +01:00
Lennart Poettering
ef582ab201 fs-util: wire up XAT_FDROOT in xopenat_full() and access_fd() 2026-01-17 12:37:33 +01:00
Lennart Poettering
ee79c9d309 fd-util: introduce XAT_FDROOT fd shortcut for the root dir
This takes inspiration from AT_FDCWD, but always references the root dir
rather than the cwd. This allows various convenience uses, as we can now
reference the root dir without actually allocating an fd for chaseat(),
fd_get_path() and various others.

The value of XAT_FDROOT is chosen so that it is not a valid fd (essential,
because we do not intend to hook this up everywhere, just where we need
it, just like AT_FCWD only works in some syscalls), and we want uses at
the wrong places to fail cleanly. It also uses a valud outside of the
range where we usually return negative errnos, i.e. < -ERRNO_MAX.
2026-01-17 12:35:33 +01:00
Lennart Poettering
e09b5366e5 string-util: accept ":" when stripping ANSI color sequences
Since 6eabe9f2ff we generate sequences
with ":", hence we better also know how to strip them.

(Without this patch we'd strip simple ANSI colors, but not RGB ones that
use ":" syntax).

(While we are at it, also drop a duplicate "0" in the list of valid
chars)
2026-01-17 12:07:36 +01:00
Lennart Poettering
24c315e911 ansi-color: convert one more ANSI sequence from ";" to ":" separators
This is a follow-up for 6eabe9f2ff where
one sequence was forgotten.
2026-01-17 12:07:05 +01:00
Lennart Poettering
947ecb0812 socket: turn of loud logging when setting up sockopts in container fails due to privs
Various socktops will fail if we run in a container, due to lack of
privs (for example SO_RECVFORCE as used by the journald sockets). That's
typically not a big issue. Hence downgrade the log level.

Follow-up for: f7df0eab8d
2026-01-17 08:47:14 +09:00
Lennart Poettering
834a7dfc12 hostnamectl: tweak three chassis emojis 2026-01-17 08:46:26 +09:00
Yu Watanabe
7d23749ddd mkfs-utils: also set $E2FSPROGS_FAKE_TIME if $SOURCE_DATE_EPOCH is set
Follow-up for 7bf0d0c46e.

To support e2fsprogs older than v1.47.1 (released 2024-05-21).

Suggested-by: ZauberNerd <zaubernerd@zaubernerd.de>
2026-01-17 08:45:50 +09:00
Yu Watanabe
3da9b65b30 hwdb: make three more hwdb files parsed by parse_hwdb.py
This also makes 70-lights.hwdb installed. The file was introduced by
106f64cbd6, but never installed.

Moreover, this makes the parser also check bluetooth modalias patterns.
2026-01-17 02:53:14 +09:00
Michael Vogt
62168b1e9f boot: change some log_error -> log_warning where appropriate
This is a small followup for
https://github.com/systemd/systemd/pull/40344#discussion_r2695031041
(thanks Daan and Lennart!).

There are quite a few places in the code that currently log a
`log_error()` when a `log_warning()` is more appropriate because
the error is ignored. This commit now shows those as warnings.
2026-01-17 02:52:48 +09:00
Yu Watanabe
4ac445c152 udev/net: support more ethtool features
Closes #39318.
2026-01-17 02:52:20 +09:00