]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 weeks agofuzz-ndisc-rs: also test packets with sd-radv
Yu Watanabe [Tue, 16 Apr 2024 06:17:50 +0000 (15:17 +0900)] 
fuzz-ndisc-rs: also test packets with sd-radv

Addresses https://github.com/systemd/systemd/pull/32267#discussion_r1566715787.

Suggested-by: Evgeny Vereshchagin <evvers@ya.ru>
4 weeks agotest: fix typo
Yu Watanabe [Wed, 17 Apr 2024 04:29:35 +0000 (13:29 +0900)] 
test: fix typo

Follow-up for 236634c82c56e280348f9452129f3cdfd1fb7a45.

4 weeks agoMerge pull request #32300 from mrc0mmand/assorted-tweaks
Yu Watanabe [Wed, 17 Apr 2024 02:52:30 +0000 (11:52 +0900)] 
Merge pull request #32300 from mrc0mmand/assorted-tweaks

test: split TEST-50-DISSECT into smaller parts

4 weeks agoMerge pull request #32303 from CodethinkLabs/push_down_disk_partitioning
Yu Watanabe [Wed, 17 Apr 2024 02:49:23 +0000 (11:49 +0900)] 
Merge pull request #32303 from CodethinkLabs/push_down_disk_partitioning

test-64-udev-storage: Push disk partitioning into the testsuite itself

4 weeks agocryptenroll: Use CTAP2.1 credProtect extension
Bryan Jacobs [Tue, 16 Apr 2024 03:12:22 +0000 (13:12 +1000)] 
cryptenroll: Use CTAP2.1 credProtect extension

When enrolling a new FIDO2 token with a client PIN, this tells the authenticator to require the PIN on all uses.

It also collects a PIN before attempting to create a credential.

Works around #31443 in most (not all) scenarios.

4 weeks agotest-64-udev-storage: partition disk inside testcase - testcase_multipath_basic_failover 32303/head
Sam Leonard [Tue, 16 Apr 2024 16:02:31 +0000 (17:02 +0100)] 
test-64-udev-storage: partition disk inside testcase - testcase_multipath_basic_failover

4 weeks agotest-64-udev-storage: partition disk inside testcase - testcase_virtio_scsi_identical...
Sam Leonard [Tue, 16 Apr 2024 15:17:59 +0000 (16:17 +0100)] 
test-64-udev-storage: partition disk inside testcase - testcase_virtio_scsi_identically_named_partitions

4 weeks agotest-64-udev-storage: partition disk inside testcase - testcase_long_sysfs_path
Sam Leonard [Tue, 16 Apr 2024 12:18:34 +0000 (13:18 +0100)] 
test-64-udev-storage: partition disk inside testcase - testcase_long_sysfs_path

4 weeks agoMerge pull request #32302 from DaanDeMeyer/mkosi
Daan De Meyer [Tue, 16 Apr 2024 14:59:41 +0000 (16:59 +0200)] 
Merge pull request #32302 from DaanDeMeyer/mkosi

Various mkosi improvements

4 weeks agoMerge pull request #32236 from poettering/journalctl-list-namespace-followup
Lennart Poettering [Tue, 16 Apr 2024 13:45:06 +0000 (15:45 +0200)] 
Merge pull request #32236 from poettering/journalctl-list-namespace-followup

journalctl: --list-namespaces followup

4 weeks agomkosi: Add support for building debug packages 32302/head
Daan De Meyer [Tue, 16 Apr 2024 09:24:56 +0000 (11:24 +0200)] 
mkosi: Add support for building debug packages

This allows building debug packages by setting WITH_DEBUG=1. This
slows down the build a lot so it's opt in. We don't yet install
these but can do so in a future commit.

4 weeks agomkosi: Add --noclean when running rpmbuild
Daan De Meyer [Tue, 16 Apr 2024 11:59:20 +0000 (13:59 +0200)] 
mkosi: Add --noclean when running rpmbuild

The entire build environment is ephemeral anyway so everything is
cleaned regardless. By specifying --noclean, we make debugging
easier as the rpm build root can be inspected when using --debug-shell.

4 weeks agomkosi: Install which in image
Daan De Meyer [Tue, 16 Apr 2024 11:58:07 +0000 (13:58 +0200)] 
mkosi: Install which in image

gdb-headless in Fedora is missing a dependency on which:
https://bugzilla.redhat.com/show_bug.cgi?id=2275274

This happens all the time so let's make sure which is always installed
in the image.

4 weeks agoUpdate debugging with vscode section
Daan De Meyer [Mon, 15 Apr 2024 20:28:11 +0000 (22:28 +0200)] 
Update debugging with vscode section

- We have ssh-generator now, so need for mkosi's Ssh= option anymore.
- By enabling RuntimeBuildSources= by default, we don't need the gdb
  config file in the image anymore, since the build and source
  directories will be mounted at the expected locations.

4 weeks agotest: rework systemd-sysext test 32300/head
Frantisek Sumsal [Mon, 15 Apr 2024 21:28:43 +0000 (23:28 +0200)] 
test: rework systemd-sysext test

Let's rework the test a bit, namely:
  - condense the code a bit
  - drop unnecessary braces around variables
  - drop unnecessary explanations around `touch` calls
  - drop/rename functions to make the code more self-explanatory
  - simplify cleanup a bit
  - create R/O bind mounts directly (supported since util-linux 2.27)

4 weeks agotest: simplify unit check
Frantisek Sumsal [Mon, 15 Apr 2024 18:52:59 +0000 (20:52 +0200)] 
test: simplify unit check

4 weeks agotest: split some overly long lines
Frantisek Sumsal [Mon, 15 Apr 2024 18:27:32 +0000 (20:27 +0200)] 
test: split some overly long lines

Let's get the line count back up again by splitting some overly long
lines in hopes to make the code slightly more readable.

4 weeks agotest: split TEST-50-DISSECT into smaller parts
Frantisek Sumsal [Mon, 15 Apr 2024 17:44:23 +0000 (19:44 +0200)] 
test: split TEST-50-DISSECT into smaller parts

As the current version has almost 2k lines.

4 weeks agojournalctl: tighten rules on parsing namespace journal dir suffixes 32236/head
Lennart Poettering [Thu, 11 Apr 2024 17:07:21 +0000 (19:07 +0200)] 
journalctl: tighten rules on parsing namespace journal dir suffixes

The dot must follow the machine ID immediately, let's check for that.
Also, I think it's generally better to parse the machine ID and then
comparing it, instead of comparing the string representation. That's
more in line how we usually do it, as we parse 128bit IDs generally
case-insensitively.

4 weeks agojournalctl: show human readable text if no namespace is found
Lennart Poettering [Thu, 11 Apr 2024 17:04:14 +0000 (19:04 +0200)] 
journalctl: show human readable text if no namespace is found

The common case will be that no namespaces are defined, hence by default
we'd just output "NAMESPACE" and exit, which is very confusing.

Generate a nice message instead, how many of our tools do it. Suppress
it on --quiet however.

4 weeks agojournalctl: add missing --help line for --list-namespaces
Lennart Poettering [Thu, 11 Apr 2024 17:03:54 +0000 (19:03 +0200)] 
journalctl: add missing --help line for --list-namespaces

Follow-up for: #32236 68f66a171398e27280a95e58ae7464219cccaaec

4 weeks agoshared/vpick: also align function params in header
Mike Yuan [Tue, 16 Apr 2024 04:27:23 +0000 (12:27 +0800)] 
shared/vpick: also align function params in header

Follow-up for 6d8690ecd34a6c9450e78e242e07b1a4479d6d27

4 weeks agoMerge pull request #32289 from bluca/counter
Luca Boccassi [Tue, 16 Apr 2024 08:44:25 +0000 (10:44 +0200)] 
Merge pull request #32289 from bluca/counter

soft-reboot counter follow-ups

4 weeks agoMerge pull request #32294 from yuwata/network-generator-creds
Yu Watanabe [Tue, 16 Apr 2024 07:42:59 +0000 (16:42 +0900)] 
Merge pull request #32294 from yuwata/network-generator-creds

network-generator: also load drop-ins for networkd.conf from credentials

4 weeks agoMerge pull request #32297 from yuwata/networkctl-cat-without-args
Yu Watanabe [Tue, 16 Apr 2024 07:42:46 +0000 (16:42 +0900)] 
Merge pull request #32297 from yuwata/networkctl-cat-without-args

networkctl: allow to call 'networkctl cat' without arguments

4 weeks agoNEWS: a few fixes, add systemd-cat --namespace=
Mike Yuan [Tue, 16 Apr 2024 06:22:54 +0000 (14:22 +0800)] 
NEWS: a few fixes, add systemd-cat --namespace=

4 weeks agonetwork: fix use of wrong flag
Yu Watanabe [Tue, 16 Apr 2024 01:46:09 +0000 (10:46 +0900)] 
network: fix use of wrong flag

Fixes a bug introduced by 86a66e9b95048b1a3a4e297ba2884afcedd1585e (v255).

4 weeks agotest: add test case for 'networkctl cat' without arguments 32297/head
Yu Watanabe [Tue, 16 Apr 2024 04:30:19 +0000 (13:30 +0900)] 
test: add test case for 'networkctl cat' without arguments

4 weeks agonetworkctl: allow to call 'networkctl cat' without arguments
Yu Watanabe [Tue, 16 Apr 2024 04:29:23 +0000 (13:29 +0900)] 
networkctl: allow to call 'networkctl cat' without arguments

Then, show networkd.conf and its drop-ins.

4 weeks agoman: add missing drop-in directory
Yu Watanabe [Tue, 16 Apr 2024 02:50:38 +0000 (11:50 +0900)] 
man: add missing drop-in directory

4 weeks agotest: add test case for network.conf.* credential 32294/head
Yu Watanabe [Tue, 16 Apr 2024 03:03:46 +0000 (12:03 +0900)] 
test: add test case for network.conf.* credential

4 weeks agonetwork-generator: also copy drop-ins for networkd.conf from credential
Yu Watanabe [Tue, 16 Apr 2024 02:57:23 +0000 (11:57 +0900)] 
network-generator: also copy drop-ins for networkd.conf from credential

Follow-up for 1a30285590c2f40f256d0628950ef9243b2c1938.

4 weeks agoNEWS: fix typo
Yu Watanabe [Tue, 16 Apr 2024 03:21:36 +0000 (12:21 +0900)] 
NEWS: fix typo

4 weeks agoMerge pull request #32103 from yuwata/udev-load-credentials
Yu Watanabe [Tue, 16 Apr 2024 02:45:22 +0000 (11:45 +0900)] 
Merge pull request #32103 from yuwata/udev-load-credentials

udev: load udev rules from credentials

4 weeks agoMerge pull request #32267 from yuwata/sd-ndisc-router-solicit
Yu Watanabe [Tue, 16 Apr 2024 02:18:07 +0000 (11:18 +0900)] 
Merge pull request #32267 from yuwata/sd-ndisc-router-solicit

sd-radv: introduce sd_ndisc_router_solicit and use it

4 weeks agotest: add test for systemd-udev-load-credentials.service 32103/head
Yu Watanabe [Thu, 4 Apr 2024 19:14:19 +0000 (04:14 +0900)] 
test: add test for systemd-udev-load-credentials.service

4 weeks agosd-radv: use ICMP6Packet and sd_ndisc_router_solicit 32267/head
Yu Watanabe [Fri, 23 Feb 2024 06:41:06 +0000 (15:41 +0900)] 
sd-radv: use ICMP6Packet and sd_ndisc_router_solicit

Then, sd-radv can reject invalid Router Solicit messages, e.g. that have
invalid options.

No effective functional change, just refactoring.

4 weeks agosd-radv: introduce sd_ndisc_router_solicit
Yu Watanabe [Fri, 23 Feb 2024 06:19:58 +0000 (15:19 +0900)] 
sd-radv: introduce sd_ndisc_router_solicit

It is not used in this stage, but will be used later in sd-radv.

4 weeks agounits: introduce systemd-udev-load-credentials.service
Yu Watanabe [Thu, 4 Apr 2024 19:04:31 +0000 (04:04 +0900)] 
units: introduce systemd-udev-load-credentials.service

4 weeks agoudevadm-control: add --load-credentials option
Yu Watanabe [Thu, 4 Apr 2024 18:55:25 +0000 (03:55 +0900)] 
udevadm-control: add --load-credentials option

When specified, credentials udev.conf.* and udev.rules.* are copied to
the corresponding directories.

4 weeks agoudevadm-control: split out send_control_commands()
Yu Watanabe [Thu, 4 Apr 2024 20:09:19 +0000 (05:09 +0900)] 
udevadm-control: split out send_control_commands()

No functional change, just refactoring and preparation for later
commits.

4 weeks agoudevadm-control: check if control command really specified
Yu Watanabe [Thu, 4 Apr 2024 17:51:34 +0000 (02:51 +0900)] 
udevadm-control: check if control command really specified

Previously, 'udevadm control' only checked the number of the arguments.
So, if only `--timeout` is specified, it spuriously did nothing and succeeded.
This makes the command request at least one control command.

4 weeks agocreds-util: move pick_up_credentials() from network-generator
Yu Watanabe [Fri, 5 Apr 2024 03:21:30 +0000 (12:21 +0900)] 
creds-util: move pick_up_credentials() from network-generator

The function is quite general, and can be used at other places.
Let's move to our shared library.

4 weeks agonetwork-generator: rename NETWORKD_UNIT_... -> NETWORK_UNIT_...
Yu Watanabe [Fri, 5 Apr 2024 11:05:06 +0000 (20:05 +0900)] 
network-generator: rename NETWORKD_UNIT_... -> NETWORK_UNIT_...

As .link files are used by systemd-udevd, rather than systemd-networkd.

Also, this makes it ends with '/', to follow our recent coding style.

4 weeks agoanalyze: show soft-reboot counter next to time deltas 32289/head
Luca Boccassi [Mon, 15 Apr 2024 23:23:59 +0000 (00:23 +0100)] 
analyze: show soft-reboot counter next to time deltas

4 weeks agoman: mention initial value of SoftRebootsCount
Luca Boccassi [Mon, 15 Apr 2024 23:07:57 +0000 (00:07 +0100)] 
man: mention initial value of SoftRebootsCount

Follow-up for 66f35161f6568386526bdfeab18e6b74b8b13608

4 weeks agoanalyze: reset more timestamps when analyzing soft reboots
Luca Boccassi [Mon, 15 Apr 2024 23:06:12 +0000 (00:06 +0100)] 
analyze: reset more timestamps when analyzing soft reboots

Follow-up for 7addfba9c45af97305a628e98acf684eedb7d510

4 weeks agocore: use usec_sub_unsigned() to subtract deltas
Luca Boccassi [Mon, 15 Apr 2024 23:02:34 +0000 (00:02 +0100)] 
core: use usec_sub_unsigned() to subtract deltas

Follow-up for 54f86b86ba8168faccbfc2ad16ceeccefde98a51

4 weeks agotest: initialize _cleanup_ variables
Luca Boccassi [Mon, 15 Apr 2024 21:23:45 +0000 (22:23 +0100)] 
test: initialize _cleanup_ variables

Otherwise static analysis will complain

4 weeks agoMerge pull request #32286 from YHNdnzj/vpick-null-result
Luca Boccassi [Mon, 15 Apr 2024 20:36:12 +0000 (22:36 +0200)] 
Merge pull request #32286 from YHNdnzj/vpick-null-result

shared/vpick: add missing condition on ret_result

4 weeks agoMerge pull request #32258 from yuwata/network-tc-fix-stack-overflow
Luca Boccassi [Mon, 15 Apr 2024 20:34:39 +0000 (22:34 +0200)] 
Merge pull request #32258 from yuwata/network-tc-fix-stack-overflow

network/tc: fix stack overflow

4 weeks agounits: order repart after systemd-tpm2-setup-early.service
Lennart Poettering [Mon, 15 Apr 2024 15:41:37 +0000 (17:41 +0200)] 
units: order repart after systemd-tpm2-setup-early.service

This mimics what we do for systemd-cryptsetup@.service (see
src/shared/generator.c), and makes sense since repart might lock up the
root volume against a TPM, which ideally has its SRK already set up by
then.

More importantly though, this ensures that we ordered correctly after
tpm2.target (which systemd-tpm2-setup-early.service has a dependency
on), for systems where the TPM drivers are not compiled into the kernel.

See: https://lists.freedesktop.org/archives/systemd-devel/2024-April/050201.html

4 weeks agoshared/vpick: add missing condition on ret_result 32286/head
Mike Yuan [Mon, 15 Apr 2024 17:29:27 +0000 (01:29 +0800)] 
shared/vpick: add missing condition on ret_result

Fixes #32285

4 weeks agoshared/vpick: drop unneeded strempty()
Mike Yuan [Mon, 15 Apr 2024 17:37:34 +0000 (01:37 +0800)] 
shared/vpick: drop unneeded strempty()

prefix_roota() handles NULL root param gracefully.

4 weeks agoshared/vpick: align function args correctly, add missing assertion
Mike Yuan [Mon, 15 Apr 2024 17:28:20 +0000 (01:28 +0800)] 
shared/vpick: align function args correctly, add missing assertion

4 weeks agoman: slightly reword LogFilterPatterns= description
Frantisek Sumsal [Mon, 15 Apr 2024 15:16:18 +0000 (17:16 +0200)] 
man: slightly reword LogFilterPatterns= description

As there was something missing in the existing sentence.

4 weeks agodissect: refuse to use diskseq if ID_IGNORE_DISKSEQ=1 is specified
Yu Watanabe [Fri, 5 Apr 2024 04:45:52 +0000 (13:45 +0900)] 
dissect: refuse to use diskseq if ID_IGNORE_DISKSEQ=1 is specified

Follow-up for 1a81ddef00a0a25f6bcdd1e6633430e8b240b87f.

4 weeks agocreds: update --help text regarding tpm2-absent → null rename
Lennart Poettering [Mon, 15 Apr 2024 10:05:59 +0000 (12:05 +0200)] 
creds: update --help text regarding tpm2-absent → null rename

This was forgotten when "tpm2-absent" was renamed to "null".

Follow-up-for: 6d78dc282721b3b40e8474222ff8c6e0aebb6d10

4 weeks agoNEWS: typo fixes
Jörg Behrmann [Mon, 15 Apr 2024 12:04:48 +0000 (14:04 +0200)] 
NEWS: typo fixes

4 weeks agoNEWS: fix typo, rephrase para for systemd-hibernate-clear.service a bit
Mike Yuan [Mon, 15 Apr 2024 11:33:09 +0000 (19:33 +0800)] 
NEWS: fix typo, rephrase para for systemd-hibernate-clear.service a bit

4 weeks agobuild(deps): bump pkg/fedora from `3f8c38e` to `a379236`
dependabot[bot] [Mon, 15 Apr 2024 10:08:51 +0000 (10:08 +0000)] 
build(deps): bump pkg/fedora from `3f8c38e` to `a379236`

Bumps pkg/fedora from `3f8c38e` to `a379236`.

---
updated-dependencies:
- dependency-name: pkg/fedora
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
4 weeks agoupdate NEWS
Lennart Poettering [Thu, 11 Apr 2024 17:03:28 +0000 (19:03 +0200)] 
update NEWS

4 weeks agoupdate TODO
Lennart Poettering [Mon, 15 Apr 2024 10:05:41 +0000 (12:05 +0200)] 
update TODO

4 weeks agoimprove zsh completion (#32098)
Eisuke Kawashima [Mon, 15 Apr 2024 08:58:48 +0000 (17:58 +0900)] 
improve zsh completion (#32098)

* fix error
* remove options that are no longer supported
* add missing options
* stop completion if an option `--help` or `--version` is supplied

[[[
zjs: a note for the reader:

zshcompsys(1) in the section about optspecs in _arguments says:

> Each of the forms above may be preceded by a list in parentheses of option names  and  argument  num‐
> bers.  If the given option is on the command line, the options and arguments indicated in parentheses
> will not be offered.  For example, ‘(-two -three 1)-one:...' completes the option ‘-one'; if this ap‐
> pears  on  the  command line, the options -two and -three and the first ordinary argument will not be
> completed after it.  ‘(-foo):...' specifies an ordinary argument completion; -foo will  not  be  com‐
> pleted if that argument is already present.
>
> Other  items  may  appear in the list of excluded options to indicate various other items that should
> not be applied when the current specification is matched: a single star (\*) for  the  rest  arguments
> (i.e. a specification of the form ‘\*:...'); a colon (:) for all normal (non-option-) arguments; and a
> hyphen (-) for all options.  For example, if ‘(\*)' appears before an option and the option appears on
> the  command  line,  the  list  of remaining arguments (those shown in the above table beginning with
> ‘\*:') will not be completed.

The intended effect of the change is to remove irrelevant completion matches from the completion.

tl;dr: (- : ) prevents further completion
]]]

4 weeks agodocs: don't suffix page permalink with a slash
Frantisek Sumsal [Wed, 10 Apr 2024 15:21:42 +0000 (17:21 +0200)] 
docs: don't suffix page permalink with a slash

As it breaks relative links to other pages. For example, the
BOOT_LOADER_INTERFACE page has a relative link to
AUTOMATIC_BOOT_ASSESSMENT. With a slash in the page's permalink, that
link leads to:

http://127.0.0.1:4000/BOOT_LOADER_INTERFACE/AUTOMATIC_BOOT_ASSESSMENT

which is incorrect. Dropping the trailing slash makes the link link to
the correct place:

http://127.0.0.1:4000/AUTOMATIC_BOOT_ASSESSMENT

Resolves: #32088

4 weeks agoman: fix incorrect XML in man page
Sam Leonard [Fri, 12 Apr 2024 09:12:15 +0000 (10:12 +0100)] 
man: fix incorrect XML in man page

4 weeks agomkosi: Update to latest
Daan De Meyer [Sun, 14 Apr 2024 17:53:09 +0000 (19:53 +0200)] 
mkosi: Update to latest

4 weeks agoASSERT_STREQ for simple cases
Ivan Kruglov [Wed, 10 Apr 2024 11:19:39 +0000 (13:19 +0200)] 
ASSERT_STREQ for simple cases

4 weeks agoMerge pull request #32266 from yuwata/libsystemd-network-trivial-cleanups
Yu Watanabe [Mon, 15 Apr 2024 05:43:12 +0000 (14:43 +0900)] 
Merge pull request #32266 from yuwata/libsystemd-network-trivial-cleanups

libsystemd-network: trivial cleanups

4 weeks agondisc-option: add missing case
Yu Watanabe [Sun, 14 Apr 2024 06:14:46 +0000 (15:14 +0900)] 
ndisc-option: add missing case

Follow-up for 9f3587ae44ec9b437bd124eb9abbd593af45a796.

4 weeks agoMerge pull request #32263 from YHNdnzj/cg-read-pid
Yu Watanabe [Mon, 15 Apr 2024 05:39:28 +0000 (14:39 +0900)] 
Merge pull request #32263 from YHNdnzj/cg-read-pid

core/execute: also check cg_is_threaded for clone3()

4 weeks agogithub: add systemd-vmspawn to the issue templates
Kristian Klausen [Sun, 14 Apr 2024 13:17:32 +0000 (15:17 +0200)] 
github: add systemd-vmspawn to the issue templates

4 weeks agoMerge pull request #32271 from YHNdnzj/arch-man
Yu Watanabe [Mon, 15 Apr 2024 05:35:04 +0000 (14:35 +0900)] 
Merge pull request #32271 from YHNdnzj/arch-man

Fixes for links to man projects

4 weeks agovmspawn: Fix incorrect/broken links in the man page
Kristian Klausen [Sun, 14 Apr 2024 14:41:08 +0000 (16:41 +0200)] 
vmspawn: Fix incorrect/broken links in the man page

4 weeks agosd-ndisc: make ndisc_send() and icmp6_send() take struct in6_addr 32266/head
Yu Watanabe [Sun, 14 Apr 2024 05:46:48 +0000 (14:46 +0900)] 
sd-ndisc: make ndisc_send() and icmp6_send() take struct in6_addr

No functional change, just refactoring.

4 weeks agolibsystemd-network: make constant addresses type-safe
Yu Watanabe [Sun, 14 Apr 2024 05:42:58 +0000 (14:42 +0900)] 
libsystemd-network: make constant addresses type-safe

No functional change, just refactoring.

4 weeks agodhcp6-network: constify arguments
Yu Watanabe [Sun, 14 Apr 2024 05:41:42 +0000 (14:41 +0900)] 
dhcp6-network: constify arguments

No functional change, just refactoring.

4 weeks agoMerge pull request #32272 from DaanDeMeyer/volatile
Yu Watanabe [Sun, 14 Apr 2024 19:34:56 +0000 (04:34 +0900)] 
Merge pull request #32272 from DaanDeMeyer/volatile

mkosi: various improvements

4 weeks agomkosi: Remove outdated comment 32272/head
Daan De Meyer [Thu, 11 Apr 2024 17:44:10 +0000 (19:44 +0200)] 
mkosi: Remove outdated comment

4 weeks agomkosi: Don't log debug logs to console
Daan De Meyer [Thu, 11 Apr 2024 17:40:16 +0000 (19:40 +0200)] 
mkosi: Don't log debug logs to console

We have various tools that log directly to the console, as well as
pid1 which logs directly to the console when running in a container.
Let's make sure that we don't log debug messages to the console by
default, but keep the behavior when running in CI.

4 weeks agomkosi: Use new volatile package settings
Daan De Meyer [Sun, 14 Apr 2024 17:15:43 +0000 (19:15 +0200)] 
mkosi: Use new volatile package settings

mkosi just learned to do natively what we currently do with environment
variables and a postinst script, so let's update to the latest version
and start using the new settings instead.

4 weeks agomkosi: Update to latest
Daan De Meyer [Sun, 14 Apr 2024 17:53:09 +0000 (19:53 +0200)] 
mkosi: Update to latest

4 weeks agoman/sd-journal: correct project name for man7 32271/head
Mike Yuan [Sun, 14 Apr 2024 15:46:31 +0000 (23:46 +0800)] 
man/sd-journal: correct project name for man7

Follow-up for 5aa818039230a08e0af1c6351de4794de8ebb778

4 weeks agoman: switch wireguard man project to man7
Mike Yuan [Sun, 14 Apr 2024 15:41:34 +0000 (23:41 +0800)] 
man: switch wireguard man project to man7

4 weeks agoman/custom-html: update link to Arch manual
Mike Yuan [Sun, 14 Apr 2024 15:38:38 +0000 (23:38 +0800)] 
man/custom-html: update link to Arch manual

4 weeks agocore/execute: also check cg_is_threaded for clone3() 32263/head
Mike Yuan [Sat, 13 Apr 2024 14:42:22 +0000 (22:42 +0800)] 
core/execute: also check cg_is_threaded for clone3()

Prompted by #32259

We already have this check in exec_invoke(), i.e. child.
But if CLONE_INTO_CGROUP is used, the failure would
occur on parent's side, so do the check there too.

4 weeks agocore/dbus-manager: rephrase the comment for method_get_unit_processes a bit
Mike Yuan [Sat, 13 Apr 2024 12:30:16 +0000 (20:30 +0800)] 
core/dbus-manager: rephrase the comment for method_get_unit_processes a bit

4 weeks agocore/dbus-manager: add missing assertion
Mike Yuan [Sun, 14 Apr 2024 15:21:13 +0000 (23:21 +0800)] 
core/dbus-manager: add missing assertion

4 weeks agocgroup-setup: modernize cg_migrate
Mike Yuan [Sat, 13 Apr 2024 11:56:06 +0000 (19:56 +0800)] 
cgroup-setup: modernize cg_migrate

4 weeks agocore/unit: use IN_SET at one more place
Mike Yuan [Sun, 14 Apr 2024 15:20:31 +0000 (23:20 +0800)] 
core/unit: use IN_SET at one more place

4 weeks agoMerge pull request #32194 from henryli001/lihl/add-defaultUseDomains-config
Yu Watanabe [Sun, 14 Apr 2024 04:40:06 +0000 (13:40 +0900)] 
Merge pull request #32194 from henryli001/lihl/add-defaultUseDomains-config

network: add mechanism to configure default UseDomains= setting

4 weeks agonetwork: add mechanism to configure default UseDomains= setting, update man page... 32194/head
Henry Li [Wed, 10 Apr 2024 00:40:42 +0000 (17:40 -0700)] 
network: add mechanism to configure default UseDomains= setting, update man page and add test

4 weeks agoman: remove PrivateMounts= from list of other settings in its own description
Ole Peder Brandtzæg [Sat, 13 Apr 2024 12:33:28 +0000 (14:33 +0200)] 
man: remove PrivateMounts= from list of other settings in its own description

The diff looks bigger, but that's only because it seemed fitting to
reformat the paragraph now that the list is shorter.

4 weeks agotest-network: add test for stack overflow in qdisc_drop() and tclass_drop() 32258/head
Yu Watanabe [Sat, 13 Apr 2024 00:02:01 +0000 (09:02 +0900)] 
test-network: add test for stack overflow in qdisc_drop() and tclass_drop()

4 weeks agonetwork/tc: fix stack overflow when dropping tclass or qdisc
Yu Watanabe [Fri, 12 Apr 2024 23:46:44 +0000 (08:46 +0900)] 
network/tc: fix stack overflow when dropping tclass or qdisc

Fixes a bug introduced by be8e93390003e45acbb318c6e1e48fbc3c772f78 (v255).

Fixes #32247.
Fixes #32254.

4 weeks agoMerge pull request #32257 from yuwata/tree-wide-trivial-style-fixes
Yu Watanabe [Fri, 12 Apr 2024 23:02:18 +0000 (08:02 +0900)] 
Merge pull request #32257 from yuwata/tree-wide-trivial-style-fixes

tree-wide: trivial style and typo fixes

4 weeks agovmspawn: check firmware target architecture
Sam Leonard [Thu, 11 Apr 2024 11:26:10 +0000 (12:26 +0100)] 
vmspawn: check firmware target architecture

Fixes issue #32026 by only finding firmwares which explicitly support
the native architecture.

4 weeks agotree-wide: insert missing space after comma 32257/head
Yu Watanabe [Fri, 12 Apr 2024 20:44:04 +0000 (05:44 +0900)] 
tree-wide: insert missing space after comma

4 weeks agojournal: drop thousands separator in comment
Yu Watanabe [Fri, 12 Apr 2024 20:43:37 +0000 (05:43 +0900)] 
journal: drop thousands separator in comment

4 weeks agohome: wrap long line
Yu Watanabe [Fri, 12 Apr 2024 20:42:21 +0000 (05:42 +0900)] 
home: wrap long line