]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
10 months agoMerge pull request #29764 from dtardon/varlink-io.systemd.service
Luca Boccassi [Wed, 1 Nov 2023 14:41:58 +0000 (14:41 +0000)] 
Merge pull request #29764 from dtardon/varlink-io.systemd.service

Add varlink interface io.systemd.service

10 months agoMerge pull request #29691 from yuwata/dissect
Luca Boccassi [Wed, 1 Nov 2023 14:36:28 +0000 (14:36 +0000)] 
Merge pull request #29691 from yuwata/dissect

udev: update devlink with the newer device node even when priority is equivalent

10 months agobsod,loop-util: fix fd validity check
Lennart Poettering [Wed, 1 Nov 2023 12:08:26 +0000 (13:08 +0100)] 
bsod,loop-util: fix fd validity check

10 months agoproc-cmdline: use read_virtual_file() for /proc/cmdline
Lennart Poettering [Wed, 1 Nov 2023 10:26:03 +0000 (11:26 +0100)] 
proc-cmdline: use read_virtual_file() for /proc/cmdline

10 months agoMerge pull request #29788 from poettering/nspawn-barrier-fix
Lennart Poettering [Wed, 1 Nov 2023 14:20:15 +0000 (15:20 +0100)] 
Merge pull request #29788 from poettering/nspawn-barrier-fix

nspawn: fix barriers when wiping fully visible procfs/sysfs

10 months agocryptenroll: use erase_and_free() at two more places
Lennart Poettering [Wed, 1 Nov 2023 10:26:27 +0000 (11:26 +0100)] 
cryptenroll: use erase_and_free() at two more places

10 months agosd-netlink: res_id is 16bit but serial is 32bit
Yu Watanabe [Wed, 1 Nov 2023 09:47:36 +0000 (18:47 +0900)] 
sd-netlink: res_id is 16bit but serial is 32bit

The explicit value here is not so important.
Let's chop off the higher bits.

Fixes the issue reported at
https://github.com/systemd/systemd/pull/29802#issuecomment-1788637950.

10 months agoMerge pull request #29803 from poettering/coredump-message-tweaks
Luca Boccassi [Wed, 1 Nov 2023 13:20:11 +0000 (13:20 +0000)] 
Merge pull request #29803 from poettering/coredump-message-tweaks

coredump: tweaks to log message & more

10 months agodhcp6: enterprise ID is 32bit
Yu Watanabe [Wed, 1 Nov 2023 08:49:44 +0000 (17:49 +0900)] 
dhcp6: enterprise ID is 32bit

Follow-up for 6b44099b3baff64af1ef58db8e38ecddc8070e9b.

Fixes #29800.

10 months agobuild(deps): bump actions/checkout from 4.1.0 to 4.1.1
dependabot[bot] [Wed, 1 Nov 2023 09:39:16 +0000 (09:39 +0000)] 
build(deps): bump actions/checkout from 4.1.0 to 4.1.1

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/8ade135a41bc03ea155e62e844d188df1ea18608...b4ffde65f46336ab88eb53be808477a3936bae11)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
10 months agobuild(deps): bump redhat-plumbers-in-action/differential-shellcheck
dependabot[bot] [Wed, 1 Nov 2023 09:39:23 +0000 (09:39 +0000)] 
build(deps): bump redhat-plumbers-in-action/differential-shellcheck

Bumps [redhat-plumbers-in-action/differential-shellcheck](https://github.com/redhat-plumbers-in-action/differential-shellcheck) from 4.2.2 to 5.0.1.
- [Release notes](https://github.com/redhat-plumbers-in-action/differential-shellcheck/releases)
- [Changelog](https://github.com/redhat-plumbers-in-action/differential-shellcheck/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/redhat-plumbers-in-action/differential-shellcheck/compare/ac4483d8c6713bd2011037f44fe626989468af74...aa647ec4466543e8555c2c3b648124a9813cee44)

---
updated-dependencies:
- dependency-name: redhat-plumbers-in-action/differential-shellcheck
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
10 months agobuild(deps): bump ossf/scorecard-action from 2.2.0 to 2.3.1
dependabot[bot] [Wed, 1 Nov 2023 09:39:26 +0000 (09:39 +0000)] 
build(deps): bump ossf/scorecard-action from 2.2.0 to 2.3.1

Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.2.0 to 2.3.1.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/08b4669551908b1024bb425080c797723083c031...0864cf19026789058feabb7e87baa5f140aac736)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
10 months agovarlink: add generic impl. of io.systemd.service.SetLogLevel() 29764/head
David Tardon [Tue, 31 Oct 2023 08:30:25 +0000 (09:30 +0100)] 
varlink: add generic impl. of io.systemd.service.SetLogLevel()

10 months agoudev: revert workarounds for issues caused by the devlink creation optimization 29691/head
Yu Watanabe [Mon, 30 Oct 2023 04:50:10 +0000 (13:50 +0900)] 
udev: revert workarounds for issues caused by the devlink creation optimization

This reverts the following two commits:
- "udev: decrease devlink priority for encrypted partitions"
  c4521fc17bb33d10bf5aca3f87f6a394dfecf423.
- "udev: decrease devlink priority for iso disks"
  df1dccd25547b430258bd42ec60428fc9aff1370.

These commits are workarounds for issues caused by
331aa7aa15ee5dd12b369b276f575d521435eb52.
With the previous commit, these workarounds are not necessary anymore,
as partitions are always processed later than their whole disk, and
a decrypted volume is also processed later than its backing volume.

10 months agoudev: update devlink with the newer device node even when priority is equivalent
Yu Watanabe [Mon, 30 Oct 2023 04:31:23 +0000 (13:31 +0900)] 
udev: update devlink with the newer device node even when priority is equivalent

Several udev rules depends on the previous behavior, i.e. that udev
replaces the devlink with the newer device node when the priority is
equivalent. Let's relax the optimization done by
331aa7aa15ee5dd12b369b276f575d521435eb52.

Follow-up for 331aa7aa15ee5dd12b369b276f575d521435eb52.

Note, the offending commit drops O(N) of file reads per uevent, and this
commit does not change the computational order. So, hopefully the
performance impact of this change is small enough.

Fixes #28141.

10 months agoman: Improve text for SystemMaxFileSize when not set
AndrĂ© Paiusco [Tue, 31 Oct 2023 14:25:01 +0000 (15:25 +0100)] 
man: Improve text for SystemMaxFileSize when not set

If one sets the SystemMaxUse=64G by the current documentation would expect that each files size would be around 1/8 of this value (8G), althought if the SystemMaxFileSize is not explicit set, it has a max of 128M per file.

10 months agoanalyze: handle CAP_BPF support
Peter Hutterer [Tue, 3 May 2022 04:24:42 +0000 (14:24 +1000)] 
analyze: handle CAP_BPF support

10 months agoman: explicitly mention that environment.d/ cannot be used to set the service manager...
Lennart Poettering [Wed, 1 Nov 2023 08:33:47 +0000 (09:33 +0100)] 
man: explicitly mention that environment.d/ cannot be used to set the service manager's own env block

Fixes: #29414
10 months agoman: fix typo
Yu Watanabe [Wed, 1 Nov 2023 09:38:43 +0000 (18:38 +0900)] 
man: fix typo

Follow-up for ba87a61d05d637be9f0b21707f7fe3b0a74c5a05.

10 months agonetwork: support ID_NET_MANAGED_BY udev property
Yu Watanabe [Tue, 31 Oct 2023 09:07:08 +0000 (18:07 +0900)] 
network: support ID_NET_MANAGED_BY udev property

If the property is set, networkd manages the interface only when its
value is "io.systemd.Network".

Closes #29768.

10 months agocoredump: let's always drop privileges 29803/head
Lennart Poettering [Wed, 1 Nov 2023 09:00:05 +0000 (10:00 +0100)] 
coredump: let's always drop privileges

Let's unconditionally drop privileges before submitting the coredump log
message.

Let's make the codepaths where we acquired a coredump and where we
didn't more alike: let's drop privs in both cases.

This is not only safer, but means that the coredump messages are always
accessible by the owner of the aborted process.

10 months agocoredump: tweak coredump log message
Lennart Poettering [Wed, 1 Nov 2023 08:55:40 +0000 (09:55 +0100)] 
coredump: tweak coredump log message

Let's not claim a process dumped core if that was disabled via resource
limits.

While we are at it, switch from stack to heap allocation for the log
message, as it includes a stack trace which can be arbitrarily large.

Fixes: #28559
10 months agoNEWS: fix typo
Yu Watanabe [Wed, 1 Nov 2023 04:54:15 +0000 (13:54 +0900)] 
NEWS: fix typo

10 months agoMerge pull request #29770 from Werkov/doc-fixes
Yu Watanabe [Wed, 1 Nov 2023 04:06:54 +0000 (13:06 +0900)] 
Merge pull request #29770 from Werkov/doc-fixes

Doc fixes

10 months agoMerge pull request #29786 from mrc0mmand/more-executor-stuff
Yu Watanabe [Wed, 1 Nov 2023 03:51:08 +0000 (12:51 +0900)] 
Merge pull request #29786 from mrc0mmand/more-executor-stuff

test: exercise more systemd-executor related stuff

10 months agoFixed a typo in kernel-install/60-ukify.install.in for globing microcode
Marc Pervaz Boocha [Tue, 31 Oct 2023 17:39:14 +0000 (23:09 +0530)] 
Fixed a typo in kernel-install/60-ukify.install.in for globing microcode

searches in a non-existent micocode/* dir instead of micocode* due a typo in #28592

10 months agocore: rename and add comment to ExecParameters cleanup functions
Luca Boccassi [Thu, 26 Oct 2023 20:55:55 +0000 (21:55 +0100)] 
core: rename and add comment to ExecParameters cleanup functions

10 months agopo: Translated using Weblate (Portuguese)
Hugo Carvalho [Wed, 1 Nov 2023 02:48:14 +0000 (03:48 +0100)] 
po: Translated using Weblate (Portuguese)

Currently translated at 100.0% (227 of 227 strings)

Co-authored-by: Hugo Carvalho <hugokarvalho@hotmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/pt/
Translation: systemd/main

10 months agonspawn: make sure idmapped logic works if DDI contains only /usr/ tree
Lennart Poettering [Tue, 31 Oct 2023 15:10:32 +0000 (16:10 +0100)] 
nspawn: make sure idmapped logic works if DDI contains only /usr/ tree

If we have a DDI that contains only a /usr/ tree (and which is thus
combined with a tmpfs for root on boot) we previously would try to apply
idmapping to the tmpfs, but not the /usr/ mount. That's broken of
course.

Fix this by applying it to both trees.

10 months agoUpdate NEWS
Luca Boccassi [Wed, 1 Nov 2023 00:43:55 +0000 (00:43 +0000)] 
Update NEWS

10 months agoman: change title of the section to better reflect actual content
Michal Sekletar [Tue, 31 Oct 2023 16:12:45 +0000 (17:12 +0100)] 
man: change title of the section to better reflect actual content

10 months agocore: fix a couple of typos 29786/head
Frantisek Sumsal [Tue, 31 Oct 2023 16:33:29 +0000 (17:33 +0100)] 
core: fix a couple of typos

10 months agotest: exercise more systemd-executor related stuff
Frantisek Sumsal [Tue, 31 Oct 2023 14:17:41 +0000 (15:17 +0100)] 
test: exercise more systemd-executor related stuff

10 months agobarrier: use EBADF where appropriate 29788/head
Lennart Poettering [Tue, 31 Oct 2023 14:33:40 +0000 (15:33 +0100)] 
barrier: use EBADF where appropriate

10 months agotest: skip SocketBind*= tests when built without a bpf framework
Frantisek Sumsal [Mon, 30 Oct 2023 18:30:59 +0000 (19:30 +0100)] 
test: skip SocketBind*= tests when built without a bpf framework

The test intentionally checks for -BPF_FRAMEWORK so we run the test case
(and fail) even if we rename the feature flag.

10 months agocore: check if we got a valid personality during deserialization
Frantisek Sumsal [Mon, 30 Oct 2023 16:50:11 +0000 (17:50 +0100)] 
core: check if we got a valid personality during deserialization

10 months agonspawn: fix barriers when wiping fully visible procfs/sysfs
Lennart Poettering [Tue, 31 Oct 2023 14:30:12 +0000 (15:30 +0100)] 
nspawn: fix barriers when wiping fully visible procfs/sysfs

Let's wait until the child is fully done with mounting it's own
instances of procfs/sysfs before we destroy our fully visible copies of
it.

This borrows heavily from Christian Brauners fix #29521, but splits the
place + sync into two steps so that the child payload is not started
before the parent has destroyed the procfs instance.

Alternative to: #29521
Fixes: #28157
10 months agoMerge pull request #29763 from yuwata/vconsole-conf
Lennart Poettering [Tue, 31 Oct 2023 13:37:47 +0000 (14:37 +0100)] 
Merge pull request #29763 from yuwata/vconsole-conf

locale,firstboot: add comments to vconsole.conf

10 months agoudev: fix device name shown in the log message on failure
Yu Watanabe [Tue, 31 Oct 2023 08:31:03 +0000 (17:31 +0900)] 
udev: fix device name shown in the log message on failure

Prompted by #29500.

10 months agoudevadm-trigger: mention --type=all in help
Yu Watanabe [Tue, 31 Oct 2023 08:05:51 +0000 (17:05 +0900)] 
udevadm-trigger: mention --type=all in help

Follow-up for 1baeee5784f1b859d2a1446f6776efe6d7fde7b6.

Fixes #29779.

10 months agoMerge pull request #29769 from poettering/network-generator-ll
Lennart Poettering [Tue, 31 Oct 2023 13:35:49 +0000 (14:35 +0100)] 
Merge pull request #29769 from poettering/network-generator-ll

network-generator: add new mode ip=link-local

10 months agoMerge pull request #29776 from jinliu/pam_kernel_keyring
Lennart Poettering [Tue, 31 Oct 2023 13:34:47 +0000 (14:34 +0100)] 
Merge pull request #29776 from jinliu/pam_kernel_keyring

New PAM module: pam_systemd_loadkey

10 months agoman: Add remarks about StandardInput=socket and sd_listen_fds() 29770/head
Michal KoutnĂ½ [Mon, 30 Oct 2023 18:50:20 +0000 (19:50 +0100)] 
man: Add remarks about StandardInput=socket and sd_listen_fds()

It confuses users when they cannot find respective environment variables
with config that is supposes for (x)inetd activated service only.

Fix: #29670

10 months agosysctl.d: Fix pid_max comment
Michal KoutnĂ½ [Mon, 30 Oct 2023 17:33:51 +0000 (18:33 +0100)] 
sysctl.d: Fix pid_max comment

The actual default is 2^15 and that is also 32b kernels default.
Fix the value, mention 32b and do not talk about default which may
depend on nr_cpus.

Fix: #29607

10 months agovarlink: add generic impl. of io.systemd.varlink.Ping()
David Tardon [Mon, 30 Oct 2023 09:42:17 +0000 (10:42 +0100)] 
varlink: add generic impl. of io.systemd.varlink.Ping()

10 months agovarlink: define interface io.systemd.service
David Tardon [Mon, 30 Oct 2023 09:35:45 +0000 (10:35 +0100)] 
varlink: define interface io.systemd.service

10 months agodissect: reenable automatic removal before trying again
Yu Watanabe [Tue, 24 Oct 2023 17:32:04 +0000 (02:32 +0900)] 
dissect: reenable automatic removal before trying again

The device node may be different from we want to activate, and we may
try to activate different device in the subsequent loop. In such case,
we should enable the automatic removal for the unexpected device.
Otherwise, it will not be removed even when not necessary anymore.

10 months agoNew PAM module: pam_systemd_loadkey 29776/head
Jin Liu [Tue, 31 Oct 2023 04:48:24 +0000 (12:48 +0800)] 
New PAM module: pam_systemd_loadkey

This module reads password from kernel keyring and sets it as PAM authtok.
It's inspired by gdm's pam_gdm, which reads the LUKS password stored by
systemd-cryptsetup, so Gnome Keyring can be automatically unlocked if set
to the same password (when autologin is enabled so the user doesn't enter
a password in gdm).

10 months agoMerge pull request #29778 from yuwata/log-tests-skipped
Lennart Poettering [Tue, 31 Oct 2023 10:19:10 +0000 (11:19 +0100)] 
Merge pull request #29778 from yuwata/log-tests-skipped

tests: use log_tests_skipped() more

10 months agoupdate TODO 29769/head
Lennart Poettering [Mon, 30 Oct 2023 16:57:00 +0000 (17:57 +0100)] 
update TODO

10 months agoNEWS: mention that ip=off now means ip=off
Lennart Poettering [Tue, 31 Oct 2023 10:01:44 +0000 (11:01 +0100)] 
NEWS: mention that ip=off now means ip=off

10 months agoman: document the new ip=link-local kernel cmdline option
Lennart Poettering [Mon, 30 Oct 2023 17:05:42 +0000 (18:05 +0100)] 
man: document the new ip=link-local kernel cmdline option

10 months agonetwork-generator: add support for ip=link-local
Lennart Poettering [Mon, 30 Oct 2023 16:53:40 +0000 (17:53 +0100)] 
network-generator: add support for ip=link-local

10 months agonetwork-generator: name enum for "ip=dhcp" case same as literal string
Lennart Poettering [Mon, 30 Oct 2023 16:53:58 +0000 (17:53 +0100)] 
network-generator: name enum for "ip=dhcp" case same as literal string

Let's make this less confusing, and use the same string externally as
enum name internally.

10 months agolocale: drop implementation detail from comment in config file 29763/head
Yu Watanabe [Mon, 30 Oct 2023 14:07:59 +0000 (23:07 +0900)] 
locale: drop implementation detail from comment in config file

10 months agolocale,firstboot: add headers to vconsole.conf
Yu Watanabe [Mon, 30 Oct 2023 11:30:12 +0000 (20:30 +0900)] 
locale,firstboot: add headers to vconsole.conf

Closes #29717.
Replaces #29760.

Co-authored-by: cunshunxia <cunshunxia@tencent.com>
10 months agoenv-util: make write_env_file() optionally take headers
Yu Watanabe [Mon, 30 Oct 2023 06:04:18 +0000 (15:04 +0900)] 
env-util: make write_env_file() optionally take headers

This also makes write_env_file() and write_env_file_label() optionally
take dir_fd, and drop write_env_file_at().

Preparation for later commits.

10 months agoMerge pull request #29247 from naraghavan/naraghavan/dhcpv6-vendor-options
Yu Watanabe [Tue, 31 Oct 2023 08:14:20 +0000 (17:14 +0900)] 
Merge pull request #29247 from naraghavan/naraghavan/dhcpv6-vendor-options

networkd: Add DHCP vendor specific sub options to dbus API

10 months agotests: use log_tests_skipped() and friend more 29778/head
Yu Watanabe [Tue, 31 Oct 2023 05:53:10 +0000 (14:53 +0900)] 
tests: use log_tests_skipped() and friend more

10 months agotests: make log_tests_skipped() and friend accept format string
Yu Watanabe [Tue, 31 Oct 2023 05:46:38 +0000 (14:46 +0900)] 
tests: make log_tests_skipped() and friend accept format string

10 months agotree-wide: fix typo
Yu Watanabe [Tue, 31 Oct 2023 05:35:33 +0000 (14:35 +0900)] 
tree-wide: fix typo

10 months agonetwork: free dhcp6_hostname
Ronan Pigott [Tue, 31 Oct 2023 00:24:42 +0000 (17:24 -0700)] 
network: free dhcp6_hostname

Fixes: b90480c80daa ("network: introduce SendHostname/Hostname DHCPv6 options")
10 months agoMerge pull request #29767 from poettering/host-to-host
Yu Watanabe [Tue, 31 Oct 2023 01:59:44 +0000 (10:59 +0900)] 
Merge pull request #29767 from poettering/host-to-host

automatic support for host-to-host networking that only does link-local addressing

10 months agotest-network: copy rules from source & build trees if needed
Frantisek Sumsal [Mon, 30 Oct 2023 16:03:19 +0000 (17:03 +0100)] 
test-network: copy rules from source & build trees if needed

When running with --build-dir= we need to copy over udev rules from
$BUILD_DIR/udev.d/ and $SOURCE_TREE/udev.d/ to make stuff work as
expected.

10 months agoupdate TODO 29767/head
Lennart Poettering [Mon, 30 Oct 2023 16:25:18 +0000 (17:25 +0100)] 
update TODO

10 months agonetwork: add default .network file matching ID_NET_AUTO_LINK_LOCAL_ONLY=1
Lennart Poettering [Mon, 30 Oct 2023 16:12:56 +0000 (17:12 +0100)] 
network: add default .network file matching ID_NET_AUTO_LINK_LOCAL_ONLY=1

This is name ".network.example" for now, to match the existing
80-ethernet.network file.

I think it would make sense to actually install this by default if told
so via a meson file (and then hopefully this would happen even on
Fedora, though in a split off RPM or so). However, we aren't there yet,
hence for now, just ship the .network files as example, like the others.

10 months agohwdb,rules: mark host-to-host network devices as only requiring link local addressing
Lennart Poettering [Mon, 30 Oct 2023 15:53:59 +0000 (16:53 +0100)] 
hwdb,rules: mark host-to-host network devices as only requiring link local addressing

This is a generalization of this logic:

https://github.com/NetworkManager/NetworkManager/blob/main/data/90-nm-thunderbolt.rules

It applies not just to thunderbolt, but to any kind of device, even
matched by vendor/product, via hwdb.

I added two entries for Prolific PC-to-PC devices (of which I have one
lying around).

10 months agotest: add one missing cleanup
Frantisek Sumsal [Mon, 30 Oct 2023 10:44:46 +0000 (11:44 +0100)] 
test: add one missing cleanup

So the test doesn't fail when run multiple times with the same image.

10 months agosecure-boot: print just before cold-resetting to help diagnose hangs
Raito Bezarius [Fri, 29 Sep 2023 01:51:54 +0000 (03:51 +0200)] 
secure-boot: print just before cold-resetting to help diagnose hangs

When testing the secureboot enroll feature, it can be hard to distinguish without
using the QMP API of QEMU whether we are in a hang situation of the UEFI firmware.

Making it clear that we reached the `ResetSystem` can be helpful towards that need.

10 months agosleep-config: allow setting empty HibernateMode= (use kernel default)
Mike Yuan [Sun, 29 Oct 2023 16:03:07 +0000 (00:03 +0800)] 
sleep-config: allow setting empty HibernateMode= (use kernel default)

Both sleep_mode_supported and write_mode support this,
but parse_sleep_config currently prohibits this - it always
uses our default value if user specifies HibernateMode=<empty>.

10 months agoUpdate TODO
Lennart Poettering [Mon, 30 Oct 2023 11:28:50 +0000 (12:28 +0100)] 
Update TODO

10 months agodoc: document explicitly when we require specific top-level mounts to be established
Lennart Poettering [Mon, 30 Oct 2023 09:48:58 +0000 (10:48 +0100)] 
doc: document explicitly when we require specific top-level mounts to be established

10 months agonetwork: introduce SendHostname/Hostname DHCPv6 options
Ronan Pigott [Tue, 24 Oct 2023 20:56:22 +0000 (13:56 -0700)] 
network: introduce SendHostname/Hostname DHCPv6 options

These options were previously reused by the DHCPv6 client from the
DHCPv4 client settings. Let's separate them for consistency.

10 months agoupdate TODO
Lennart Poettering [Mon, 30 Oct 2023 09:51:35 +0000 (10:51 +0100)] 
update TODO

10 months agoman: revise wording of cgtop -k and -P
Alex Hudspith [Sat, 28 Oct 2023 14:49:06 +0000 (15:49 +0100)] 
man: revise wording of cgtop -k and -P

Resolves: #29753

10 months agoexec-invoke: don't double-close FDs on error
Luca Boccassi [Fri, 27 Oct 2023 15:33:49 +0000 (16:33 +0100)] 
exec-invoke: don't double-close FDs on error

When a late error occurs in sd-executor, the cleanup-on-close of the
context structs happen, but at that time all FDs might have already
been closed via close_all_fds(), so a double-close happens. This
can be seen when DynamicUser is enabled, with a non-existing
WorkingDirectory.

Invalidate the FDs in the context structs if close_all_fds succeeds.

10 months agomkosi: Use cache and build subdirectories
Daan De Meyer [Sat, 28 Oct 2023 08:37:16 +0000 (10:37 +0200)] 
mkosi: Use cache and build subdirectories

Next release of mkosi will not use subdirectories under the cache
and build directory by default anymore, so let's make sure we already
start creating those ourselves.

10 months agoMerge pull request #29740 from YHNdnzj/sleep-round-four
Mike Yuan [Sat, 28 Oct 2023 09:53:54 +0000 (17:53 +0800)] 
Merge pull request #29740 from YHNdnzj/sleep-round-four

sleep: make sure we clear HibernateLocation on all error paths

10 months agotmpfiles: ignore EINVAL with --graceful
Frantisek Sumsal [Fri, 27 Oct 2023 19:46:18 +0000 (21:46 +0200)] 
tmpfiles: ignore EINVAL with --graceful

Add EINVAL to the list of ignored errnos, since acl_from_text() returns
EINVAL if it can't translate the given string.

~# cat /tmp/tmpfiles-test.conf
a+ /tmp/foo - - - - default:group:foo:rwx
~# build/systemd-tmpfiles /tmp/tmpfiles-test.conf --create --graceful
Failed to parse ACL "default:group:foo:rwx", ignoring: Invalid argument

Resolves: #29742

10 months agotest: io.latency cgroup support might not be available, skip test
Luca Boccassi [Fri, 27 Oct 2023 23:46:40 +0000 (00:46 +0100)] 
test: io.latency cgroup support might not be available, skip test

It doesn't seem to be enabled on Debian stable, and the test fails.

Follow-up for 5efc8183c9cf9b

10 months agonamespace: normalize MountMode type a bit
Lennart Poettering [Thu, 26 Oct 2023 17:22:02 +0000 (19:22 +0200)] 
namespace: normalize MountMode type a bit

Let's prefix it with a common prefix, and make sure the names are all
singular and the string table actually matches the names.

No change in behavour, just some rafactoring to make this enum a bit
less special, and make it follow our usual coding style more closely.

10 months agoMerge pull request #29693 from rpigott/dhcp-rapid-commit
Yu Watanabe [Sat, 28 Oct 2023 01:23:23 +0000 (10:23 +0900)] 
Merge pull request #29693 from rpigott/dhcp-rapid-commit

network: implement RFC4039 DHCP Rapid Commit

10 months agoMerge pull request #29737 from glance-/tpm2-openssl
Luca Boccassi [Fri, 27 Oct 2023 22:21:44 +0000 (23:21 +0100)] 
Merge pull request #29737 from glance-/tpm2-openssl

tpm2: fix build failure without openssl

10 months agoMerge pull request #29734 from YHNdnzj/fstab-filter-options
Luca Boccassi [Fri, 27 Oct 2023 22:20:46 +0000 (23:20 +0100)] 
Merge pull request #29734 from YHNdnzj/fstab-filter-options

fstab-generator: drop ignored mount options from mount unit Options=

10 months agoMerge pull request #29745 from mrc0mmand/more-tests
Luca Boccassi [Fri, 27 Oct 2023 22:20:23 +0000 (23:20 +0100)] 
Merge pull request #29745 from mrc0mmand/more-tests

test: cover more sd-executor related stuff

10 months agotest: cover more sd-executor related stuff 29745/head
Frantisek Sumsal [Fri, 27 Oct 2023 06:42:24 +0000 (08:42 +0200)] 
test: cover more sd-executor related stuff

Let's probe directives that have slightly more "complex" handling in
the serialization/deserialization machinery.

10 months agocore: don't insert an extra space before each SocketBind{Allow,Deny}= item
Frantisek Sumsal [Fri, 27 Oct 2023 16:36:35 +0000 (18:36 +0200)] 
core: don't insert an extra space before each SocketBind{Allow,Deny}= item

The extra space was actually screwing up deserialization:

~# systemd-run --wait --pipe -p SocketBindAllow=any true
Running as unit: run-u167.service
Finished with result: exit-code
Main processes terminated with: code=exited/status=234
Service runtime: 1ms
CPU time consumed: 0
~# journalctl -b -p err
...
Oct 27 16:39:15 arch systemd-executor[5983]: Failed to deserialize: Invalid argument

Let's not do that by default and introduce a simple wrapper which
inserts the space after each item only when necessary.

10 months agotest-network: add dhcp rapid commit test 29693/head
Ronan Pigott [Wed, 25 Oct 2023 00:57:45 +0000 (17:57 -0700)] 
test-network: add dhcp rapid commit test

10 months agocore: actually set the CPU scheduling policy when deserializing it
Frantisek Sumsal [Fri, 27 Oct 2023 15:16:57 +0000 (17:16 +0200)] 
core: actually set the CPU scheduling policy when deserializing it

10 months agosleep: make sure we clear HibernateLocation on all error paths 29740/head
Mike Yuan [Thu, 26 Oct 2023 15:39:32 +0000 (23:39 +0800)] 
sleep: make sure we clear HibernateLocation on all error paths

Also, let's say "sleep operation" rather than "sleep state",
the latter of which creates ambiguity with /sys/power/state.

10 months agofstab-generator: drop unapplicable mount options for / from mount unit Options= 29734/head
Mike Yuan [Thu, 26 Oct 2023 17:29:02 +0000 (01:29 +0800)] 
fstab-generator: drop unapplicable mount options for / from mount unit Options=

Prompted by #29705

Note that x-systemd.wanted-by= and x-systemd.required-by= are not
dropped, since we ignore them because they are unnecessary rather
than unapplicable.

10 months agoCI: add a build job with TPM but without OpenSSL 29737/head
Luca Boccassi [Fri, 27 Oct 2023 10:47:43 +0000 (11:47 +0100)] 
CI: add a build job with TPM but without OpenSSL

We keep introducing build failures with this combination due to the
high amount of changes, add a combination that covers it

10 months agoresolved: fix build failure with gnutls
Luca Boccassi [Fri, 27 Oct 2023 12:52:21 +0000 (13:52 +0100)] 
resolved: fix build failure with gnutls

Follow-up for bd1ae178336a3d9143fe

10 months agotpm2: fix build failure without openssl
Anton Lundin [Fri, 20 Oct 2023 13:46:07 +0000 (15:46 +0200)] 
tpm2: fix build failure without openssl

10 months agonetworkd: Add DHCP vendor specific options to dbus API 29247/head
Nandakumar Raghavan [Wed, 20 Sep 2023 14:33:38 +0000 (14:33 +0000)] 
networkd: Add DHCP vendor specific options to dbus API

Add DHCP vendor specific options to expose in dbus API.
This will be added to the JSON output when we query
org.freedesktop.network1.Manager object.

10 months agosleep: minor modernization for lock_all_homes
Mike Yuan [Thu, 26 Oct 2023 15:50:50 +0000 (23:50 +0800)] 
sleep: minor modernization for lock_all_homes

10 months agosleep: rework write_state and write_mode
Mike Yuan [Thu, 26 Oct 2023 15:22:11 +0000 (23:22 +0800)] 
sleep: rework write_state and write_mode

10 months agosleep: update help text for suspend-then-hibernate
Mike Yuan [Thu, 26 Oct 2023 14:20:36 +0000 (22:20 +0800)] 
sleep: update help text for suspend-then-hibernate

10 months agosleep: log about errno
Mike Yuan [Thu, 26 Oct 2023 14:18:57 +0000 (22:18 +0800)] 
sleep: log about errno

10 months agosleep: drop unneeded includes
Mike Yuan [Thu, 26 Oct 2023 14:17:12 +0000 (22:17 +0800)] 
sleep: drop unneeded includes