]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
14 months agonetwork-generator: drop wrong warning for rd.peerdns without value 33957/head
Yu Watanabe [Wed, 14 Aug 2024 06:39:12 +0000 (15:39 +0900)] 
network-generator: drop wrong warning for rd.peerdns without value

14 months agonetwork-generator: ignore kernel command line without value
Yu Watanabe [Wed, 14 Aug 2024 06:36:22 +0000 (15:36 +0900)] 
network-generator: ignore kernel command line without value

And drop duplicated log messages.

14 months agonetwork-generator: use extract_first_word()
Yu Watanabe [Fri, 9 Aug 2024 05:41:07 +0000 (14:41 +0900)] 
network-generator: use extract_first_word()

Now, ip= with trailing colon is refused.

14 months agonetwork-generator: use network_acquire() at more places
Yu Watanabe [Fri, 9 Aug 2024 05:37:59 +0000 (14:37 +0900)] 
network-generator: use network_acquire() at more places

14 months agonetwork-generator: introduce network_acquire() and netdev_acquire()
Yu Watanabe [Wed, 7 Aug 2024 06:19:23 +0000 (15:19 +0900)] 
network-generator: introduce network_acquire() and netdev_acquire()

No functional change, just refactoring.

14 months agonetwork-generator: trivial cleanups
Yu Watanabe [Thu, 8 Aug 2024 15:42:11 +0000 (00:42 +0900)] 
network-generator: trivial cleanups

14 months agonetwork-generator: parse vlan ID from vlan interface name
Yu Watanabe [Wed, 7 Aug 2024 06:04:46 +0000 (15:04 +0900)] 
network-generator: parse vlan ID from vlan interface name

Fixes #33954.

14 months agonetwork-generator: allow to create bridge or friends without slave interfaces
Yu Watanabe [Fri, 9 Aug 2024 10:01:40 +0000 (19:01 +0900)] 
network-generator: allow to create bridge or friends without slave interfaces

14 months agonetwork-generator: vlan= can be specified multiple times
Yu Watanabe [Wed, 7 Aug 2024 06:03:59 +0000 (15:03 +0900)] 
network-generator: vlan= can be specified multiple times

14 months agotest: add one more test case without hostname
Yu Watanabe [Fri, 9 Aug 2024 06:39:05 +0000 (15:39 +0900)] 
test: add one more test case without hostname

14 months agotest: modernize test-network-generator
Yu Watanabe [Fri, 9 Aug 2024 05:34:33 +0000 (14:34 +0900)] 
test: modernize test-network-generator

15 months agotest: note in README how to get full list of Ubuntu CI jobs
Luca Boccassi [Thu, 8 Aug 2024 14:13:38 +0000 (15:13 +0100)] 
test: note in README how to get full list of Ubuntu CI jobs

15 months agohwdb: Fix accelerometer mount matrix for ASUS T100TAS
Renan Guilherme [Wed, 7 Aug 2024 22:57:18 +0000 (18:57 -0400)] 
hwdb: Fix accelerometer mount matrix for ASUS T100TAS

15 months agoMerge pull request #33959 from DaanDeMeyer/crash
Daan De Meyer [Thu, 8 Aug 2024 06:14:46 +0000 (08:14 +0200)] 
Merge pull request #33959 from DaanDeMeyer/crash

Two crash handler improvements

15 months agonspawn: fix settings leak for init parameter
Luca Boccassi [Wed, 7 Aug 2024 21:35:52 +0000 (22:35 +0100)] 
nspawn: fix settings leak for init parameter

Fixes https://github.com/systemd/systemd/issues/33960

Follow-up for ce2291730d5f91190e97e7c515ac772ae4970062

15 months agocrash-handler: Drop 10s sleep before we spawn the crash shell 33959/head
Daan De Meyer [Wed, 7 Aug 2024 18:48:09 +0000 (20:48 +0200)] 
crash-handler: Drop 10s sleep before we spawn the crash shell

It pointlessly delays getting to the crash shell so let's drop the
10s sleep.

15 months agocrash-handler: Call vhangup on /dev/console before spawning crash shell
Daan De Meyer [Wed, 7 Aug 2024 18:44:38 +0000 (20:44 +0200)] 
crash-handler: Call vhangup on /dev/console before spawning crash shell

When pid 1 crashes, the getty unit for the console will happily keep
running which means we end up with two shells competing for the same
tty. Let's call vhangup on /dev/console to kill every other process
attached to the console before we spawn the crash shell. The getty
units have Restart=always but lucky for us, pid 1 just crashed in fire
and flames so it isn't actually able to restart the getty unit.

15 months agomkosi: Disable debuginfod
Daan De Meyer [Wed, 7 Aug 2024 19:23:37 +0000 (21:23 +0200)] 
mkosi: Disable debuginfod

We generally don't care about library debuginfo so let's just disable
debuginfod so it doesn't get in the way when debugging.

We use /root/.gdbinit as the systemwide gdbinit location is distribution
specific.

15 months agomeson: enable -Wunterminated-string-initialization
Yu Watanabe [Wed, 7 Aug 2024 05:03:13 +0000 (14:03 +0900)] 
meson: enable -Wunterminated-string-initialization

With af1a6db58fde8f64edcf7d27e1f3b636c999934c, now we can build with the
option.

15 months agoMerge pull request #33951 from DaanDeMeyer/nspawn
Daan De Meyer [Wed, 7 Aug 2024 05:32:50 +0000 (07:32 +0200)] 
Merge pull request #33951 from DaanDeMeyer/nspawn

nspawn: Allow specifying custom init program

15 months agobasic|boot: silence Wunterminated-string-initialization gcc15 warnings
Cristian Rodríguez [Sun, 4 Aug 2024 22:51:54 +0000 (18:51 -0400)] 
basic|boot: silence Wunterminated-string-initialization gcc15 warnings

gcc15 has -Wunterminated-string-initialization in -Wextra and
warns about string constants that are not null terminated even though
the functions do do out of bounds access.
Silence the warnings by simply not providing an explicit size.

15 months agonspawn: Allow specifying custom init program 33951/head
Daan De Meyer [Tue, 6 Aug 2024 09:08:33 +0000 (11:08 +0200)] 
nspawn: Allow specifying custom init program

This allows for example forcing to use /sbin/init instead of always
using /usr/lib/systemd/systemd if it exists. Or it allows using a
different path altogether.

15 months agocoredump: generate properly symbolized stacktrace for containerized processes
Michal Sekletar [Tue, 9 Jul 2024 13:21:34 +0000 (15:21 +0200)] 
coredump: generate properly symbolized stacktrace for containerized processes

15 months agosysusers: check if requested group name matches user name in queue
Nick Rosbrook [Tue, 6 Aug 2024 00:43:15 +0000 (20:43 -0400)] 
sysusers: check if requested group name matches user name in queue

When creating a user, check if the requested group name matches a user
name in the queue. If that matched user name is also going to be a group
name, then use it for the new user too. In other words, allow the
following:

 u foo -
 u bar -:foo

when both foo and bar are new users.

Fixes #33547

15 months agonspawn: Drop unused includes
Daan De Meyer [Tue, 6 Aug 2024 08:25:06 +0000 (10:25 +0200)] 
nspawn: Drop unused includes

15 months agoMerge pull request #33942 from yuwata/udevadm-info-attribute-walk-json
Daan De Meyer [Tue, 6 Aug 2024 08:23:45 +0000 (10:23 +0200)] 
Merge pull request #33942 from yuwata/udevadm-info-attribute-walk-json

udevadm-info: support json output for --attribute-walk

15 months agoMerge pull request #33933 from yuwata/systemctl-bus-transport-and-runtime-scope
Yu Watanabe [Tue, 6 Aug 2024 00:12:28 +0000 (09:12 +0900)] 
Merge pull request #33933 from yuwata/systemctl-bus-transport-and-runtime-scope

systemctl: fix bus transport and runtime scope handling

15 months agoMerge pull request #33941 from yuwata/network-dhcp-pd-route-type
Yu Watanabe [Tue, 6 Aug 2024 00:11:54 +0000 (09:11 +0900)] 
Merge pull request #33941 from yuwata/network-dhcp-pd-route-type

network/dhcp-pd: introduce UnassignedSubnetPolicy= to customize type of 'catch-all' route

15 months agosystemctl: gracefully adjust bus transport and runtime scope when --boot-loader-entry... 33933/head
Yu Watanabe [Sun, 4 Aug 2024 05:09:53 +0000 (14:09 +0900)] 
systemctl: gracefully adjust bus transport and runtime scope when --boot-loader-entry=help

This fixes the following assertion:
===
SYSTEMD_LOG_LEVEL=debug systemctl --user -H foo --boot-loader-entry=help
Assertion 'transport != BUS_TRANSPORT_REMOTE || runtime_scope == RUNTIME_SCOPE_SYSTEM' failed at src/shared/bus-util.c:284, function bus_connect_transport(). Ignoring.
Failed to connect to bus: Operation not supported
===

Fixes a bug introduced by 97af80c5a7029c3f92e982dcf9338b9e67ad9cde.
Fixes #33661.
Fixes oss-fuzz#70153.

15 months agotest-network: add test case for UnassignedSubnetPolicy= 33941/head
Yu Watanabe [Mon, 5 Aug 2024 02:18:45 +0000 (11:18 +0900)] 
test-network: add test case for UnassignedSubnetPolicy=

15 months agonetwork/dhcp-pd: allow to customize route type for delegated prefix
Yu Watanabe [Sun, 4 Aug 2024 09:18:51 +0000 (18:18 +0900)] 
network/dhcp-pd: allow to customize route type for delegated prefix

Closes #33929.

15 months agoudevadm-info: support json output for --attribute-walk 33942/head
Yu Watanabe [Mon, 5 Aug 2024 03:29:46 +0000 (12:29 +0900)] 
udevadm-info: support json output for --attribute-walk

Closes #33852.

15 months agosrc/pcrlock/pcrlock.c: Handle empty pcrlock.d directories
Arnaud Patard [Mon, 8 Jul 2024 13:39:14 +0000 (15:39 +0200)] 
src/pcrlock/pcrlock.c: Handle empty pcrlock.d directories

Running the following commands:

  # mkdir -p /var/lib/pcrlock.d/123-empty.pcrlock.d
  # /usr/lib/systemd/systemd-pcrlock predict --pcr=1+2+3+4+5+16

Will result in:

...
Floating point exception

Running the following commands:
  # mkdir -p /var/lib/pcrlock.d/123-empty.pcrlock.d
  # /usr/lib/systemd/systemd-pcrlock make-policy --pcr=1+2+3+4+5+16

Will result to this (partial) log:
...
Predicted future PCRs in 133us.
[]
...
Written policy digest 0000000000000000000000000000000000000000000000000000000000000000 to NV index 0x1921da6
...

So, add missing checks to handle gracefully cases where there's no variant
inside the component.

Signed-off-by: Arnaud Patard <arnaud.patard@collabora.com>
15 months agologind: add PreparingForShutdownWithMetadata property
Luca Boccassi [Sun, 4 Aug 2024 22:47:29 +0000 (23:47 +0100)] 
logind: add PreparingForShutdownWithMetadata property

The PrepareForShutdownWithMetadata signal was added via
e4aab5cf1a00bbb73f325f4f785dd4171ccdae77 but a corresponding property
was not. A property has to be a single type, so the bool needs to be
one of the key/value pairs as 'ba{sv}' is not a valid property.

15 months agoMerge pull request #33912 from DaanDeMeyer/mkosi
Daan De Meyer [Mon, 5 Aug 2024 14:21:48 +0000 (16:21 +0200)] 
Merge pull request #33912 from DaanDeMeyer/mkosi

test: Add a way to quickly iterate on an integration test

15 months agomkosi: Prevent busybox from getting pulled into opensuse images
Daan De Meyer [Mon, 5 Aug 2024 13:37:46 +0000 (15:37 +0200)] 
mkosi: Prevent busybox from getting pulled into opensuse images

OpenSUSE's busybox has a bunch of Provides for basic tools that cause
it to get pulled into images unless the corresponding tool is explicitly
installed so let's add explicit tools to make sure we don't get busybox.

15 months agosystemd-analyze: Add svg scaling options
rajmohan r [Mon, 29 Jul 2024 12:10:58 +0000 (17:40 +0530)] 
systemd-analyze: Add svg scaling options

+ Scale the x-axis of the resulting plot by a factor (default 1.0)
+ Add activation timestamps to each bar

Signed-off-by: rajmohan r <rajmohan.r@kpit.com>
15 months agotest: Add a way to quickly iterate on an integration test 33912/head
Daan De Meyer [Fri, 2 Aug 2024 14:25:03 +0000 (16:25 +0200)] 
test: Add a way to quickly iterate on an integration test

Rebuilding the integration test every time is very slow. Let's
introduce a way to iterate on an integration test without rebuilding
the image every time. By making a btrfs snapshot before we run the
integration test, we can then systemctl soft-reboot after running
the test to restore the rootfs to a pristine state before running
the test again.

As /run/nextroot will get nuked on reboot or soft-reboot, we introduce
a tmpfiles snippet to make sure it is recreated every (soft-)reboot
and adapt the existing tests to deal with this new symlink.

15 months agomkosi: Switch back to btrfs
Daan De Meyer [Fri, 2 Aug 2024 14:23:40 +0000 (16:23 +0200)] 
mkosi: Switch back to btrfs

The next commit will introduce a way to iterate on integration
tests which depends on btrfs specific features.

We leave CentOS on ext4 as its kernel does not support btrfs.

15 months agomkosi: Enable Autologin= again on Debian
Daan De Meyer [Fri, 2 Aug 2024 14:22:37 +0000 (16:22 +0200)] 
mkosi: Enable Autologin= again on Debian

Debian uses /usr/bin/login from the shadow package instead of util-linux
which doesn't support credentials. Let's enable autologin the old
fashioned way for now.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833256

15 months agotest: Implement TEST_SHELL for mkosi based test runner
Daan De Meyer [Fri, 2 Aug 2024 13:46:41 +0000 (15:46 +0200)] 
test: Implement TEST_SHELL for mkosi based test runner

TEST_SHELL can be used to get a shell in the integration test
environment without actually immediately starting the test.

15 months agotest: Rename INTERACTIVE_DEBUG to TEST_SHELL
Daan De Meyer [Fri, 2 Aug 2024 14:16:14 +0000 (16:16 +0200)] 
test: Rename INTERACTIVE_DEBUG to TEST_SHELL

15 months agodocs: Update upgrade commands in HACKING.md
Daan De Meyer [Fri, 2 Aug 2024 13:18:45 +0000 (15:18 +0200)] 
docs: Update upgrade commands in HACKING.md

- Add the required options to make the package managers non interactive
- Use apt-get instead of apt
- Remove --reinstall from apt-get command so we only install newer packages
- Add --needed to pacman command so we only install newer packages

15 months agomkosi: Drop locale tmpfiles snippet
Daan De Meyer [Fri, 2 Aug 2024 11:45:41 +0000 (13:45 +0200)] 
mkosi: Drop locale tmpfiles snippet

Not required anymore as we don't do /usr only anymore and the symlink
will be created by the debian systemd package.

15 months agoMerge pull request #33939 from yuwata/resolve-varlink
Luca Boccassi [Mon, 5 Aug 2024 09:37:39 +0000 (11:37 +0200)] 
Merge pull request #33939 from yuwata/resolve-varlink

resolve: type field in result of ResolveService may be NULL

15 months agoMerge pull request #33944 from yuwata/journal-max-retention-sec
Luca Boccassi [Mon, 5 Aug 2024 09:28:48 +0000 (11:28 +0200)] 
Merge pull request #33944 from yuwata/journal-max-retention-sec

journal: do not rotate journal when MaxRetentionSec= is set

15 months agojournal: set flushed flag even if we fail to open runtime journals
Yu Watanabe [Mon, 5 Aug 2024 05:18:21 +0000 (14:18 +0900)] 
journal: set flushed flag even if we fail to open runtime journals

As at this stage, a persistent journal file has been already opened, and
saved seqnum has been reset, and any later journal entries will be stored
to the file. Hence we should not open the runtime journal file by
server_system_journal_open() again.

15 months agojournal: comment the default value in journald.conf 33944/head
Yu Watanabe [Mon, 5 Aug 2024 06:24:07 +0000 (15:24 +0900)] 
journal: comment the default value in journald.conf

15 months agojournal: do not rotate journal when MaxRetentionSec= is set
Yu Watanabe [Mon, 5 Aug 2024 05:56:11 +0000 (14:56 +0900)] 
journal: do not rotate journal when MaxRetentionSec= is set

The setting is about vacuuming archived journal files. It is not
necessary to rotate the current journal. Note, journal file rotation is
controlled by MaxFileSec=.

Fixes #31315.

15 months agoudevadm-info: trival cleanups
Yu Watanabe [Mon, 5 Aug 2024 03:26:53 +0000 (12:26 +0900)] 
udevadm-info: trival cleanups

- drop trailing an empty line,
- use FOREACH_ARRAY() macro,
- add short comment for boolean argument.

15 months agoresolve: refuse invalid service without type field 33939/head
Yu Watanabe [Mon, 5 Aug 2024 01:46:41 +0000 (10:46 +0900)] 
resolve: refuse invalid service without type field

Fixes Fixes #33935.

15 months agoresolve: voidify unused result of function call
Yu Watanabe [Mon, 5 Aug 2024 01:43:13 +0000 (10:43 +0900)] 
resolve: voidify unused result of function call

15 months agonetwork: split out core logic route_type_is_reject()
Yu Watanabe [Sun, 4 Aug 2024 08:59:50 +0000 (17:59 +0900)] 
network: split out core logic route_type_is_reject()

Preparation for later change.

15 months agosleep: add HibernateOnACPower= option (#33846)
Marc Reisner [Sun, 4 Aug 2024 23:01:34 +0000 (18:01 -0500)] 
sleep: add HibernateOnACPower= option (#33846)

* Add HibernateOnACPower= systemd-sleep configuration option

15 months agoMerge pull request #33918 from YHNdnzj/exec-cred-cleanup
Luca Boccassi [Sun, 4 Aug 2024 12:20:27 +0000 (14:20 +0200)] 
Merge pull request #33918 from YHNdnzj/exec-cred-cleanup

core/exec-credential: several cleanups

15 months agoMerge pull request #33930 from yuwata/update-syscall-tables-and-linux-headers
Luca Boccassi [Sun, 4 Aug 2024 11:31:47 +0000 (13:31 +0200)] 
Merge pull request #33930 from yuwata/update-syscall-tables-and-linux-headers

Update syscall tables and linux headers

15 months agosd-event: change error code -EINVAL -> -EIO
Yu Watanabe [Sun, 4 Aug 2024 02:29:03 +0000 (11:29 +0900)] 
sd-event: change error code -EINVAL -> -EIO

EINVAL should be used when a function is called with an invalid
argument. Here, the signal is not a function argument.

Follow-up for 7a64c5f23efbb51fe4f1229c1a8aed6dd858a0a9.

15 months agobasic/linux: update kernel headers from v6.11-rc1 33930/head
Yu Watanabe [Sun, 4 Aug 2024 01:38:21 +0000 (10:38 +0900)] 
basic/linux: update kernel headers from v6.11-rc1

15 months agoseccomp: list fstatat, newfstat, and llseek
Yu Watanabe [Sun, 4 Aug 2024 01:34:26 +0000 (10:34 +0900)] 
seccomp: list fstatat, newfstat, and llseek

15 months agosyscall-list: update syscall tables
Yu Watanabe [Sun, 4 Aug 2024 01:28:06 +0000 (10:28 +0900)] 
syscall-list: update syscall tables

This adds fstatat (and its friends), llseek, and uretprobe.

15 months agosystemctl: refuse --capsule=foo with --system
Yu Watanabe [Sun, 4 Aug 2024 05:07:13 +0000 (14:07 +0900)] 
systemctl: refuse --capsule=foo with --system

Fixes the following assertion:
===
systemctl --capsule=hoge --system reboot
Assertion 'runtime_scope == RUNTIME_SCOPE_USER' failed at src/shared/bus-util.c:479, function bus_connect_transport(). Aborting.
Aborted (core dumped)
===

Follow-up for 56cb74c3cd1358d7d0b3f613feaf2eeab601a6bd.

15 months agocore/exec-credential: do not use unlink_and_free for relative path under dfd 33918/head
Mike Yuan [Wed, 31 Jul 2024 21:45:16 +0000 (23:45 +0200)] 
core/exec-credential: do not use unlink_and_free for relative path under dfd

15 months agocore/exec-credential: emit correct error on invalid cred source
Mike Yuan [Wed, 31 Jul 2024 21:38:25 +0000 (23:38 +0200)] 
core/exec-credential: emit correct error on invalid cred source

The (!source && !search_path) branch is effectively not reached,
but rather confusing. Let's return -EINVAL properly.

15 months agocore/exec-credential: use struct load_cred_args everywhere
Mike Yuan [Wed, 31 Jul 2024 17:44:25 +0000 (19:44 +0200)] 
core/exec-credential: use struct load_cred_args everywhere

We currently duplicate the same set of params for every funcs.
Let's unify this, and make things more manageable.

15 months agocore/exec-credential: use maybe_decrypt_and_write_credential() for SetCred= too
Mike Yuan [Wed, 31 Jul 2024 17:05:15 +0000 (19:05 +0200)] 
core/exec-credential: use maybe_decrypt_and_write_credential() for SetCred= too

15 months agocore/exec-credential: drop misleading comment regarding EEXIST
Mike Yuan [Wed, 31 Jul 2024 17:03:44 +0000 (19:03 +0200)] 
core/exec-credential: drop misleading comment regarding EEXIST

Follow-up for 2c2ed3272b992b6eb13864e49847c943e42be00f

As explained in the referenced commit, we shall never get EEXIST
in the first place.

15 months agocore/exec-credential: trivial coding style cleanup
Mike Yuan [Wed, 31 Jul 2024 16:50:38 +0000 (18:50 +0200)] 
core/exec-credential: trivial coding style cleanup

15 months agocore/dbus-execute: normalize "rename" arg properly
Mike Yuan [Sat, 3 Aug 2024 11:18:01 +0000 (13:18 +0200)] 
core/dbus-execute: normalize "rename" arg properly

Follow-up for 40dd2a1c24b886d9e635fef8f7b5336700df03c3

Addresses https://github.com/systemd/systemd/pull/33916#discussion_r1702616229

15 months agopo: Translated using Weblate (Croatian)
Marin Kresic [Sun, 4 Aug 2024 03:41:07 +0000 (05:41 +0200)] 
po: Translated using Weblate (Croatian)

Currently translated at 82.8% (193 of 233 strings)

Co-authored-by: Marin Kresic <marinjurekresic@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/hr/
Translation: systemd/main

15 months agopo: Translated using Weblate (Greek)
Dimitrys Meliates [Sun, 4 Aug 2024 03:41:06 +0000 (05:41 +0200)] 
po: Translated using Weblate (Greek)

Currently translated at 37.7% (88 of 233 strings)

Co-authored-by: Dimitrys Meliates <demetresmeliates+fedora@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/el/
Translation: systemd/main

15 months agobase-filesystem: do not attempt to create a /lib64 -> /usr/lib/<tuple> symlink
Luca Boccassi [Sat, 3 Aug 2024 23:00:05 +0000 (00:00 +0100)] 
base-filesystem: do not attempt to create a /lib64 -> /usr/lib/<tuple> symlink

In multi-arch distributions (debian and derivatives) multiarch tuples under
/usr/lib are used, such as /usr/lib/x86_64-linux-gnu/ but the /lib64 symlink
should never point there, it should always point to /usr/lib64, as that's
how they are set up by distribution-specific tools.

https://packages.debian.org/bookworm/amd64/libc6-i386/filelist
https://packages.debian.org/bookworm/mipsel/libc6-mips64/filelist
https://salsa.debian.org/md/usrmerge/-/blob/master/convert-usrmerge?ref_type=heads#L295
https://salsa.debian.org/md/usrmerge/-/blob/master/convert-usrmerge?ref_type=heads#L517
http://bugs.debian.org/1076491

Fixes https://github.com/systemd/systemd/issues/33919

15 months agomeson: Use -fstrict-flex-arrays=3
Daan De Meyer [Sat, 3 Aug 2024 18:10:54 +0000 (20:10 +0200)] 
meson: Use -fstrict-flex-arrays=3

Let's explicitly pass the value to -fstrict-flex-arrays. This does
not change behavior but it does (selfishly) make my error not bug
out with an error saying -fstrict-flex-arrays does not exist.

15 months agohwdb: fix auto rotate on Asus Q551LB (#33921)
Nova840 [Sun, 4 Aug 2024 00:38:40 +0000 (20:38 -0400)] 
hwdb: fix auto rotate on Asus Q551LB (#33921)

15 months agocore/service: drop redundant flush_n_restarts indicator
Mike Yuan [Sat, 3 Aug 2024 19:46:51 +0000 (21:46 +0200)] 
core/service: drop redundant flush_n_restarts indicator

Now that we track auto-restarts with a dedicated state,
there's no need for a separate variable for this.

I also took the chance to reorder some struct members.

15 months agoMerge pull request #33925 from YHNdnzj/exec-serialize-path-escape
Yu Watanabe [Sun, 4 Aug 2024 00:35:51 +0000 (09:35 +0900)] 
Merge pull request #33925 from YHNdnzj/exec-serialize-path-escape

core/execute-serialize: two fixes

15 months agocore/execute-serialize: use serialize_item_escaped() for external paths 33925/head
Mike Yuan [Sat, 3 Aug 2024 20:38:18 +0000 (22:38 +0200)] 
core/execute-serialize: use serialize_item_escaped() for external paths

Otherwise, read_stripped_line() would spuriously drop trailing spaces.

Fixes #33924

15 months agocore/execute-serialize: drop extraneous '=' in ip-{in,e}gress serialization
Mike Yuan [Sat, 3 Aug 2024 20:37:41 +0000 (22:37 +0200)] 
core/execute-serialize: drop extraneous '=' in ip-{in,e}gress serialization

15 months agocore/service: actually allow to "hurry up" auto restarts
Mike Yuan [Thu, 1 Aug 2024 00:23:14 +0000 (02:23 +0200)] 
core/service: actually allow to "hurry up" auto restarts

unit_start() advertises that start requests don't get suppressed,
so that it could be used to manually speed up auto restarts.
However, service_start() so far rejected this, stating that
clients should issue restart request in order to trigger
BindsTo=/OnFailure=.

That seems to be a red herring though, because for a long time
the service states between auto-restarts were buggy (#27594).
With the introduction of RestartMode=direct, the behavior
is sane again and customizable, hence I see no reason to refuse
this anymore. Whether those deps are triggered solely depends
on RestartMode= now.

Plus, filter out some intermediate states that should never
be seen in service_start().

Fixes #33890

15 months agoMerge pull request #33916 from yuwata/import-creds-follow-ups
Daan De Meyer [Sat, 3 Aug 2024 08:04:55 +0000 (10:04 +0200)] 
Merge pull request #33916 from yuwata/import-creds-follow-ups

core: several follow-ups for ImportCreds=

15 months agocore: refuse credentials with invalid names matching with glob 33916/head
Yu Watanabe [Sat, 3 Aug 2024 05:25:16 +0000 (14:25 +0900)] 
core: refuse credentials with invalid names matching with glob

Even if the glob pattern is valid, the pattern may match credentials
with invalid names. So, we need to check the names of the found
credentials.

Follow-up for 947c4d3952e30604b97f657dca08f93a0a8f4bae.

15 months agotest: a credential can be imported multiple times with different names
Yu Watanabe [Sat, 3 Aug 2024 05:22:37 +0000 (14:22 +0900)] 
test: a credential can be imported multiple times with different names

This is supported since 831f208783aeac443e6f2fc2efc3119535a032ef.
Let's explicitly test the functionality.

15 months agocore: make ImportCredentialEx= DBus property support without renaming
Yu Watanabe [Sat, 3 Aug 2024 05:19:35 +0000 (14:19 +0900)] 
core: make ImportCredentialEx= DBus property support without renaming

Note that the conf parser for ImportCredential= checks in the same way.

Follow-up for 831f208783aeac443e6f2fc2efc3119535a032ef.

15 months agocreds-util: fix typo
Yu Watanabe [Sat, 3 Aug 2024 04:33:59 +0000 (13:33 +0900)] 
creds-util: fix typo

Follow-up for 947c4d3952e30604b97f657dca08f93a0a8f4bae.

15 months agoMerge pull request #33911 from YHNdnzj/cgroup-setup-cleanup
Yu Watanabe [Fri, 2 Aug 2024 21:20:02 +0000 (06:20 +0900)] 
Merge pull request #33911 from YHNdnzj/cgroup-setup-cleanup

cgroup-setup/util: several cleanups; make use of cgroup.kill on client request

15 months agoman/net-naming-scheme: mention that NAMING_BRIDGE_MULTIFUNCTION_SLOT is reverted
Yu Watanabe [Fri, 2 Aug 2024 07:45:15 +0000 (16:45 +0900)] 
man/net-naming-scheme: mention that NAMING_BRIDGE_MULTIFUNCTION_SLOT is reverted

Follow-up for af7417ac7b07bc01232982bf46e9d72e69e7f820.
Closes #33596.

15 months agoman: extend explanation for ConfigureWithoutCarrier= in systemd.network(5)
Yu Watanabe [Fri, 2 Aug 2024 04:42:29 +0000 (13:42 +0900)] 
man: extend explanation for ConfigureWithoutCarrier= in systemd.network(5)

Prompted by #33702.

15 months agovmspawn: fix typo
Yu Watanabe [Fri, 2 Aug 2024 20:56:08 +0000 (05:56 +0900)] 
vmspawn: fix typo

Follow-up for 862c68a914ab4561d83875e58e05dcf65cb4a551.

15 months agoukify: fix typo
Yu Watanabe [Fri, 2 Aug 2024 20:55:02 +0000 (05:55 +0900)] 
ukify: fix typo

Follow-up for 987f4bce938e790622a4b4b89d37daa7adfdc141.

15 months agoudevadm: fix typo
Yu Watanabe [Fri, 2 Aug 2024 20:54:08 +0000 (05:54 +0900)] 
udevadm: fix typo

Follow-up for 0e789e6d48046d43c50dd949a71ac56f1127bb96.

15 months agoimport: fix typo
Yu Watanabe [Fri, 2 Aug 2024 20:53:04 +0000 (05:53 +0900)] 
import: fix typo

Follow-up for 17a6043a145f19f4f5b020fa4bb9c82c1ce160e7.

15 months agologin: fix typo
Yu Watanabe [Fri, 2 Aug 2024 20:51:54 +0000 (05:51 +0900)] 
login: fix typo

Follow-up for 0e10c3d8724b0a5d07871c9de71565ac91dd55b7.

15 months agocore/execute: fix typo
Yu Watanabe [Fri, 2 Aug 2024 20:50:46 +0000 (05:50 +0900)] 
core/execute: fix typo

Follow-up for 628c214656fada4228b62b1546220ac781002897.

15 months agoboot: fix typo
Yu Watanabe [Fri, 2 Aug 2024 20:49:53 +0000 (05:49 +0900)] 
boot: fix typo

Follow-up for dcac1e4a9ba231d8e88d36dbecf3d8b6c9b07cb2.

15 months agocgroup-util: fix typo
Yu Watanabe [Fri, 2 Aug 2024 20:48:51 +0000 (05:48 +0900)] 
cgroup-util: fix typo

Follow-up for 0fbb569de1dcc06118dba006cf7a40caf6cd94d0.

15 months agomkosi: fix typo
Yu Watanabe [Fri, 2 Aug 2024 20:47:52 +0000 (05:47 +0900)] 
mkosi: fix typo

Follow-up for 7205fc7dc31eb2be3075ee6ba23ebe84324aa5cb.

15 months agoman: fix typo
Yu Watanabe [Fri, 2 Aug 2024 20:46:28 +0000 (05:46 +0900)] 
man: fix typo

Follow-up for 7102dc52e6b03248da1f01b3a8a4b83c6d7a1316 and 3d689b675b565c29a51c7127ae30839987aaa18b.

15 months agoman/net-naming-scheme: add missing period
Yu Watanabe [Fri, 2 Aug 2024 07:51:15 +0000 (16:51 +0900)] 
man/net-naming-scheme: add missing period

Follow-up for 0a4ecc54cb9f2d3418b970c51bfadb69c34ae9eb.

15 months agoMerge pull request #33913 from berrange/cvm-s390x
Yu Watanabe [Fri, 2 Aug 2024 20:32:39 +0000 (05:32 +0900)] 
Merge pull request #33913 from berrange/cvm-s390x

Add detection of confidential virtualization on s390x architcture

15 months agoadvanced-issue-labeler: use correct label for env-generator
Mike Yuan [Fri, 2 Aug 2024 19:00:00 +0000 (21:00 +0200)] 
advanced-issue-labeler: use correct label for env-generator

15 months agoman/systemd-detect-virt: list known CVM technologies 33913/head
Daniel P. Berrangé [Fri, 2 Aug 2024 12:17:56 +0000 (13:17 +0100)] 
man/systemd-detect-virt: list known CVM technologies

Add a section which lists the known confidential virtual machine
technologies.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>