Oğuz Ersen [Wed, 24 Apr 2024 05:36:08 +0000 (07:36 +0200)]
po: Translated using Weblate (Turkish)
Currently translated at 100.0% (233 of 233 strings)
Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/tr/
Translation: systemd/main
Luna Jernberg [Wed, 24 Apr 2024 05:36:07 +0000 (07:36 +0200)]
po: Translated using Weblate (Swedish)
Currently translated at 100.0% (233 of 233 strings)
Co-authored-by: Luna Jernberg <bittin@reimu.nl>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/sv/
Translation: systemd/main
Luca Boccassi [Tue, 23 Apr 2024 09:47:49 +0000 (10:47 +0100)]
man: document service types that record ExecMainHandoverTimestamp
Follow-up for
93cb78aee2cff8109a5a70128287732f03d7a062
Yu Watanabe [Wed, 24 Apr 2024 02:44:06 +0000 (11:44 +0900)]
Merge pull request #32438 from YHNdnzj/taint-cleanup
core/manager: clean up taint strings
Mike Yuan [Tue, 23 Apr 2024 14:33:10 +0000 (22:33 +0800)]
core/manager: add unmerged-bin taint
Mike Yuan [Tue, 23 Apr 2024 14:20:57 +0000 (22:20 +0800)]
core/manager: rearrange taint tags
Mike Yuan [Tue, 23 Apr 2024 13:24:55 +0000 (21:24 +0800)]
core/manager: drop obsolete cgroup taint string
Wwe can't boot on systems without cgroup anyway
(even cgroup v1 will be gone pretty soon).
Mike Yuan [Tue, 23 Apr 2024 14:05:09 +0000 (22:05 +0800)]
mount-setup: use mount_verbose_full where appropriate
Luca Boccassi [Tue, 23 Apr 2024 17:36:53 +0000 (19:36 +0200)]
Merge pull request #32437 from keszybz/notify-fixups-split-out
Two fixups for sd-notify split out from #32093
Luca Boccassi [Tue, 23 Apr 2024 16:45:43 +0000 (18:45 +0200)]
Merge pull request #32434 from poettering/cryptenroll-prefer-var
cryptenroll: prefer looking at /var/ instead of /
Simon Fowler [Tue, 23 Apr 2024 04:27:58 +0000 (14:27 +1000)]
Add self-contained Python sd_notify example.
This complements the existing C example.
Antonio Alvarez Feijoo [Fri, 5 Apr 2024 13:24:40 +0000 (15:24 +0200)]
sysext: do not return 0 if `unmerge()` fails in the `refresh()` function.
Actually, return the result of `unmerge()` if it is called in the `refresh()`
function.
Fixes
8662fcbcf1f31725998bd1ebe706ac813b053962
Zbigniew Jędrzejewski-Szmek [Tue, 23 Apr 2024 13:47:57 +0000 (15:47 +0200)]
Merge pull request #32435 from YHNdnzj/followup
Some follow-ups for recent PRs
Lennart Poettering [Tue, 23 Apr 2024 11:17:10 +0000 (13:17 +0200)]
update NEWS
Lennart Poettering [Tue, 23 Apr 2024 10:55:17 +0000 (12:55 +0200)]
cryptenroll: use [] in --help text to indicate block device argument is now optional
Lennart Poettering [Tue, 23 Apr 2024 10:35:38 +0000 (12:35 +0200)]
cryptenroll: default to block device backing /var/ rather than /
With
1df4b21abdb9e562805a7b006d179507182f845e we started to default to
enrolling into the LUKS device backing the root fs if none was specified
(and no wipe operation is used). This changes to look for /var/ instead.
On most systems /var/ is going to be on the root fs, hence this change
is with little effect.
However, on systems where / and /var/ is separate it makes more sense to
default to /var/ because that's where the persistent and variable data
is placed (i.e. where LUKS should be used) while / doesn't really have
to be variable, could as well be immutable, or ephemeral. Hence /var/
should be a safer default.
Or to say this differently: I think it makes sense to support systems
with /var/ being on / well. I also think it makes sense to support
systems with them being separate, and /var/ being variable and
persistent. But any other kind of system I find much less interesting to
support, and in that case people should just specify the device name.
Also, while we are at it, tighten the checks a bit, insist on a dm-crypt
+ LUKS superblock before continuing.
And finally, let's print a short message indicating the device we
operate on.
Yu Watanabe [Mon, 22 Apr 2024 08:25:31 +0000 (17:25 +0900)]
journal: do not rotate unrelated journal files when full or corrupted
When we fail to add an entry to a journal file, typically when the file
is full or corrupted, it is not necessary to rotate other journal files.
Not only that's unnecessary, rotating all journal files allows
unprivileged users to wipe system or other user's journals by writing
many journal entries to their own user journal file.
Let's rotate all journal files only when
- it is really requested by a privileged user (e.g. by journalctl --rotate), or
- the system time jumps backwards.
And, otherwise rotate only the journal file we are currently writing.
Daan De Meyer [Mon, 22 Apr 2024 20:58:49 +0000 (22:58 +0200)]
core: Limit terminal reset using ANSI sequences to /dev/console
Doing this in reset_terminal_fd() is a bit too invasive, see
https://github.com/systemd/systemd/pull/32406#issuecomment-
2070923583.
Let's only do this for /dev/console so that we work around weird firmwares
disabling line-wrapping, but avoid messing too much with other things.
While we're at it, let's handle more than just line wrapping, and do a
more general reset of stuff to get the terminal into a sane state.
Mike Yuan [Tue, 23 Apr 2024 11:51:07 +0000 (19:51 +0800)]
network: suggest using "networkctl edit" instead of copying manually
Mike Yuan [Tue, 23 Apr 2024 10:38:34 +0000 (18:38 +0800)]
cryptenroll: sort includes
Follow-up for
1df4b21abdb9e562805a7b006d179507182f845e
Mike Yuan [Tue, 23 Apr 2024 10:37:26 +0000 (18:37 +0800)]
core/service: also allow updating main pid when SERVICE_STOP
Follow-up for
f5b72af50d2bb6879f0e6d8ea10f34e9c111dcd1
See also: https://github.com/systemd/systemd/pull/32120#discussion_r1575992623
Zbigniew Jędrzejewski-Szmek [Tue, 23 Apr 2024 11:31:40 +0000 (13:31 +0200)]
Merge pull request #32428 from poettering/sd-notify-reboot-param
pid1: send shutdown type and reboot argument to supervisor via sd_notify()
Ludwig Nussel [Wed, 28 Feb 2024 13:46:05 +0000 (14:46 +0100)]
cryptenroll: use root device by default
Daan De Meyer [Tue, 23 Apr 2024 10:28:48 +0000 (12:28 +0200)]
Merge pull request #32433 from DaanDeMeyer/fix
mkosi: Fix Arch Linux package glob
Adrian Vovk [Mon, 22 Apr 2024 21:21:58 +0000 (17:21 -0400)]
manager: Improve freeze/thaw for unrealized cgroup
This is a follow-up for
e50bfc89cefd4aafedaf2a7eacbf8b5ed80b134e
In that commit, we made Freeze/Thaw work with unrealized cgroups.
However, the unit was left in a strange state: it would be frozen by the
kernel but systemd would be unaware, and it remained possible to try and
realize the cgroup while the unit is supposed to be frozen. This commit
fixes the state tracking and prevents cgroups from being realized when
the unit is frozen.
Lennart Poettering [Tue, 23 Apr 2024 10:11:53 +0000 (12:11 +0200)]
Merge pull request #32427 from poettering/systemctl-help-missing
systemctl: add missing --help entries
dependabot[bot] [Tue, 23 Apr 2024 09:40:35 +0000 (09:40 +0000)]
build(deps): bump pkg/debian from `
30c77a7` to `
733ac7c`
Bumps pkg/debian from `
30c77a7` to `
733ac7c`.
---
updated-dependencies:
- dependency-name: pkg/debian
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Daan De Meyer [Tue, 23 Apr 2024 09:58:44 +0000 (11:58 +0200)]
mkosi: Configure lower retention limit for package artifacts
This is more than 0.5G per job, so let's drop the retention to
4 days to make sure we don't hit github's limits.
Daan De Meyer [Tue, 23 Apr 2024 09:53:28 +0000 (11:53 +0200)]
mkosi: Fix Arch Linux package glob
Michal Sekletar [Fri, 5 Apr 2024 15:34:23 +0000 (17:34 +0200)]
service: allow MainPID= updates during stop of the service
Example use case is a migration of MainPID to an auxiliary scope.
Daan De Meyer [Tue, 23 Apr 2024 09:27:23 +0000 (11:27 +0200)]
Merge pull request #32352 from DaanDeMeyer/test
test: Various mkosi integration test improvements
Lennart Poettering [Tue, 23 Apr 2024 08:14:24 +0000 (10:14 +0200)]
update TODO
Lennart Poettering [Tue, 23 Apr 2024 08:14:41 +0000 (10:14 +0200)]
systemctl: set reboot argument for most forms of shutdown, not just plain reboots
This doesn't hurt anyway, and is useful now that we propagate the string
via sd_notify() too.
Lennart Poettering [Mon, 22 Apr 2024 15:32:12 +0000 (17:32 +0200)]
shutdown: send an sd_notify() message on shutdown with the shutdown reason and boot param
This is kinda nice in containers, to exfiltrate a string from the
container on shutdown.
Daan De Meyer [Fri, 19 Apr 2024 08:54:38 +0000 (10:54 +0200)]
mkosi: Run integration tests in CI
We do the image build and run the tests in a btrfs loopback so we
can make use of btrfs subvolumes and COW to keep the disk space
requirements to a minimum and speed up the ephemeral copies we make
of the image to run the tests.
We also switch to building debug packages and publishing the built
packages as artifacts.
Daan De Meyer [Fri, 19 Apr 2024 07:17:58 +0000 (09:17 +0200)]
test: Various mkosi integration test improvements
- Stop using logging module since the default output formatting is
pretty bad. Prefer print() for now.
- Log less, logging the full mkosi command line is rather verbose,
especially when it contains multi-line dropins.
- Streamline the journalctl command we output for debugging failed
tests.
- Don't force usage of the disk image format.
- Don't force running without unit tests.
- Don't force disabling RuntimeBuildSources.
- Update documentation to streamline the command for running a single
test and remove sudo as it's not required anymore.
- Improve the console output by having the test unit's output logged
to both the journal and the console.
- Disable journal console log forwarding as we have journal forwarding
as a better alternative.
- Delete existing journal file before running test.
- Delete journal files of succeeded tests to reduce disk usage.
- Rename system_mkosi target to just mkosi
- Pass in mkosi source directory explicitly to accomodate arbitrary
build directory locations.
- Add test interactive debugging if stdout is connected to a tty
- Stop explicitly using the 'system' image since it'll likely be
dropped soon.
- Only forward journal if we're not running in debugging mode.
- Stop using testsuite.target and instead just add the necessary
extras to the main testsuite unit via the credential dropin.
- Override type to idle so test output is not interleaved with
status output.
- Don't build mkosi target by default
- Always add the mkosi target if mkosi is found
- Remove dependency of the integration tests on the mkosi target
as otherwise the image is always built, even though we configure
it to not be built by default.
- Move mkosi output, cache and build directory into build/ so that
invocations from meson and regular invocations share the same
directories.
- Various aesthetic cleanups.
Daan De Meyer [Tue, 23 Apr 2024 07:09:37 +0000 (09:09 +0200)]
mkosi: Deal with ubuntu's special debug packages
Building debug packages on ubuntu requires the "debug" option to be
specified explicitly. Debug packages on Ubuntu have the .ddeb extension,
so let's make sure we handle that by copying the .ddeb packages in the
build script as well.
Daan De Meyer [Mon, 22 Apr 2024 21:45:50 +0000 (23:45 +0200)]
mkosi: Use -fdebug-prefix-map= instead of -ffile-prefix-map=
-ffile-prefix-map= implies -fmacro-prefix-map= which is incompatible
with our definition of PROJECT_FILE.
See https://github.com/systemd/systemd/issues/32417.
-fdebug-prefix-map= only affects debuginfo without affecting macros.
Daan De Meyer [Mon, 22 Apr 2024 13:26:35 +0000 (15:26 +0200)]
mkosi: Update to latest
Lennart Poettering [Tue, 23 Apr 2024 07:58:05 +0000 (09:58 +0200)]
systemctl: add forgotten --after/--before to --help text
Follow-up for:
afba41995de65d8f378b138ea6d9804be32625a3
Lennart Poettering [Mon, 22 Apr 2024 16:05:52 +0000 (18:05 +0200)]
systemctl: add forgotten --reboot-argument= to --help text
Follow-up for:
dae710bef121bfc379423d9d75e7d792074ab71c
Lennart Poettering [Mon, 22 Apr 2024 16:04:34 +0000 (18:04 +0200)]
systemctl: add forgotten --message= to --help text
Follow-up for:
9ef15026c0e7e6600372056c43442c99ec53746e
Luca Boccassi [Mon, 22 Apr 2024 23:01:39 +0000 (00:01 +0100)]
mkosi: mask isc-dhcp-server
isc-dhcp-server does not ship units, only sysv scripts, so the mkosi
presets that disable it have no effect. The generated unit is started on
each boot and fails, causing delays and noise.
Mask it so that the generated unit is overridden. It is installed only
to bring in binaries used by the networkd tests anyway.
Luca Boccassi [Mon, 22 Apr 2024 23:02:34 +0000 (01:02 +0200)]
Merge pull request #32413 from yuwata/network-radv-validator
network/radv: several cleanups for validating configs
Lennart Poettering [Mon, 22 Apr 2024 15:30:58 +0000 (17:30 +0200)]
network: add .link file to match 80-namespace.network
This file makes clear the interface shall be owned by networkd.
This does what
658169e6d307b5b1aea0d82b4a6430fa9d529c68 did for nspawn's
regular devices for the devices defined through
8aee931e7ae1adb01eeac0e1e4c0aef6ed3969ec too.
Lennart Poettering [Mon, 22 Apr 2024 15:30:11 +0000 (17:30 +0200)]
network: add "mac" to alternatives name policy by default
Alternative names are basically free, hence add "mac" there too, to make
it easier to see what names could be used as primary options too.
Mike Yuan [Mon, 22 Apr 2024 16:06:11 +0000 (00:06 +0800)]
kernel-install/60-ukify: also search in {/run,/usr/local/lib}/kernel/
After
db26d8025e5bbc188f93b645124126bbc550caa5,
kernel-install takes config files under /run/
and /usr/local/lib/ into account too. The same
should apply to ukify.
Note that ukify when invoked alone searches under
/run/systemd/, /etc/systemd/, /usr/local/lib/systemd/,
and /usr/lib/systemd/, respectively, which is against
our usual order...
Sam Leonard [Mon, 22 Apr 2024 15:11:28 +0000 (16:11 +0100)]
machined: fix invalid edge case in machine_new
Guido Leenders [Fri, 19 Apr 2024 11:30:32 +0000 (13:30 +0200)]
Document effective owner of stdout/stderr log file upon creation
The log files defined using file:, append: or truncate: inherit the owner and other privileges from the effective user running systemd.
The log files are NOT created using the "User", "Group" or "UMask" defined in the service.
Yu Watanabe [Mon, 22 Apr 2024 16:34:46 +0000 (01:34 +0900)]
ukify: swap the ordering of config search paths
Let's follow our usual ordering.
Follow-up for
a05fa30f88e522101c8412deecd7f598e2254b20.
Lennart Poettering [Mon, 22 Apr 2024 15:32:51 +0000 (17:32 +0200)]
test: ensure all architecture ids we define definitely fit into .v/ patterns
Just some safety checks so that we never regress on this: make sure all
architectur IDs we define are embeddable safely in .v/ entry file names.
Frantisek Sumsal [Mon, 22 Apr 2024 18:02:32 +0000 (20:02 +0200)]
Merge pull request #32412 from weblate/weblate-systemd-main
Translations update from Fedora Weblate
Daan De Meyer [Sat, 20 Apr 2024 19:13:18 +0000 (21:13 +0200)]
test: Rework TEST-02-UNITTESTS
Currently, A large amount of unit test output is logged directly
to the console instead of to the per test log file as any subprocesses
executed by a test manager will detect that stderr is not connected
to the journal and log directly to /dev/console instead.
To solve this issue, let's make sure all tests are connected directly
to the journal by running them with systemd-run. We also simplify the
entire test script by getting rid of the custom queue and replicating
it with xargs instead. By using bash's function export feature, we can
make our run_test() function available to the bash subprocess spawned
by xargs.
Once a test is finished, we read its logs from the journal and put them
in the appropriate file if needed.
Daan De Meyer [Mon, 22 Apr 2024 17:26:52 +0000 (19:26 +0200)]
Merge pull request #32392 from DaanDeMeyer/executor-log-level
core: Set a sensible systemd-executor log level in test runs
Weblate [Mon, 22 Apr 2024 17:15:01 +0000 (19:15 +0200)]
po: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/
Translation: systemd/main
Martin Srebotnjak [Mon, 22 Apr 2024 17:15:01 +0000 (19:15 +0200)]
po: Translated using Weblate (Slovenian)
Currently translated at 10.7% (25 of 233 strings)
po: Translated using Weblate (Slovenian)
Currently translated at 9.8% (23 of 233 strings)
Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/sl/
Translation: systemd/main
Yu Watanabe [Sat, 20 Apr 2024 05:36:55 +0000 (14:36 +0900)]
network/radv: drop unnecessary conditions
sd_radv_set_xyz() will handle invalid values gracefully.
Yu Watanabe [Sat, 20 Apr 2024 05:36:40 +0000 (14:36 +0900)]
network/radv: warn about non-zero preference with zero lifetime
Note that the misconfiguration will be handled gracefully. So it is not
necessary to adjust value here. Let's only warn about that.
Yu Watanabe [Sat, 20 Apr 2024 05:34:05 +0000 (14:34 +0900)]
network/radv: verify [IPv6Prefix] section or friends in network_adjust_radv()
Previously, network_drop_invalid_pref64_prefixes() was never called.
This also fixes that.
Yu Watanabe [Mon, 22 Apr 2024 16:41:31 +0000 (01:41 +0900)]
Yu Watanabe [Mon, 22 Apr 2024 16:40:24 +0000 (01:40 +0900)]
Luca Boccassi [Mon, 22 Apr 2024 16:40:55 +0000 (18:40 +0200)]
Merge pull request #32401 from bluca/chores
RC1 chores
Luca Boccassi [Mon, 22 Apr 2024 16:14:10 +0000 (18:14 +0200)]
Merge pull request #32396 from YHNdnzj/verb-required
shared/verbs: show list of verbs when missing
Daan De Meyer [Mon, 22 Apr 2024 16:01:06 +0000 (18:01 +0200)]
mount-util: Silence noisy trace log message
Lennart Poettering [Mon, 22 Apr 2024 15:48:14 +0000 (17:48 +0200)]
Merge pull request #32369 from DaanDeMeyer/serial
terminal-util: Enable line wrapping in reset_terminal_fd()
Lennart Poettering [Mon, 22 Apr 2024 15:47:51 +0000 (17:47 +0200)]
Merge pull request #32402 from poettering/tpm2-setup-pcrextend-order
units: order tpm2-setup-early and pcrphase-initrd against each other
Lennart Poettering [Mon, 22 Apr 2024 15:41:39 +0000 (17:41 +0200)]
Merge pull request #32399 from poettering/doc-fixes-256
various documentation fixes (plus minor other work)
Lennart Poettering [Mon, 22 Apr 2024 15:30:06 +0000 (17:30 +0200)]
update TODO
Mike Yuan [Mon, 22 Apr 2024 15:00:22 +0000 (23:00 +0800)]
Daan De Meyer [Fri, 19 Apr 2024 20:48:06 +0000 (22:48 +0200)]
core: Set a sensible systemd-executor log level in test runs
Luca Boccassi [Mon, 22 Apr 2024 13:46:24 +0000 (14:46 +0100)]
Update translation files
Luca Boccassi [Thu, 14 Mar 2024 23:44:20 +0000 (23:44 +0000)]
nspawn: ensure single-process container running as --user can access credentials
When starting a container with --user, the new uid will be resolved and switched to
only in the inner child, at the end of the setup, by spawning getent. But the
credentials are set up in the outer child, long before the user is resolvable,
and the directories/files are made only readable by root and read-only, which
means they cannot be changed later and made visible to the user.
When this particular combination is specified, it is obvious the caller wants
the single-process container to be able to use credentials, so make them world
readable only in that specific case.
Fixes https://github.com/systemd/systemd/issues/31794
Daan De Meyer [Mon, 22 Apr 2024 08:21:13 +0000 (10:21 +0200)]
mkosi: Drop workaround to re-enable serial console line wrapping
Since we do it in reset_terminal_fd() now, there's no need to carry
this workaround anymore.
Daan De Meyer [Fri, 19 Apr 2024 19:58:18 +0000 (21:58 +0200)]
terminal-util: Enable line wrapping in reset_terminal_fd()
The qemu seabios firmware disables serial console line wrapping. Let's
make sure we re-enable it again when we reset a terminal to some sane
defaults.
To avoid potentially blocking on writing to the terminal, we put it
in nonblocking mode and add a timeout of 50ms.
Daan De Meyer [Mon, 22 Apr 2024 08:16:40 +0000 (10:16 +0200)]
fd-util: Return 1 from fd_nonblock() if we actually change the mode
Luca Boccassi [Mon, 22 Apr 2024 13:10:56 +0000 (14:10 +0100)]
Update systemd.pot
Luca Boccassi [Mon, 22 Apr 2024 13:08:55 +0000 (14:08 +0100)]
Update autosuspend hwdb
Luca Boccassi [Mon, 22 Apr 2024 13:08:14 +0000 (14:08 +0100)]
Update hwdb
Luca Boccassi [Mon, 22 Apr 2024 13:04:33 +0000 (14:04 +0100)]
NEWS: update contributors list
Luca Boccassi [Mon, 22 Apr 2024 13:26:24 +0000 (14:26 +0100)]
NEWS: mention ExecMainHandoverTimestamp
Lennart Poettering [Mon, 22 Apr 2024 11:08:22 +0000 (13:08 +0200)]
man: document that IPAccounting= works for system services only
Fixes: #20356
Lennart Poettering [Mon, 22 Apr 2024 11:06:48 +0000 (13:06 +0200)]
man: be explicit that we don't proxy SO_PEER*, SCM_RIGHTS and co.
Fixes: #22744
Lennart Poettering [Mon, 22 Apr 2024 11:02:08 +0000 (13:02 +0200)]
man: document that ReadOnlyPaths= doesn't affect ability to connect to AF_UNIX
Fixes: #23470
Lennart Poettering [Mon, 22 Apr 2024 10:57:38 +0000 (12:57 +0200)]
man: document that "systemctl set-environment" cannot be used to unset env vars configured via config file
Fixes: #28167
Lennart Poettering [Mon, 22 Apr 2024 10:39:30 +0000 (12:39 +0200)]
man: say explicitly that $LESS + $LESSCHARSET have no effect on less invocations by systemd tools
Fixes: #29479
Lennart Poettering [Mon, 22 Apr 2024 10:32:54 +0000 (12:32 +0200)]
resolved: tighten the rules a bit on valid DNS-SD service identifiers
Let's insist that the ID is suitable for inclusion in a filename, as one
of the most basic of requirements.
Lennart Poettering [Mon, 22 Apr 2024 10:30:16 +0000 (12:30 +0200)]
resolved: rename DnssdService "name" field to "id"
"name" is a bit confusing since this field is *not* the DNS-SD service
identifier, bust just some string derived from the .dnssd filename that
is used as handle for the service. Let's hence give it a better name:
"id".
While we are at it, switch from basename() to path_extract_filename().
Lennart Poettering [Mon, 22 Apr 2024 10:23:03 +0000 (12:23 +0200)]
resolved: rename DnssdService.filename field to .path
It contains a full path, not just a filename, hence name it
appropriately.
Lennart Poettering [Mon, 22 Apr 2024 10:02:51 +0000 (12:02 +0200)]
man: document missing resolved D-Bus APIs
Fixes: #29598
Lennart Poettering [Mon, 22 Apr 2024 09:48:20 +0000 (11:48 +0200)]
man: document that StateDirectory= trumps ProtectSystem=strict explicitly
Fixes: #29798
Lennart Poettering [Mon, 22 Apr 2024 09:37:41 +0000 (11:37 +0200)]
man: document explicitly that LogExtraFields= and LogFilterPatterns= are for system service only for now
Fixes: #29956
Lennart Poettering [Mon, 22 Apr 2024 09:34:59 +0000 (11:34 +0200)]
man: document explicitly that bind restrictions cannot be escaped by opening a new netns
And while we are at it reword the introductary sentence a bit to make it
clearer.
Fixes: #30555
Lennart Poettering [Mon, 22 Apr 2024 09:26:42 +0000 (11:26 +0200)]
man: explicitly document the various systemd.journald.max_level_*= kernel cmdline options
Fixes: #31327
Lennart Poettering [Mon, 22 Apr 2024 09:26:26 +0000 (11:26 +0200)]
journald: bring order of MaxLevelXYZ= setting explanations in sync with listed names
Lennart Poettering [Mon, 22 Apr 2024 09:18:45 +0000 (11:18 +0200)]
man: explicitly say that BindPaths=/BindReadOnlyPaths= opens a new mount
namespace
Fixes: #32339
Lennart Poettering [Mon, 22 Apr 2024 10:03:00 +0000 (12:03 +0200)]
man: run update-man-rules again
Luca Boccassi [Fri, 19 Apr 2024 23:50:16 +0000 (00:50 +0100)]
core: add ExecMainHandoverTimestamp property recording time-of-execve
Enable the exec_fd logic for Type=notify* services too, and change it
to send a timestamp instead of a '1' byte. Record the timestamp in a
new ExecMainHandoverTimestamp property so that users can track accurately
when control is handed over from systemd to the service payload, so
that latency and startup performance can be trivially and accurately
tracked and attributed.
Lennart Poettering [Mon, 22 Apr 2024 13:15:05 +0000 (15:15 +0200)]
units: merge two After= lines
Lennart Poettering [Mon, 22 Apr 2024 12:47:58 +0000 (14:47 +0200)]
tpm2-setup-early: order against pcrphase-initrd
Right now systemd-tpm2-setup-early and systemd-pcrphase-initrd.service
are not ordered against each other. However, they require the same slow
resource to operate: the TPM2. If we allow them to access the device
simultaneously, the kernel resource manager like has to save/restore TPM
state while they operate, slowing things down further.
hence, let's avoid all this mess, and just order them against each other
so that the shared resource is first used in full by one and then by the
other.
I opted to order systemd-pcrphase-initrd before
systemd-tpm2-setup-early, since there's value in having the former as
early as possible in userspace, to be a good marker for the transition
from kernel to first userspace. I can see no benefit in the opposite
order however.
Mike Yuan [Mon, 22 Apr 2024 09:40:53 +0000 (17:40 +0800)]
shared/verbs: show list of verbs when missing
Replaces #32062
As discussed in #32062, making 'help' the default verb
is not very appealing for two reasons:
1) If the verb is missing, showing a help which is pages long
isn't really helpful to locate the problem.
(https://github.com/systemd/systemd/pull/32062#issuecomment-
2064997158)
2) We want to reserve the right to set default verbs to be
more useful ones, instead of help. E.g. 'busctl' lists all
bus peers by default.
So, when there are more than 2 verbs, let's instead add
the list of available verbs to the "Command verb required"
message, that serves as a hint. That way we try to be friendlier
to users, but still make the problem obvious.