Adrian Vovk [Tue, 5 Mar 2024 17:25:42 +0000 (12:25 -0500)]
TEST-46-HOMED: Disable auth rate-limiting
Rate limiting authentication attempts in the test can cause somewhat
sporadic test failures: adding a test case might suddenly cause future
test cases to fail because of too many authentication attempts too
quickly
We're not trying to test the rate-limiting, we're trying to test the
functionality of homed. So we effectively disable rate-limiting on all
the home areas we create
Adrian Vovk [Thu, 1 Feb 2024 19:15:48 +0000 (14:15 -0500)]
update TODO
Adrian Vovk [Thu, 1 Feb 2024 18:35:03 +0000 (13:35 -0500)]
homework: Implement offline updates
This makes it possible to update a home record (and blob directory) of a
home area that's either completely absent (i.e. on a USB stick that's
unplugged) or just inaccessible due to lack of authentication
Adrian Vovk [Thu, 1 Feb 2024 16:43:48 +0000 (11:43 -0500)]
homework: Accept volume key from keyring
This bypasses authentication (i.e. user_record_authenticate) if the
volume key was loaded from the keyring and no secret section is
provided.
This also changes Update() and Resize() to always try and load the
volume key from the keyring. This makes the secret section optional for
these methods while still letting them function (as long as the home
area is active)
Adrian Vovk [Thu, 1 Feb 2024 04:49:24 +0000 (23:49 -0500)]
homework: Always upload volume key to keyring
This commit makes homework always upload the LUKS volume key into the
kernel keyring. This is different from previous behavior in three
notable ways:
- Previously, we'd only upload if auto-resize was on. In preparation for
upcoming changes, now we always upload
- Previously, we'd upload the user's actual password (or a password
obtained from a FIDO key or similar). Now, we upload the LUKS volume key
itself, to remove a layer of unnecessary indirection.
- Previously, Lock() wouldn't remove the key from the kernel keyring.
This, of course, defeats the purpose of Lock(), so now it removes the
key
This commit also allows the LUKS volume to be unlocked using the volume
key we obtained from the keyring.
Adrian Vovk [Thu, 21 Mar 2024 17:51:16 +0000 (13:51 -0400)]
homed: Ensure closed FD is handled before bus req
Before this fix, the following sequence of events was possible:
1. A client holding a Ref() FD closes their FD
2. kernel sends notification that all clients closed their FDs
3. Another client obtains its own Ref() FD from homed
4. homed handles the notification that all clients have closed their
Ref() FDs. Thus it loses track of the fact that the session is
actually still being held open by the client from step 3
This change makes sure that homed won't respond to bus messages (and
thus won't open more Ref() FDs) until it has handled all notifications
about the existing FDs being closed.
logind has had a very similar fix applied to it in
e11544a8305ab9dea097c74bb16e296150c9cc10
Fixes https://github.com/systemd/systemd/issues/31518
Luca Boccassi [Fri, 22 Mar 2024 16:28:03 +0000 (16:28 +0000)]
Merge pull request #31670 from CodethinkLabs/vmspawn/generate_ssh_keys
vmspawn: generate ssh keys
Luca Boccassi [Fri, 22 Mar 2024 16:22:42 +0000 (16:22 +0000)]
Merge pull request #31908 from DaanDeMeyer/mkosi
Various mkosi fixes
Daan De Meyer [Fri, 22 Mar 2024 15:49:46 +0000 (16:49 +0100)]
mkosi: Switch to Arch Linux packaging sources main branch
https://gitlab.archlinux.org/archlinux/packaging/packages/systemd/-/merge_requests/8
was merged so let's switch branches to the main branch.
Daan De Meyer [Fri, 22 Mar 2024 15:49:10 +0000 (16:49 +0100)]
mkosi: Disable debug package generation on Arch Linux
This is extremely slow since the latest pacman release, and since
we don't strip binaries, not really needed either.
Daan De Meyer [Fri, 22 Mar 2024 14:15:01 +0000 (15:15 +0100)]
mkosi: Enable log context
Daan De Meyer [Fri, 22 Mar 2024 14:12:20 +0000 (15:12 +0100)]
mkosi: Make sure man and man-db are installed everywhere
Daan De Meyer [Fri, 22 Mar 2024 11:08:52 +0000 (12:08 +0100)]
test: Install test journals
Let's package these just like we package other test data.
Daan De Meyer [Fri, 22 Mar 2024 14:11:11 +0000 (15:11 +0100)]
Merge pull request #31839 from DaanDeMeyer/log
log: Add per target log levels
Unique-Usman [Wed, 20 Mar 2024 17:35:55 +0000 (23:05 +0530)]
Added more ASSERT macro and also make some test file to use them
Luca Boccassi [Fri, 22 Mar 2024 12:08:53 +0000 (12:08 +0000)]
Merge pull request #31902 from YHNdnzj/swap-followup
core: some follow-ups
Daan De Meyer [Wed, 20 Mar 2024 08:34:46 +0000 (09:34 +0100)]
log: Add per target log levels
For CI in mkosi, I want to configure systemd to log at debug level
to the journal, but not to the console. While we already have max
level settings for journald's forwarding settings, not every log line
goes to the journal, specifically during early boot and when units
are connected directly to the console (think systemd-firstboot), so
let's extend the log level options we already have to allow specifying
a comma separated list of values and lets allow prefixing values with
the log target they apply to to make this possible.
Yu Watanabe [Fri, 22 Mar 2024 11:07:34 +0000 (20:07 +0900)]
Merge pull request #31900 from DaanDeMeyer/dissect
nspawn logging fix
Mike Yuan [Fri, 22 Mar 2024 10:36:01 +0000 (18:36 +0800)]
core/mount: use ASSERT_PTR in mount_setup_new_unit
Mike Yuan [Fri, 22 Mar 2024 10:26:55 +0000 (18:26 +0800)]
core/swap: fix memory management in swap_setup_unit
Follow-up for
e9fa1bf704ad2f0a7e257e29889315118b0df459
Daan De Meyer [Fri, 22 Mar 2024 09:48:46 +0000 (10:48 +0100)]
nspawn: Use dissect_image_mount_and_warn()
Daan De Meyer [Fri, 22 Mar 2024 09:48:35 +0000 (10:48 +0100)]
dissect-image: Improve error messages
Luca Boccassi [Thu, 21 Mar 2024 23:45:49 +0000 (23:45 +0000)]
Merge pull request #31868 from bluca/test_cleanup
test: delete private images on clean-again
Yu Watanabe [Thu, 21 Mar 2024 23:10:39 +0000 (08:10 +0900)]
Merge pull request #31892 from YHNdnzj/machinectl-minor-cleanup
machinectl: minor modernization, use FOREACH_ARRAY
Gerd Hoffmann [Tue, 19 Mar 2024 13:49:51 +0000 (14:49 +0100)]
sd-boot: add support for support enrolling dbx
usage:
(1) get latest revocation list for your architecture
from https://uefi.org/revocationlistfile
(2) copy the file to $ESP/loader/keys/$name/dbx.auth
Daan De Meyer [Thu, 21 Mar 2024 15:07:58 +0000 (16:07 +0100)]
docs: Add one more git submodule setting to configure
Mike Yuan [Thu, 21 Mar 2024 10:29:07 +0000 (18:29 +0800)]
cgroup-util: use path_find_first_component where appropriate
Prompted by
8922a728f732a716ecd17dd67cd39bc1a0fc4aa5
Yu Watanabe [Thu, 21 Mar 2024 22:57:46 +0000 (07:57 +0900)]
Merge pull request #31890 from YHNdnzj/ASSERT_PTR
core: use ASSERT_PTR and RET_GATHER more
Daan De Meyer [Thu, 21 Mar 2024 18:14:56 +0000 (19:14 +0100)]
dbus-exporter: Set explicit mode on output directory
Otherwise the created directory might have the sticky bit or the setgid
bit set as these are inherited from the parent directory.
Mike Yuan [Thu, 21 Mar 2024 13:53:39 +0000 (21:53 +0800)]
machinectl: minor modernization, use FOREACH_ARRAY
Prompted by
237bbec1173b41c0e0f2eaf9c30e19ab82073b8d
Mike Yuan [Thu, 21 Mar 2024 11:07:23 +0000 (19:07 +0800)]
nulstr-util: minor cleanup
Mike Yuan [Thu, 21 Mar 2024 17:23:07 +0000 (01:23 +0800)]
core: use RET_GATHER more
Mike Yuan [Thu, 21 Mar 2024 17:22:31 +0000 (01:22 +0800)]
core: use ASSERT_PTR(CAST(u)) everywhere
Yu Watanabe [Thu, 21 Mar 2024 13:00:52 +0000 (22:00 +0900)]
Merge pull request #31880 from yuwata/network-varlink-trivial-cleanups
network: trivial varlink cleanups
dependabot[bot] [Thu, 21 Mar 2024 09:39:48 +0000 (09:39 +0000)]
build(deps): bump pkg/fedora from `
2822a03` to `
2e32a33`
Bumps pkg/fedora from `
2822a03` to `
2e32a33`.
---
updated-dependencies:
- dependency-name: pkg/fedora
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] [Thu, 21 Mar 2024 09:39:47 +0000 (09:39 +0000)]
build(deps): bump pkg/debian from `
86cd356` to `
3b47281`
Bumps pkg/debian from `
86cd356` to `
3b47281`.
---
updated-dependencies:
- dependency-name: pkg/debian
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Luca Boccassi [Thu, 21 Mar 2024 11:11:01 +0000 (11:11 +0000)]
test: run clean-again between tests, not at the end
So that we free up space for the next run, as we are seeing disk space
issues on Ubuntu CI due to the many images built and left around
Luca Boccassi [Wed, 20 Mar 2024 12:55:02 +0000 (12:55 +0000)]
test: delete private images on clean-again
Private images are not reused, they are unique to tests, so delete them
as they take a lot of disk space, and we are starting to run in /var/tmp
space issues on the Ubuntu CI
Yu Watanabe [Thu, 21 Mar 2024 10:54:25 +0000 (19:54 +0900)]
varlink: use varlink_server_description()
Yu Watanabe [Thu, 21 Mar 2024 10:52:31 +0000 (19:52 +0900)]
network: set varlink description
Yu Watanabe [Thu, 21 Mar 2024 10:45:03 +0000 (19:45 +0900)]
networkctl: use varlink_flush_close_unrefp()
Mike Yuan [Thu, 21 Mar 2024 10:05:36 +0000 (18:05 +0800)]
Merge pull request #31861 from yuwata/journalctl-fix-until
journalctl: make --until work again with --after-cursor and --lines
Evgeny Vereshchagin [Thu, 21 Mar 2024 06:56:15 +0000 (06:56 +0000)]
CI: revert the mmap_rnd_bits kludge
This reverts commit
2e0c2fb8fb15faeedf213930a4c2a3a6d584101f and commit
b7c7498de814b1e9825b43c28e307a7f0af8ffd2 now that
https://github.com/actions/runner-images/issues/9491 is closed.
Markus Merklinger [Tue, 19 Mar 2024 10:47:04 +0000 (11:47 +0100)]
Update USB ids of hwdb
Yu Watanabe [Thu, 21 Mar 2024 05:47:05 +0000 (14:47 +0900)]
Merge pull request #31862 from keszybz/add-strdup_to-helper
Add strdup_to() helper
Yu Watanabe [Thu, 21 Mar 2024 03:32:53 +0000 (12:32 +0900)]
Merge pull request #31875 from ml-/docs-fix-socket-section
docs: fix keys in wrong section and minor issues in man pages
Matthias Lisin [Thu, 21 Mar 2024 01:49:38 +0000 (02:49 +0100)]
man: fix minor issues
Matthias Lisin [Thu, 21 Mar 2024 01:32:26 +0000 (02:32 +0100)]
docs: fix keys in wrong section
Yu Watanabe [Tue, 19 Mar 2024 21:22:17 +0000 (06:22 +0900)]
test: add test case for issue #31776
Yu Watanabe [Wed, 20 Mar 2024 19:34:37 +0000 (04:34 +0900)]
journalctl: make --until work again with --after-cursor and --lines
Fixes a regression introduced by
81fb5375b3b3bfc22d023d7908ad9eee4b3c1ffb.
If one of the cursor option is specified, we first seek to the cursor position.
So, the current position may be out of the time range specified by --until,
and we need to verify the timestamp of the current position.
Fixes #31776.
Co-authored-by: Reid Wahl <nrwahl@protonmail.com>
Yu Watanabe [Wed, 20 Mar 2024 18:57:57 +0000 (03:57 +0900)]
Yu Watanabe [Wed, 20 Mar 2024 18:56:33 +0000 (03:56 +0900)]
Yu Watanabe [Wed, 20 Mar 2024 18:55:34 +0000 (03:55 +0900)]
Unique-Usman [Tue, 19 Mar 2024 12:50:29 +0000 (18:20 +0530)]
Follow up with the PR #31819
Luca Boccassi [Wed, 20 Mar 2024 15:47:05 +0000 (15:47 +0000)]
Merge pull request #31844 from keszybz/missing-extra-checks
Add static asserts to verify that our missing_*.h headers defines are actually correct
Yu Watanabe [Wed, 20 Mar 2024 06:43:25 +0000 (15:43 +0900)]
Revert "test: temporarily adjust the default mount rate limit"
This reverts commit
3f4b00a34a425566ca8494846b0e74ca8c7693d3.
The issue #30573 seems to be fixed somehow. Let's revert the workaround.
cunshunxia [Thu, 29 Feb 2024 02:46:25 +0000 (10:46 +0800)]
man: fix a few issues in manpage
fix: #31482
Signed-off-by: cunshunxia <cunshunxia@tencent.com>
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 23:11:56 +0000 (00:11 +0100)]
shared/password-quality: inline iterator variable
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 22:36:37 +0000 (23:36 +0100)]
core: use strdup_to()
Those are all pretty straightforward.
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 22:36:03 +0000 (23:36 +0100)]
oomd: use strdup_to() and RET_GATHER()
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 22:35:32 +0000 (23:35 +0100)]
basic/unit-name: use strdup_to() in slice_build_parent_slice()
The handling of the buffer is not obvious, so add a comment.
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 22:34:52 +0000 (23:34 +0100)]
logind: use strdup_to()
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 22:34:24 +0000 (23:34 +0100)]
shared/dissect-image: use strdup_to_full() in one more place
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 22:34:01 +0000 (23:34 +0100)]
machinectl: use strdup_to() and move cleanup out of the loop
It doesn't matter much, but it seems nicer to call va_end() just
once.
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 22:32:55 +0000 (23:32 +0100)]
basic/time-util: use strdup_to() and reformat a bit
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 22:21:06 +0000 (23:21 +0100)]
sd-journal/catalog: use strdup_to(), rename output param
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 22:14:31 +0000 (23:14 +0100)]
sd-device: use strdup_to() and rename output param
device_open_from_devnum() returns two things: the devname via
an output param, and the fd via the return value. Rename the param
to signal that it's not the only return channel.
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 17:29:40 +0000 (18:29 +0100)]
shared: use strdup_to() in specifier functions
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 20:08:52 +0000 (21:08 +0100)]
Replace strdup_or_null() by strdup_to()
I didn't know that this helper existed… It is very similar to strdup_to_full(),
but all callers can actually be replaced by strdup_to(), which has more fitting
semantics.
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 19:47:12 +0000 (20:47 +0100)]
basic/string-util: use strdup_to() in string_extract_line()
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 19:40:57 +0000 (20:40 +0100)]
basic/socket-util: use strdup_to() in sockaddr_pretty()
The function was written to support ret==NULL, but the only caller always
passes ret, and sockaddr_pretty() also requires ret to be set, so that
half-implemented code wasn't very useful.
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 22:50:08 +0000 (23:50 +0100)]
coredump: use free_and_strdup_warn() more
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 17:41:08 +0000 (18:41 +0100)]
systemd-analyze: use strdup_to()
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 17:29:40 +0000 (18:29 +0100)]
basic/fileio: use strdup_to_full() in read_stripped_line()
The return value of read_stripped_line() is changed. Before we'd return the
number of characters read, but that number was not meaningful after we called
strstrip(). So just return 0 if nothing was read (EOF), and 1 if something was
read (not EOF). All the callers were only checking for <0 or ==0.
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 22:23:26 +0000 (23:23 +0100)]
various: also use strdup_to() in cases where we don't return immediately
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 19:34:42 +0000 (20:34 +0100)]
various: use strdup_to() after getenv()
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 17:27:04 +0000 (18:27 +0100)]
various: use strdup_to() in various obvious cases
strdup_to() returns 0 on success and here we convert obvious blocks
which either return -ENOMEM or 0.
Zbigniew Jędrzejewski-Szmek [Fri, 15 Mar 2024 12:41:05 +0000 (13:41 +0100)]
test-cgroup-util: reduce scope of iterator variables
Zbigniew Jędrzejewski-Szmek [Fri, 15 Mar 2024 12:39:50 +0000 (13:39 +0100)]
basic/cgroup-util: use strdup_to() and strdup_to_full() as appropriate
Zbigniew Jędrzejewski-Szmek [Fri, 15 Mar 2024 12:20:15 +0000 (13:20 +0100)]
hostnamed: use strdup_to_full()
Zbigniew Jędrzejewski-Szmek [Fri, 15 Mar 2024 12:16:51 +0000 (13:16 +0100)]
src/basic: add yet another strdup helper
It's a bit ugly to have both strdup_to() and strdup_to_full(). I initially
started with one variant, but then in some functions we want the additional
info, while in many other places, having 1 instead of 0 causes the return
value of whole chains of functions to be changed. It *probably* wouldn't cause
any difference, but there is at least of bunch of tests that would need to be
updated, so in the end it seems to have the two variants.
The output param is first to match free_and_strdup() and other similar
functions.
Luca Boccassi [Wed, 20 Mar 2024 13:17:40 +0000 (13:17 +0000)]
Merge pull request #31827 from rpigott/resolved-faster-dnssec
Reduce superfluous dnssec transactions
Frantisek Sumsal [Wed, 20 Mar 2024 12:37:37 +0000 (13:37 +0100)]
Merge pull request #31867 from jamacku/update-freezer
Update development freeze GitHub Action; now milestones are taken into account
Jan Macku [Wed, 20 Mar 2024 11:37:18 +0000 (12:37 +0100)]
ci(freezer): update `devel-freezer` GHA to `v1.1.0`
The new version of `devel-freezer` GitHub Action adds support for milestones, labels, and more. Now, when the `rc` tag is published, it won't post a development freeze comment on PRs included in the next milestone.
This commit also sets a delay of the 20s for PR validation to give some time for updating labels and milestones on submitted PRs.
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 09:58:59 +0000 (10:58 +0100)]
basic/missing_audit: add explanatory comment
It seems we need to check for the header file because it's not available in
some fuzzer builds.
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 08:48:38 +0000 (09:48 +0100)]
basic/missing_*.h: indentation tweaks
Zbigniew Jędrzejewski-Szmek [Fri, 15 Mar 2024 14:22:31 +0000 (15:22 +0100)]
basic/missing_*.h: add asserts that the values are as expected
It's great that we provide fallback values, but if we got one of those wrong,
it could be a long time before anyone noticed. So let's add asserts that the
our internal defines actually match the official ones, when the latter are
available.
I did not add '#include "macro.h"' to missing_{audit,capability}, because
those are processed by an awk script that would need additional include
directories and could be confused by the additional lines. We don't include
those headers standalone anyway, so this is not necessary anyway.
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2024 10:51:08 +0000 (11:51 +0100)]
basic/missing_ioprio: include the proper header file
IOPRIO_* is defined in linux/ioprio.h, so we were always using our fallback
definitions.
The header list in meson.build is sorted. I'm not sure why it wasn't.
Gerd Hoffmann [Mon, 18 Mar 2024 08:23:16 +0000 (09:23 +0100)]
sd-boot: add support for custom mode.
Custom mode allows to write updates to db, dbx, KEK and PK without
signature. See the comment block for a more detailed description.
In case the PK update has no signature try to enable custom mode.
Jan Macku [Wed, 20 Mar 2024 09:32:07 +0000 (10:32 +0100)]
ci(freezer): update metadata and development_freeze workflow
use custom action to gather PR metadata and download artifact rather then inline script
Jan Macku [Wed, 20 Mar 2024 09:34:14 +0000 (10:34 +0100)]
ci(metadata): remove `fetch-depth: 0` it's not needed anymore
Daan De Meyer [Sun, 17 Mar 2024 15:16:52 +0000 (16:16 +0100)]
log: Make warning messages more consistent
Use our usual pattern of ", ignoring.".
Gerd Hoffmann [Mon, 18 Mar 2024 16:04:22 +0000 (17:04 +0100)]
kernel-install: fix uki-copy deinstall
For "kernel-install remove ..." only the kernel version is passed, not
the kernel image. So auto-detecting KERNEL_INSTALL_IMAGE_TYPE and
setting KERNEL_INSTALL_LAYOUT does not work for uninstall.
The 90-uki-copy.install plugin must consider this and *not* exit early
for the "remove" command, otherwise $BOOT_ROOT will be filled with stale
kernel images.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 10:33:35 +0000 (11:33 +0100)]
TODO: drop entry about renaming
NamespaceId is inconsistent with our general spelling rules which say that
capitalization of acronyms should not be changed when they are concatenated in
CapitalizedCamelCase strings. But NamespaceId was added in
f2ef8b28a5266a0070b0cb8b6375e418a5300975, before v249, so it's too late to
change it. OTOH, NamespaceNSID cannot really be spelled in any other way.
"NamespaceNsid" would be quite bad. So let's just ignore the inconsistency in
naming, this seems to be the least bad option.
Ronan Pigott [Tue, 19 Mar 2024 08:56:03 +0000 (01:56 -0700)]
dnssd: don't advertise subtype PTRs to the browsing domain
The RFC6763 § 9 recommendation is to advertise only the two-label
service names.
Fixes:
88123aa21c26 ("dnssd: support service subtypes")
Daan De Meyer [Tue, 19 Mar 2024 21:16:10 +0000 (22:16 +0100)]
mkosi: Update debian to latest
Fixes mkosi builds
Yu Watanabe [Tue, 19 Mar 2024 19:49:04 +0000 (04:49 +0900)]
terminal-util: fix underlying with SYSTEMD_COLORS=no
Fixes #31857.
dependabot[bot] [Tue, 19 Mar 2024 09:25:33 +0000 (09:25 +0000)]
build(deps): bump pkg/arch from `
733045c` to `
b33762d`
Bumps pkg/arch from `
733045c` to `
b33762d`.
---
updated-dependencies:
- dependency-name: pkg/arch
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 10:14:55 +0000 (11:14 +0100)]
Rename uid0 to run0
Naming is always a matter of preference, and the old name would certainly work,
but I think the new one has the following advantages:
- A verb is better than a noun.
- The name more similar to "the competition", i.e. 'sudo', 'pkexec', 'runas',
'doas', which generally include an action verb.
- The connection between 'systemd-run' and 'run0' is more obvious.
There has been no release yet with the old name, so we can rename without
caring for backwards compatibility.
Zbigniew Jędrzejewski-Szmek [Tue, 19 Mar 2024 08:11:45 +0000 (09:11 +0100)]
units: add one more equivalency of '-' in '_' on kernel cmdline
c0aeff4b999318d4da48328fff0ea93c8c457ace added this in one unit file, but the
same problem occurs here. (There are no other files where this would apply.)
I think we should solve this systematically somehow, but it's not clear how to
do that, so until we have that better solution, let's apply the manual solution
so that our units work as expected.