]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
16 months agocore/cgroup: check CGroupRuntime.cgroup_path rather than _realized for freezer
Mike Yuan [Wed, 5 Jun 2024 17:23:40 +0000 (19:23 +0200)] 
core/cgroup: check CGroupRuntime.cgroup_path rather than _realized for freezer

The same check is used everywhere else.

16 months agocore/cgroup: use > 0 comparison rather than == 1
Mike Yuan [Sat, 1 Jun 2024 22:37:08 +0000 (06:37 +0800)] 
core/cgroup: use > 0 comparison rather than == 1

16 months agocore/cgroup: correct macro alignment
Mike Yuan [Wed, 5 Jun 2024 17:22:11 +0000 (19:22 +0200)] 
core/cgroup: correct macro alignment

16 months agoman/varlinkctl: add `list-methods` command to synopsis and fix typo
Antonio Alvarez Feijoo [Fri, 28 Jun 2024 12:22:55 +0000 (14:22 +0200)] 
man/varlinkctl: add `list-methods` command to synopsis and fix typo

Follow-up for 16cfe84c2495c1d9e753e2b8e21b69bea21ebaf4

16 months agoMerge pull request #33370 from grawity/run-title
Zbigniew Jędrzejewski-Szmek [Fri, 28 Jun 2024 12:46:27 +0000 (14:46 +0200)] 
Merge pull request #33370 from grawity/run-title

run: add option to prevent the setting of terminal title

16 months agoMerge pull request #33516 from poettering/more-stub-tweaks
Luca Boccassi [Fri, 28 Jun 2024 12:46:16 +0000 (14:46 +0200)] 
Merge pull request #33516 from poettering/more-stub-tweaks

sd-stub: three more tweaks

16 months agoLICENSES/README: expand text to summarize state for binaries and libs
Zbigniew Jędrzejewski-Szmek [Fri, 28 Jun 2024 11:22:40 +0000 (13:22 +0200)] 
LICENSES/README: expand text to summarize state for binaries and libs

We would say how *sources* are licensed, but actually most user care about the
resulting binaries. So say how the *binaries* are licensed. I used the word
"effectively" because the permissive licenses don't set any requirements on the
binaries, so the license of sources is a complex mix, but the resulting
binaries have a simple effective license.

Also, make it clear that the GPLv2 license applies to udev programs, but not
the shared library. Based on private correspondence, there's some confusion
about this.

16 months agomeson: Drop genkey target
Daan De Meyer [Fri, 28 Jun 2024 07:58:56 +0000 (09:58 +0200)] 
meson: Drop genkey target

In mkosi.images/system/mkosi.conf, we configure the certificate as
an extra tree so it's available inside the image. However, we pick up
the certificate from the top level repository directory and not from the
build directory where it is generated by the genkey meson target.

We currently have no way to access the build directory that mkosi was
invoked from when parsing the configuration file. Thus we have no way to
specify the correct location to the certificate when it's located in the
build directory.

For now, let's look for the key and certificate in the top level repository
root directory and drop the genkey target.

We don't have to change the Github Actions CI because it already runs genkey
manually before the image build (which is something we forgot to remove when
introducing the genkey target and is the reason this didn't cause issues before).

16 months agoupdate TODO
Lennart Poettering [Fri, 28 Jun 2024 08:15:53 +0000 (10:15 +0200)] 
update TODO

16 months agoupdate TODO
Lennart Poettering [Fri, 28 Jun 2024 08:12:55 +0000 (10:12 +0200)] 
update TODO

16 months agostub: move safety check for LoadOptions into if block where we actually use it 33516/head
Lennart Poettering [Thu, 27 Jun 2024 20:12:35 +0000 (22:12 +0200)] 
stub: move safety check for LoadOptions into if block where we actually use it

16 months agostub: don't mangle command line if we got it as array
Lennart Poettering [Thu, 27 Jun 2024 20:12:49 +0000 (22:12 +0200)] 
stub: don't mangle command line if we got it as array

There are two ways to get the command line: from the EFI shell,
preparsed, already split at whitespace. This we just combine with
spaces, since kernel wants it as one string.

And as one command line blob which is how we are invoked otherwise and
which comes with all kinds of whitespace quite likely.

Let's only strip leading and trailing whitespace in the latter case,
given it's likely the concatenation of whitespace separated strings
generated by shell scripts and such. But let's not strip it we already
received a preparsed array.

16 months agostub: make sure we always mangle the cmdlines we read
Lennart Poettering [Thu, 27 Jun 2024 16:41:15 +0000 (18:41 +0200)] 
stub: make sure we always mangle the cmdlines we read

16 months agodocs: fix dead link to GNOME documentation
Luca Boccassi [Thu, 27 Jun 2024 16:59:01 +0000 (17:59 +0100)] 
docs: fix dead link to GNOME documentation

16 months agoman/tmpfiles: remove outdated behavior regarding symlink ownership
Giovanni Baratta [Thu, 27 Jun 2024 11:35:12 +0000 (13:35 +0200)] 
man/tmpfiles: remove outdated behavior regarding symlink ownership

Update the man page of tmpfiles.d to remove outdated comments regarding the behavior of ownership with symlinks.
The behavior has been changed in this commit 51207ca134716a0dee5fd763a6c39204be849eb1

16 months agovarlink: fix license
David Tardon [Thu, 27 Jun 2024 13:44:20 +0000 (15:44 +0200)] 
varlink: fix license

The old license was a copy&paste mistake.

16 months agoMerge pull request #33506 from DaanDeMeyer/mkosi-btrfs
Daan De Meyer [Thu, 27 Jun 2024 14:56:27 +0000 (16:56 +0200)] 
Merge pull request #33506 from DaanDeMeyer/mkosi-btrfs

mkosi: Switch back to btrfs

16 months agomkosi: Switch back to btrfs 33506/head
Daan De Meyer [Thu, 27 Jun 2024 10:08:51 +0000 (12:08 +0200)] 
mkosi: Switch back to btrfs

Now that we're running on Noble instead of Jammy btrfs has the temp_fsid
feature which means we can mount the same image multiple times so let's
switch back to btrfs instead of ext4 as the filesystem as btrfs properly
records timestamps when building filesystems from a root directory unlike
ext4.

16 months agomkosi: Install btrfs-progs on CentOS as well
Daan De Meyer [Thu, 27 Jun 2024 13:45:44 +0000 (15:45 +0200)] 
mkosi: Install btrfs-progs on CentOS as well

16 months agocryptsetup: allow customizing cache behavior
Kamil Szczęk [Sat, 11 May 2024 08:42:14 +0000 (10:42 +0200)] 
cryptsetup: allow customizing cache behavior

The new "password-cache" option allows customizing behavior of the
ask-password module in regards to caching credentials in the kernel
keyring. There are 3 possible values for this option:
  * read-only - look for credentials in kernel keyring before asking
  * on - same as read-only, but also save credentials input by user
  * off - disable keyring credential cache

Currently the cache is forced upon the user and this can cause issues.
For example, if user wants to attach two volumes with two different
FIDO2 tokens in a quick succession, the attachment operation for the
second volume will use the PIN cached from the first FIDO2 token, which
of course will fail and since tokens are only attempted once, this will
cause fallback to a password prompt.

16 months agocryptsetup: make key discovery more robust
Kamil Szczęk [Wed, 5 Jun 2024 18:50:21 +0000 (20:50 +0200)] 
cryptsetup: make key discovery more robust

Currently, if user doesn't specify a key file, /etc/cryptsetup-keys.d/
and /run/cryptsetup-keys.d/ will be searched for a key file with name
matching the volume name. But current implementation has an important
flaw. When the auto-discovered key is a socket file - it will read the
key only once, while the socket might provide different keys for
different types of tokens. The issue is fixed by trying to discover the
key on each unlock attempt, this way we can populate the socket bind
name with something the key provider might use to differentiate between
different keys it has to provide.

16 months agomkosi: Enable hyperscale-packages-experimental for CentOS
Daan De Meyer [Thu, 27 Jun 2024 10:49:59 +0000 (12:49 +0200)] 
mkosi: Enable hyperscale-packages-experimental for CentOS

This gets us a kernel with btrfs support.

16 months agoMerge pull request #33503 from poettering/hostnamed-polkit-fixes
Lennart Poettering [Thu, 27 Jun 2024 10:47:46 +0000 (12:47 +0200)] 
Merge pull request #33503 from poettering/hostnamed-polkit-fixes

hostnamed: minor corrects to Varlink polkit handling

16 months agoMerge pull request #32560 from poettering/varlink-double-fd
Lennart Poettering [Thu, 27 Jun 2024 10:47:31 +0000 (12:47 +0200)] 
Merge pull request #32560 from poettering/varlink-double-fd

varlink: add ability to talk to remote Varlink service binary via ssh

16 months agoupdate TODO
Lennart Poettering [Thu, 27 Jun 2024 10:25:25 +0000 (12:25 +0200)] 
update TODO

16 months agoupdate TODO
Lennart Poettering [Fri, 21 Jun 2024 10:58:12 +0000 (12:58 +0200)] 
update TODO

16 months agoMerge pull request #33502 from DaanDeMeyer/opensuse
Luca Boccassi [Thu, 27 Jun 2024 09:49:19 +0000 (11:49 +0200)] 
Merge pull request #33502 from DaanDeMeyer/opensuse

mkosi: Drop s390x console patch from opensuse spec

16 months agoci: add simple test for the new "ssh-exec:" varlink logic 32560/head
Lennart Poettering [Thu, 27 Jun 2024 09:30:07 +0000 (11:30 +0200)] 
ci: add simple test for the new "ssh-exec:" varlink logic

16 months agovarlink: add ability to invoke and talk to remote service binary via SSH
Lennart Poettering [Thu, 25 Apr 2024 08:54:24 +0000 (10:54 +0200)] 
varlink: add ability to invoke and talk to remote service binary via SSH

16 months agovarlink: if $SYSTEMD_VARLINK_LISTEN is set to "-", listen on stdio
Lennart Poettering [Thu, 25 Apr 2024 08:57:56 +0000 (10:57 +0200)] 
varlink: if $SYSTEMD_VARLINK_LISTEN is set to "-", listen on stdio

16 months agohostnamed: make sure we can actually properly parse 'allowInteractiveAuthentication... 33503/head
Lennart Poettering [Thu, 27 Jun 2024 08:12:04 +0000 (10:12 +0200)] 
hostnamed: make sure we can actually properly parse 'allowInteractiveAuthentication' varlink parameter

If people want they should be able to turn on this flag, to allow
interactive auth. Let's make sure this actually works. i.e. add it to
the introspection data and don't refuse the parameter in Describe().
(note the varlink handling already does parameter validation through
varlink_dispatch(), hence we can just drop any further validation)

16 months agohostnamed: if polkit authentication fails for Varlink Describe() call, don't reply...
Lennart Poettering [Thu, 27 Jun 2024 08:09:45 +0000 (10:09 +0200)] 
hostnamed: if polkit authentication fails for Varlink Describe() call, don't reply to client with an error

The logic of the Describe() call was supposed to be: if we can acquire
the PK priv to get the product UUID then let's return the product UUID,
and if we cannot then return the data without it.

This didn't work however, since the polkit varlink glue would
immediately propagate the error it acquired from polkit its own client.
Let's turn this off, optionally, so that hostnamed can handle this
nicely.

16 months agomkosi: Drop leftover systemd-coredump-debuginfo package for opensuse 33502/head
Daan De Meyer [Thu, 27 Jun 2024 08:14:32 +0000 (10:14 +0200)] 
mkosi: Drop leftover systemd-coredump-debuginfo package for opensuse

The package was merged into the main systemd package in
https://src.opensuse.org/rpm/systemd/commit/23bfa9d83b6e24a5395a704b816a351f3dc5b5316e580cacedd1b5d9e068c117.

16 months agomkosi: Drop s390x console patch from opensuse spec
Daan De Meyer [Thu, 27 Jun 2024 07:49:40 +0000 (09:49 +0200)] 
mkosi: Drop s390x console patch from opensuse spec

This patch does not apply anymore on upstream, so let's remove it
from the spec before building until the spec is fixed.

16 months agovarlink: add helper that adds a connection via stdio to a varlink server
Lennart Poettering [Thu, 25 Apr 2024 08:56:00 +0000 (10:56 +0200)] 
varlink: add helper that adds a connection via stdio to a varlink server

This adds varlink_server_add_connection_stdio() as wrapper around
varlink_server_add_connection_pair(), that steals stdin/stdout fds and
turns them into a varlink connection. To be safe it replaces
stdin/stdout with /dev/null fds.

16 months agovarlink: add new call varlink_server_add_connection_pair() for two-fd servers
Lennart Poettering [Thu, 25 Apr 2024 08:55:23 +0000 (10:55 +0200)] 
varlink: add new call varlink_server_add_connection_pair() for two-fd servers

This adds the server-side for varlink connections over two distinct fds.

16 months agovarlink: add new call varlink_connect_fd_pair() helper for two-fd clients
Lennart Poettering [Wed, 24 Apr 2024 19:41:10 +0000 (21:41 +0200)] 
varlink: add new call varlink_connect_fd_pair() helper for two-fd clients

This makes use of the functionality added in the previous commit to
implement the client-side functionality for talking to servers via a
pair of fds.

16 months agovarlink: support varlink communication via distinct input/output fds
Lennart Poettering [Wed, 24 Apr 2024 16:54:07 +0000 (18:54 +0200)] 
varlink: support varlink communication via distinct input/output fds

When invoking another process via a pair of pipes it makes sense to
allow reading from one fd, and writing from another. Teach our varlink
code to do so optionally.

(sd-bus supports something similar, fill the gap).

This is preparation for a later commit that uses this to talk to remote
SSH invocations via pipes.

16 months agoMerge pull request #33493 from poettering/stub-refactor
Lennart Poettering [Thu, 27 Jun 2024 07:18:39 +0000 (09:18 +0200)] 
Merge pull request #33493 from poettering/stub-refactor

sd-stub: clean-up codebase/refactoring

16 months agoMerge pull request #33491 from keszybz/allow-interactive-auth-in-inhibit
Luca Boccassi [Wed, 26 Jun 2024 21:01:22 +0000 (23:01 +0200)] 
Merge pull request #33491 from keszybz/allow-interactive-auth-in-inhibit

Allow interactive auth in inhibit

16 months agoMerge pull request #33338 from ml-/specifiers
Luca Boccassi [Wed, 26 Jun 2024 19:40:15 +0000 (21:40 +0200)] 
Merge pull request #33338 from ml-/specifiers

tmpfiles: add %q, %A, %M specifiers

16 months agocore/exec-invoke: use sched_setattr instead of sched_setscheduler
Florian Schmaus [Wed, 26 Jun 2024 12:37:52 +0000 (14:37 +0200)] 
core/exec-invoke: use sched_setattr instead of sched_setscheduler

The kernel's sched_setattr interface allows for more control over a processes
scheduling attributes as the previously used sched_setscheduler interface.

Using sched_setattr is also the prerequisite for support of utilization
clamping (UCLAMP [1], see #26705) and allows to set sched_runtime. The latter,
sched_runtime, will probably become a relevant scheduling parameter of the
EEVDF scheduler [2, 3], and therefore will not only apply to processes
scheduled via SCHED_DEADLINE, but also for processes scheduled via
SCHED_OTHER/SCHED_BATCH (i.e., most processes).

1: https://docs.kernel.org/next/scheduler/sched-util-clamp.html
2: https://lwn.net/Articles/969062/
3: https://lwn.net/ml/linux-kernel/20240405110010.934104715@infradead.org/

16 months agocryptsetup: improve TPM2 blob display
Kamil Szczęk [Tue, 25 Jun 2024 15:44:53 +0000 (17:44 +0200)] 
cryptsetup: improve TPM2 blob display

Just a tiny change to fix an eyesore in cryptsetup luksDump display :)

16 months agoMerge pull request #33495 from bluca/mkosi_update
Luca Boccassi [Wed, 26 Jun 2024 16:21:20 +0000 (18:21 +0200)] 
Merge pull request #33495 from bluca/mkosi_update

mkosi: update to latest, fix opensuse, use standalone shutdown package in Debian

16 months agoefi: share setting of generic efivars between sd-stub/sd-boot 33493/head
Lennart Poettering [Wed, 26 Jun 2024 13:18:57 +0000 (15:18 +0200)] 
efi: share setting of generic efivars between sd-stub/sd-boot

We have very similar code for setting generic efi vars in sd-stub and
sd-boot. Let's share it.

This changes behaviour in a minor way: if you chainload multiple
versions of an sd-boot you'll see the efi vars of the first one now in
the OS, not of the last one.

But this should not matter, invocation like that should generally not
happen.

16 months agomeasure: normalize error paths
Lennart Poettering [Wed, 26 Jun 2024 13:05:33 +0000 (15:05 +0200)] 
measure: normalize error paths

Always put the success path at least indentation, and indent the error
paths.

16 months agostub: rework linux handover to take "struct iovec"
Lennart Poettering [Wed, 26 Jun 2024 11:16:18 +0000 (13:16 +0200)] 
stub: rework linux handover to take "struct iovec"

16 months agostub: turn lookup_name() into shorter and more generic function that turns sectin...
Lennart Poettering [Wed, 26 Jun 2024 10:35:46 +0000 (12:35 +0200)] 
stub: turn lookup_name() into shorter and more generic function that turns sectin into char* string

16 months agostub: add helper that turns PE section into char16_t* string
Lennart Poettering [Wed, 26 Jun 2024 10:35:12 +0000 (12:35 +0200)] 
stub: add helper that turns PE section into char16_t* string

16 months agostub: reorder variables
Lennart Poettering [Wed, 26 Jun 2024 10:23:57 +0000 (12:23 +0200)] 
stub: reorder variables

16 months agostub: reorder things a bit, so that initrds are generated/looked up together
Lennart Poettering [Wed, 26 Jun 2024 10:22:33 +0000 (12:22 +0200)] 
stub: reorder things a bit, so that initrds are generated/looked up together

16 months agostub: uniformly process "measured" flags
Lennart Poettering [Wed, 26 Jun 2024 10:13:45 +0000 (12:13 +0200)] 
stub: uniformly process "measured" flags

Always pass the pointer through so that the functions combine the flags
directly, instead of doing that in the caller.

16 months agostub: split out function that determines main cmdline
Lennart Poettering [Wed, 26 Jun 2024 10:11:46 +0000 (12:11 +0200)] 
stub: split out function that determines main cmdline

16 months agostub: normalize error handling when looking for PE sections
Lennart Poettering [Wed, 26 Jun 2024 10:05:04 +0000 (12:05 +0200)] 
stub: normalize error handling when looking for PE sections

16 months agostub: slightly reorder things
Lennart Poettering [Wed, 26 Jun 2024 10:02:06 +0000 (12:02 +0200)] 
stub: slightly reorder things

Let's do the section measurement first, before we use any data of it.

Let's bring up the boot splash next, so that it covers anything else we
might do.

16 months agostub: split out code that displays boot splash
Lennart Poettering [Wed, 26 Jun 2024 10:00:46 +0000 (12:00 +0200)] 
stub: split out code that displays boot splash

16 months agostub: split out code that loads all addons from disk into function of its own
Lennart Poettering [Wed, 26 Jun 2024 09:58:17 +0000 (11:58 +0200)] 
stub: split out code that loads all addons from disk into function of its own

16 months agostub: merge separate lists for addon cmdlines/devicetrees into one
Lennart Poettering [Wed, 26 Jun 2024 09:36:03 +0000 (11:36 +0200)] 
stub: merge separate lists for addon cmdlines/devicetrees into one

Instead of keeping the lists for the global and per-UKI addons separate
throughout, just merge them. We apply them in the same order after all.

16 months agostub: don't make up errors
Lennart Poettering [Wed, 26 Jun 2024 09:21:26 +0000 (11:21 +0200)] 
stub: don't make up errors

16 months agostub: add DevicetreeAddon structure
Lennart Poettering [Wed, 26 Jun 2024 09:18:51 +0000 (11:18 +0200)] 
stub: add DevicetreeAddon structure

Instead of keeping three parallel arrays of dt base, dt size and dt
filename, just introduce a proper structure and use an array of that,
greatly simplifying DT handling.

16 months agostub: split out call that loads embedded device tree
Lennart Poettering [Wed, 26 Jun 2024 08:48:49 +0000 (10:48 +0200)] 
stub: split out call that loads embedded device tree

16 months agostub: split out code that sets EFI vars indicating measured PCRs
Lennart Poettering [Wed, 26 Jun 2024 08:39:22 +0000 (10:39 +0200)] 
stub: split out code that sets EFI vars indicating measured PCRs

16 months agostub: move initialization of kernel iovec to the end, where it's used
Lennart Poettering [Wed, 26 Jun 2024 08:37:29 +0000 (10:37 +0200)] 
stub: move initialization of kernel iovec to the end, where it's used

16 months agostub: split out code that finds embedded initrds
Lennart Poettering [Wed, 26 Jun 2024 08:34:09 +0000 (10:34 +0200)] 
stub: split out code that finds embedded initrds

16 months agostub: split out code that generates embedded initrds
Lennart Poettering [Wed, 26 Jun 2024 08:31:23 +0000 (10:31 +0200)] 
stub: split out code that generates embedded initrds

16 months agostub: split out calls that generate sidecar initrds
Lennart Poettering [Wed, 26 Jun 2024 08:25:25 +0000 (10:25 +0200)] 
stub: split out calls that generate sidecar initrds

16 months agostub: rework initrd handling around "struct iovec"
Lennart Poettering [Wed, 26 Jun 2024 08:20:26 +0000 (10:20 +0200)] 
stub: rework initrd handling around "struct iovec"

Let's maintain an array of "struct iovec" for the initrds. It becomes a
ton easier and shorter to process/combine the various initrds then.

16 months agostub: split out code that finds the uname among PE sections
Lennart Poettering [Wed, 26 Jun 2024 07:27:28 +0000 (09:27 +0200)] 
stub: split out code that finds the uname among PE sections

16 months agostub: split out code that appends smbios command line
Lennart Poettering [Wed, 26 Jun 2024 07:20:54 +0000 (09:20 +0200)] 
stub: split out code that appends smbios command line

16 months agostub: split out code that measures our own PE sections
Lennart Poettering [Tue, 25 Jun 2024 20:49:24 +0000 (22:49 +0200)] 
stub: split out code that measures our own PE sections

16 months agostub: split out random seed part out of run()
Lennart Poettering [Tue, 25 Jun 2024 20:45:57 +0000 (22:45 +0200)] 
stub: split out random seed part out of run()

16 months agoefi: introduce PeSectionVector structure, and use it for referencing PE sections
Lennart Poettering [Mon, 24 Jun 2024 15:52:10 +0000 (17:52 +0200)] 
efi: introduce PeSectionVector structure, and use it for referencing PE sections

16 months agope: use more correct section name comparison function
Lennart Poettering [Mon, 24 Jun 2024 15:50:34 +0000 (17:50 +0200)] 
pe: use more correct section name comparison function

we should only compare up to 8 chars

16 months agope: tighten validity checks of DOS and PE headers
Lennart Poettering [Mon, 24 Jun 2024 15:40:32 +0000 (17:40 +0200)] 
pe: tighten validity checks of DOS and PE headers

Let's make sure we validate that the DOS/PE header offsets are actually
reasonable, and do not cause overflows when added to the base addresses.

(This shouldn're really be a problem URL, since the DOS header offset is
16bit only, but let's be extra careful with this)

16 months agope: be more careful when loading PE section list into memory
Lennart Poettering [Mon, 24 Jun 2024 13:25:07 +0000 (15:25 +0200)] 
pe: be more careful when loading PE section list into memory

Let's put a limit on how much memory we'll allocate for the section. And
let's add a safety overflow check.

(This is more a theoretic than a real problem, since on all PE archs
NumberOfSections is 16bit only.)

16 months agoutil: make file_read() 64bit offset safe
Lennart Poettering [Wed, 26 Jun 2024 13:43:28 +0000 (15:43 +0200)] 
util: make file_read() 64bit offset safe

File offsets in UEFI are 64bit on all archs, hence let's use that typo
too, and not create artificial confusion around types.

16 months agomkosi: switch opensuse to devel branch 33495/head
Luca Boccassi [Wed, 26 Jun 2024 14:52:23 +0000 (15:52 +0100)] 
mkosi: switch opensuse to devel branch

The factory branch seems to have been reset to 9 years ago, switch
to devel

16 months agomkosi: use new standalone-shutdown package for debian's exitrd
Luca Boccassi [Wed, 26 Jun 2024 14:21:33 +0000 (15:21 +0100)] 
mkosi: use new standalone-shutdown package for debian's exitrd

16 months agoman/capsule@.service: the capsule user is prefixed with "c-" rather than "p_"
Mike Yuan [Wed, 26 Jun 2024 14:47:48 +0000 (16:47 +0200)] 
man/capsule@.service: the capsule user is prefixed with "c-" rather than "p_"

16 months agomkosi: bump to latest commit
Luca Boccassi [Wed, 26 Jun 2024 14:21:14 +0000 (15:21 +0100)] 
mkosi: bump to latest commit

16 months agoman/capsule@.service.xml: fix typo
Carlo Teubner [Wed, 26 Jun 2024 14:39:53 +0000 (15:39 +0100)] 
man/capsule@.service.xml: fix typo

16 months agoiovec-util: make "struct iovec" and some helpers also available in EFI mode
Lennart Poettering [Wed, 26 Jun 2024 08:17:26 +0000 (10:17 +0200)] 
iovec-util: make "struct iovec" and some helpers also available in EFI mode

The construct is a POSIX invention, but it's just so useful, let's also
define it in EFI mode, so that we can use similar constructs in EFI mode
and userspace.

16 months agomacro: move PTR_TO_SIZE() macros to fundamental
Lennart Poettering [Mon, 24 Jun 2024 14:08:50 +0000 (16:08 +0200)] 
macro: move PTR_TO_SIZE() macros to fundamental

16 months agomacro: also move FOREACH_ARRAY()/FOREACH_ELEMENT() to fundamental
Lennart Poettering [Mon, 24 Jun 2024 13:54:47 +0000 (15:54 +0200)] 
macro: also move FOREACH_ARRAY()/FOREACH_ELEMENT() to fundamental

This is also very useful in EFI code.

16 months agomacro: move sizeof_field() macro into src/fundamental/
Lennart Poettering [Mon, 24 Jun 2024 13:52:00 +0000 (15:52 +0200)] 
macro: move sizeof_field() macro into src/fundamental/

Let's make this macro available for our EFI code too.

16 months agodocs: Add section to HACKING.md on distribution packages
Daan De Meyer [Wed, 26 Jun 2024 13:35:30 +0000 (15:35 +0200)] 
docs: Add section to HACKING.md on distribution packages

16 months agopolkit: allow non-local users to block sleep and shutdown 33491/head
Zbigniew Jędrzejewski-Szmek [Wed, 26 Jun 2024 10:27:10 +0000 (12:27 +0200)] 
polkit: allow non-local users to block sleep and shutdown

We already had 'auth_admin_keep' for org.freedesktop.login1.reboot and similar
actions. If a user is allowed to perform an action, I think they should be
allowed to _block_ the same action. Guarding this by auth_admin follows the
general principle of not allowing fully unprivileged users to have too much say
over the machine.

16 months agoinhibit: add --no-ask-password option and allow interactive polkit auth
Zbigniew Jędrzejewski-Szmek [Wed, 26 Jun 2024 10:21:05 +0000 (12:21 +0200)] 
inhibit: add --no-ask-password option and allow interactive polkit auth

It seems entirely reasonable to make a policy which e.g. allows block operations
for interactive users after authentication. The tool should support this, so that
more complicated local policies can be used.

Related to https://github.com/systemd/systemd/pull/30307.

16 months agoRename spawn-ask-password-agent.c to just ask-password-agent.c
Zbigniew Jędrzejewski-Szmek [Wed, 26 Jun 2024 10:07:36 +0000 (12:07 +0200)] 
Rename spawn-ask-password-agent.c to just ask-password-agent.c

The functions in the file were *not* using the spawn prefix,
and the prefix seems completely unnecessary.

16 months agoRename spawn-polkit-agent.c to just polkit-agent.c
Zbigniew Jędrzejewski-Szmek [Wed, 26 Jun 2024 10:07:36 +0000 (12:07 +0200)] 
Rename spawn-polkit-agent.c to just polkit-agent.c

The functions in the file were *not* using the spawn prefix,
and the prefix seems completely unnecessary.

16 months agoman: Add %q specifier to repart.d, sysusers.d 33338/head
Matthias Lisin [Wed, 26 Jun 2024 02:13:09 +0000 (04:13 +0200)] 
man: Add %q specifier to repart.d, sysusers.d

16 months agotmpfiles: use common macro for a set of specifiers
Matthias Lisin [Wed, 26 Jun 2024 02:12:42 +0000 (04:12 +0200)] 
tmpfiles: use common macro for a set of specifiers

This adds %q, %A and %M specifiers to tmpfiles:
- %A and %M were previously added to tmpfiles.d man page, but not to specifier_table
- %q is added via COMMON_SYSTEM_SPECIFIERS

16 months agoimport-generator: open up NotifyAccess for varlinkctl
Mike Yuan [Tue, 25 Jun 2024 12:50:11 +0000 (14:50 +0200)] 
import-generator: open up NotifyAccess for varlinkctl

So that it can report errors through VARLINKERROR=.

16 months agomkosi: update fedora commit reference
Daan De Meyer [Tue, 25 Jun 2024 14:34:28 +0000 (16:34 +0200)] 
mkosi: update fedora commit reference

8153d9b0f9 Revert "Remove tmpfiles snippet for /home and /srv"
a76669ee22 Remove tmpfiles snippet for /home and /srv
b3e1d52cb4 Soft-disable tmpfiles --purge until a good use case comes up
4a29ab3f3b Version 256.1
ebf352d292 disable auto-features when bootstrapping
1ae0516ae7 Version 256
b32641170e Restore patch to drop varlink method call
421f0041b3 Version 256~rc4
65d9b49791 Fix typo
c56891fb68 Drop sysusers.d/basic.conf
69472997b9 Renumber sources and make order more consistent

16 months agomkosi: update debian commit reference
Daan De Meyer [Tue, 25 Jun 2024 14:18:02 +0000 (16:18 +0200)] 
mkosi: update debian commit reference

3b4368d4b8 d/not-installed: fix shutdown.standalone path
2de05155e8 Update changelog for 256.1-2 release
cd98bcef06 autopkgtest: add dependency on libcryptsetup-dev in unit-tests suite
e220ce22f1 Bump breaks/replaces to conflicts for DEP17

16 months agoMerge pull request #33451 from yuwata/core-exec-use-write
Luca Boccassi [Tue, 25 Jun 2024 12:44:21 +0000 (14:44 +0200)] 
Merge pull request #33451 from yuwata/core-exec-use-write

core: use write() instead of send()

16 months agoMerge pull request #33450 from yuwata/network-ndisc-do-not-override-static-routes
Luca Boccassi [Tue, 25 Jun 2024 12:40:06 +0000 (14:40 +0200)] 
Merge pull request #33450 from yuwata/network-ndisc-do-not-override-static-routes

network/NDisc: do not override static routes

16 months agoMerge pull request #33003 from poettering/repart-progress
Lennart Poettering [Tue, 25 Jun 2024 12:08:04 +0000 (14:08 +0200)] 
Merge pull request #33003 from poettering/repart-progress

repart: draw progress bar during CopyBlocks= operation and other tweaks

16 months agoMerge pull request #33078 from poettering/import-generator
Lennart Poettering [Tue, 25 Jun 2024 12:07:46 +0000 (14:07 +0200)] 
Merge pull request #33078 from poettering/import-generator

importd: add import generator

16 months agonetwork/ndisc: fix spurious log messages
Yu Watanabe [Tue, 25 Jun 2024 07:33:15 +0000 (16:33 +0900)] 
network/ndisc: fix spurious log messages

- Fix swapped arguments:

Before:
veth99: Prefix 'in deny list' is 2002:da8:1::/64, ignoring
After:
veth99: Prefix '2002:da8:1::/64' is in deny list, ignoring.

- Drop unnecessary DEBUG_LOGGING.