]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
3 years agomeson: Sort lines in tmpfiles.d/meson.build 23205/head
Daan De Meyer [Wed, 27 Apr 2022 11:42:59 +0000 (12:42 +0100)] 
meson: Sort lines in tmpfiles.d/meson.build

3 years agotmpfiles: Split networkd entries into a separate file
Daan De Meyer [Wed, 27 Apr 2022 09:25:22 +0000 (10:25 +0100)] 
tmpfiles: Split networkd entries into a separate file

Many distributions ship systemd-networkd as a separate file so we
need to be able to ship the tmpfiles networkd entries as part of
that separate networkd package. Let's split the networkd entries
into a separate file to make that possible.

3 years agoudev: check stats of .link files and their drop-in files
Yu Watanabe [Fri, 22 Apr 2022 03:33:15 +0000 (12:33 +0900)] 
udev: check stats of .link files and their drop-in files

Fixes #23128.

3 years agoMerge pull request #23135 from DaanDeMeyer/journal-move
Lennart Poettering [Tue, 3 May 2022 08:01:39 +0000 (10:01 +0200)] 
Merge pull request #23135 from DaanDeMeyer/journal-move

journal: Only move to object if requested

3 years agobuild(deps): bump github/super-linter from 4.9.1 to 4.9.2
dependabot[bot] [Sun, 1 May 2022 09:04:18 +0000 (09:04 +0000)] 
build(deps): bump github/super-linter from 4.9.1 to 4.9.2

Bumps [github/super-linter](https://github.com/github/super-linter) from 4.9.1 to 4.9.2.
- [Release notes](https://github.com/github/super-linter/releases)
- [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md)
- [Commits](https://github.com/github/super-linter/compare/3792fe5373cf2f5b22d590fcbbc4533d735c573e...ae4e373c56efad95924d9cc6b89624fdb2333007)

---
updated-dependencies:
- dependency-name: github/super-linter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump actions/checkout from 3.0.0 to 3.0.2
dependabot[bot] [Sun, 1 May 2022 09:04:12 +0000 (09:04 +0000)] 
build(deps): bump actions/checkout from 3.0.0 to 3.0.2

Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.0 to 3.0.2.
- [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/a12a3943b4bdde767164f792f33f40b04645d846...2541b1294d2704b0964813337f33b291d3f8596b)

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

Signed-off-by: dependabot[bot] <support@github.com>
3 years agonspawn: Set LANG to C.UTF-8
Daan De Meyer [Tue, 26 Apr 2022 09:05:08 +0000 (10:05 +0100)] 
nspawn: Set LANG to C.UTF-8

Let's default to a UTF-8 locale when running commands using nspawn.

3 years agoshared/install: use correct cleanup function
Yu Watanabe [Mon, 2 May 2022 16:09:21 +0000 (01:09 +0900)] 
shared/install: use correct cleanup function

Fixes #23250.

3 years agoman: document that systemd-fstab-generator actually cares about roothash=/usrhash...
Lennart Poettering [Mon, 2 May 2022 14:42:50 +0000 (16:42 +0200)] 
man: document that systemd-fstab-generator actually cares about roothash=/usrhash= on the kernel cmdline

It doesn't really care about the hash value passed (which is processed
by systemd-veritysetup-generator), but it does care about the fact that
it is set (and mounts the DM nodes /dev/mapper/usr + /dev/mapper/root in
that case).

3 years agoboot: Mark loader.conf settings with (config)
Jan Janssen [Mon, 2 May 2022 12:16:07 +0000 (14:16 +0200)] 
boot: Mark loader.conf settings with (config)

3 years agofix typo
Yu Watanabe [Mon, 2 May 2022 16:16:32 +0000 (01:16 +0900)] 
fix typo

3 years agocreds: trivial coding style fixes
Lennart Poettering [Mon, 2 May 2022 16:04:53 +0000 (18:04 +0200)] 
creds: trivial coding style fixes

As per:

https://github.com/systemd/systemd/pull/23170#pullrequestreview-959233817

3 years agodocs: typo fix
Lennart Poettering [Mon, 2 May 2022 16:04:35 +0000 (18:04 +0200)] 
docs: typo fix

As per:

https://github.com/systemd/systemd/pull/23170#pullrequestreview-959233817

3 years agoman: correct a major missed opportunity
Lennart Poettering [Mon, 2 May 2022 14:49:17 +0000 (16:49 +0200)] 
man: correct a major missed opportunity

I don't know why this didn't occur to me earlier, but of course, it
*has* to be this data.

(This replaces some German prose about Berlin, that i guess only very
few people will get. With the new blob I think we have a much broader
chance of delivering smiles.)

3 years agodocs: Clarify where options are read from
Daan De Meyer [Tue, 19 Apr 2022 19:57:53 +0000 (21:57 +0200)] 
docs: Clarify where options are read from

Let's merge the footnote with the overall explanation of where systemd
parses its options from and reword the section a bit to hopefully make
things a bit more clear.

3 years agoupdate TODO
Lennart Poettering [Mon, 2 May 2022 14:41:52 +0000 (16:41 +0200)] 
update TODO

3 years agoMerge pull request #23170 from poettering/creds-copy
Lennart Poettering [Mon, 2 May 2022 14:32:21 +0000 (16:32 +0200)] 
Merge pull request #23170 from poettering/creds-copy

import system credentials from sd-stub + qemu fw_cfg + kernel cmdline explicitly in PID 1

3 years agoFix orientation detection for HP Pavilion X2 10-k010nr
Alice S [Sun, 1 May 2022 21:49:18 +0000 (14:49 -0700)] 
Fix orientation detection for HP Pavilion X2 10-k010nr

3 years agoFix orientation detection for Asus Transformer T100TAF, copied T100TA rule
techtino [Sat, 30 Apr 2022 13:06:55 +0000 (14:06 +0100)] 
Fix orientation detection for Asus Transformer T100TAF, copied T100TA rule

3 years agoanalyze security: print DeviceAllow list
Luca Boccassi [Sat, 30 Apr 2022 22:29:10 +0000 (23:29 +0100)] 
analyze security: print DeviceAllow list

Many sandboxing options add implicit DeviceAllow rules, which might be confusing
for users running systemd-analyze security and not expecting it.
Print the list.

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

3 years agoanalyze: fix crash with online security check
Luca Boccassi [Fri, 29 Apr 2022 22:50:11 +0000 (23:50 +0100)] 
analyze: fix crash with online security check

1449b0f8a96b27 fixed seccomp arch check for the offline case,
but broke it for the normal case, as when coming from D-Bus the
list of seccomp architectures is already converted to string.

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

3 years agostat-util: ignore hidden_or_backup_file when checking if dir is empty
Luca Boccassi [Sat, 30 Apr 2022 16:47:56 +0000 (17:47 +0100)] 
stat-util: ignore hidden_or_backup_file when checking if dir is empty

Commit https://github.com/systemd/systemd/commit/a068aceafbf
changed dir_is_emtpy_at to use FOREACH_DIRENT_IN_BUFFER instead of
FOREACH_DIRENT, but used dot_or_dotdot which just checks if the name
is literally '.' or '..' which is not enough, previous behaviour was
to ignore all hidden files, so restore that and add a test case.

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

3 years agoMerge pull request #23230 from yuwata/core-device-cleanups
Yu Watanabe [Sat, 30 Apr 2022 14:10:22 +0000 (23:10 +0900)] 
Merge pull request #23230 from yuwata/core-device-cleanups

core/device: several cleanups

3 years agocore/device: use DEVICE_FOUND_MASK 23230/head
Yu Watanabe [Thu, 28 Apr 2022 13:49:58 +0000 (22:49 +0900)] 
core/device: use DEVICE_FOUND_MASK

3 years agocore/device: minor coding style updates
Yu Watanabe [Thu, 28 Apr 2022 13:35:56 +0000 (22:35 +0900)] 
core/device: minor coding style updates

3 years agocore/device: drop unused unit name generated from path
Yu Watanabe [Thu, 28 Apr 2022 13:33:29 +0000 (22:33 +0900)] 
core/device: drop unused unit name generated from path

3 years agocore/device: device_found_node() does not accept DEVICE_FOUND_UDEV
Yu Watanabe [Fri, 29 Apr 2022 13:27:53 +0000 (22:27 +0900)] 
core/device: device_found_node() does not accept DEVICE_FOUND_UDEV

3 years agocore/device: use sd_device_new_from_devname() to verify the device node
Yu Watanabe [Thu, 28 Apr 2022 13:22:12 +0000 (22:22 +0900)] 
core/device: use sd_device_new_from_devname() to verify the device node

3 years agocore/device: use udev_available()
Yu Watanabe [Thu, 28 Apr 2022 13:01:12 +0000 (22:01 +0900)] 
core/device: use udev_available()

3 years agocore/device: use device_get_property_bool()
Yu Watanabe [Thu, 28 Apr 2022 12:43:19 +0000 (21:43 +0900)] 
core/device: use device_get_property_bool()

3 years agosd-device: introduce device_get_property_bool()
Yu Watanabe [Thu, 28 Apr 2022 12:37:59 +0000 (21:37 +0900)] 
sd-device: introduce device_get_property_bool()

3 years agocore/device: use _cleanup_ attribute at one more place
Yu Watanabe [Thu, 28 Apr 2022 12:05:19 +0000 (21:05 +0900)] 
core/device: use _cleanup_ attribute at one more place

3 years agocore/device: unit_name_from_path() does not return -ENAMETOOLONG anymore
Yu Watanabe [Thu, 28 Apr 2022 11:57:45 +0000 (20:57 +0900)] 
core/device: unit_name_from_path() does not return -ENAMETOOLONG anymore

Follow-up for 1d0727e76fd5e9a07cc9991ec9a10ea1d78a99c7.

3 years agocore/device: use strv_consume()
Yu Watanabe [Thu, 28 Apr 2022 11:41:34 +0000 (20:41 +0900)] 
core/device: use strv_consume()

3 years agomeson: also check c_args to maybe add -Wno-maybe-uninitialized
Zbigniew Jędrzejewski-Szmek [Fri, 29 Apr 2022 12:35:20 +0000 (14:35 +0200)] 
meson: also check c_args to maybe add -Wno-maybe-uninitialized

People (and build systems) sometimes set flags through -Dc_args=… or $CFLAGS.
Let's catch this common case too. meson will set c_args from $CFLAGS, so we
only need to check the former.

3 years agoMerge pull request #23226 from keszybz/libsystemd-length-assert
Yu Watanabe [Fri, 29 Apr 2022 18:03:18 +0000 (03:03 +0900)] 
Merge pull request #23226 from keszybz/libsystemd-length-assert

Add assert about DHCP packet length in libsystemd-network

3 years agoMerge pull request #23203 from yuwata/login-runtime
Lennart Poettering [Fri, 29 Apr 2022 15:10:34 +0000 (17:10 +0200)] 
Merge pull request #23203 from yuwata/login-runtime

login: make RuntimeDirectoryInodesMax= support K, G, M suffixes

3 years agolibsystemd-network: add assert about packet length 23226/head
Zbigniew Jędrzejewski-Szmek [Fri, 29 Apr 2022 13:55:59 +0000 (15:55 +0200)] 
libsystemd-network: add assert about packet length

We reject too-short packets in client_receive_message_raw(), so
the packets that dhcp_packet_verify_headers() gets are of sufficient size.
But let's add an assert to clarify this for the reader.

Closes #23223.

3 years agolibsystemd-network: do not split messages in half
Zbigniew Jędrzejewski-Szmek [Fri, 29 Apr 2022 13:49:25 +0000 (15:49 +0200)] 
libsystemd-network: do not split messages in half

This makes grepping for the messages unnecessarily painful.

3 years agocore: drop non-default value for DefaultLimitMEMLOCK= 23203/head
Yu Watanabe [Fri, 29 Apr 2022 12:15:09 +0000 (21:15 +0900)] 
core: drop non-default value for DefaultLimitMEMLOCK=

3 years agologin: drop non-default value for RuntimeDirectoryInodesMax=
Yu Watanabe [Thu, 28 Apr 2022 10:53:12 +0000 (19:53 +0900)] 
login: drop non-default value for RuntimeDirectoryInodesMax=

3 years agologin: make RuntimeDirectoryInodesMax= support K, G, M suffixes
Yu Watanabe [Wed, 27 Apr 2022 08:44:46 +0000 (17:44 +0900)] 
login: make RuntimeDirectoryInodesMax= support K, G, M suffixes

Fixes #23017.

3 years agoci: actually turn on fatal-meson-warnings in the "build" workflow
Evgeny Vereshchagin [Thu, 28 Apr 2022 21:58:30 +0000 (21:58 +0000)] 
ci: actually turn on fatal-meson-warnings in the "build" workflow

It's a follow-up to https://github.com/systemd/systemd/pull/23211

3 years agoMerge pull request #23217 from keszybz/oomd-docs
Lennart Poettering [Thu, 28 Apr 2022 20:30:50 +0000 (22:30 +0200)] 
Merge pull request #23217 from keszybz/oomd-docs

More cross-references in bootctl/systemctl man pages

3 years agoci: bring fatal-meson-warnings back
Evgeny Vereshchagin [Thu, 28 Apr 2022 01:26:04 +0000 (01:26 +0000)] 
ci: bring fatal-meson-warnings back

It's a follow-up to https://github.com/systemd/systemd/pull/23204

v2: replaced xargs with exec as suggested by Jan Janssen

3 years agoMerge pull request #23216 from poettering/hwdb-v251-rc2
Zbigniew Jędrzejewski-Szmek [Thu, 28 Apr 2022 17:46:08 +0000 (19:46 +0200)] 
Merge pull request #23216 from poettering/hwdb-v251-rc2

hwdb: updates for v251-rc2

3 years agoupdate TODO 23170/head
Lennart Poettering [Fri, 8 Apr 2022 16:43:50 +0000 (18:43 +0200)] 
update TODO

3 years agotest: test new credential features
Lennart Poettering [Fri, 22 Apr 2022 19:44:26 +0000 (21:44 +0200)] 
test: test new credential features

3 years agodoc: add new markdown docs for credentials
Lennart Poettering [Fri, 22 Apr 2022 13:43:11 +0000 (15:43 +0200)] 
doc: add new markdown docs for credentials

3 years agoman: document the new credentials features
Lennart Poettering [Fri, 22 Apr 2022 13:41:53 +0000 (15:41 +0200)] 
man: document the new credentials features

3 years agocreds-tool: properly search for both encrypted + unencrypted creds
Lennart Poettering [Thu, 21 Apr 2022 14:20:37 +0000 (16:20 +0200)] 
creds-tool: properly search for both encrypted + unencrypted creds

Also, properly hook up things with the new fixed paths for system
credentials.

3 years agopid1: search for creds in LoadCredential=/LoadCredentialEncrypted=
Lennart Poettering [Thu, 21 Apr 2022 13:32:21 +0000 (15:32 +0200)] 
pid1: search for creds in LoadCredential=/LoadCredentialEncrypted=

This adds support for searching for credentials more comprehensively.

Specifically, unless an absolute source path is specified we'll now
search for the credentials in the system credentials first, and then in
/etc/credstore/, /run/credstore/, and /usr/lib/credstore, making these
dirs hence the recommended place for credentials to leave in the system.

For LoadCredentialEncrypted= we'll also look into
/etc/credstore.encrypted/, /run/credstore.encrypted/, …. These dirs are
hence suitable for credentials whose provenience isn't trusted (e.g.
UEFI creds from systemd-stub), and thus require to be authenticated
before use.

3 years agopid1: import creds from sd-stub + qemu + kernel cmdline
Lennart Poettering [Thu, 7 Apr 2022 22:18:55 +0000 (00:18 +0200)] 
pid1: import creds from sd-stub + qemu + kernel cmdline

Let's beef up our system credential game a bit, and explicitly import
creds from sd-stub, from qemu fw_cfg and the kernel cmdline and expose
them in the same way as those passed in from nspawn.

Specifically, this will imprt such credentials to
/run/credentials/@system (if the source can be trusted, as in the
qemu/kernel cmdline case) and /run/credentials/@encrypted (otherwise,
such as sd-stub provided ones).

Once imported we'll set the $CREDENTIALS_PATH env var for PID 1, like it
would be done by a container manager for the payload. (Conversely, we'll
also creat a symlink from /run/credentials/@system to whatever is set in
$CREDENTIALS_PATH in case we are invoked by a container manager, thus
providing a fixed path where system credentials are found).

3 years agopid1: load 'qemu_fw_cfg' kmod super early, so that we can import credentials from it
Lennart Poettering [Thu, 14 Apr 2022 15:52:55 +0000 (17:52 +0200)] 
pid1: load 'qemu_fw_cfg' kmod super early, so that we can import credentials from it

In one of the next commits we want to add support for importing system
credentials from qemu_fw_cfg, very early during boot. (So that we can
use the credentials therein for generators and even earlier). But that
means udev won#t load these modules for us, we have to load them
manually first.

3 years agoMerge pull request #23200 from keszybz/oomd-docs
Zbigniew Jędrzejewski-Szmek [Thu, 28 Apr 2022 15:46:03 +0000 (17:46 +0200)] 
Merge pull request #23200 from keszybz/oomd-docs

Extend the documentation for oomd a bit

3 years agoTODO: more entries for bootctl 23217/head
Zbigniew Jędrzejewski-Szmek [Thu, 28 Apr 2022 15:45:44 +0000 (17:45 +0200)] 
TODO: more entries for bootctl

https://bugzilla.redhat.com/show_bug.cgi?id=2079784#c9

3 years agohwdb: run "ninja update-hwdb-autosuspend" for v251-rc2 23216/head
Lennart Poettering [Thu, 28 Apr 2022 15:43:27 +0000 (17:43 +0200)] 
hwdb: run "ninja update-hwdb-autosuspend" for v251-rc2

3 years agohwbd: run "update-hwdb" for v251-rc2
Lennart Poettering [Thu, 28 Apr 2022 15:37:34 +0000 (17:37 +0200)] 
hwbd: run "update-hwdb" for v251-rc2

3 years agohwdb: make sure "ninja update-hwdb" works on f35
Lennart Poettering [Thu, 28 Apr 2022 15:41:48 +0000 (17:41 +0200)] 
hwdb: make sure "ninja update-hwdb" works on f35

let's restore compatibility with pyparsing from fedora 35, i.e.:

python3-pyparsing-2.4.7-9.fc35.noarch

3 years agoupdate TODO
Lennart Poettering [Tue, 26 Apr 2022 08:53:47 +0000 (10:53 +0200)] 
update TODO

3 years agoNEWS: updates for 251-rc2
Lennart Poettering [Thu, 28 Apr 2022 15:16:03 +0000 (17:16 +0200)] 
NEWS: updates for 251-rc2

3 years agoman: cross-advertize bootctl and systemctl boot loader support
Zbigniew Jędrzejewski-Szmek [Thu, 28 Apr 2022 14:44:40 +0000 (16:44 +0200)] 
man: cross-advertize bootctl and systemctl boot loader support

3 years agooomd: "descendent" → "descendant" 23200/head
Zbigniew Jędrzejewski-Szmek [Tue, 26 Apr 2022 20:08:02 +0000 (22:08 +0200)] 
oomd: "descendent" → "descendant"

The latter is the common spelling apparently.

3 years agoman: direct users to systemd-oomd if they read about OOMPolicy
Zbigniew Jędrzejewski-Szmek [Tue, 26 Apr 2022 20:05:41 +0000 (22:05 +0200)] 
man: direct users to systemd-oomd if they read about OOMPolicy

OOMPolicy remains valid, but let's push users for the userspace solution.

3 years agoman: beef up the description of systemd-oomd.service
Zbigniew Jędrzejewski-Szmek [Tue, 26 Apr 2022 20:04:31 +0000 (22:04 +0200)] 
man: beef up the description of systemd-oomd.service

The gist of the description is moved from systemd.resource-control
to systemd-oomd man page. Cross-references to OOMPolicy, memory.oom.group,
oomctl, ManagedOOMSwap and ManagedOOMMemoryPressure are added in all
places.

The descriptions are also more down-to-earth: instead of talking
about "taking action" let's just say "kill". We *might* add configuration
for different actions in the future, but we're not there yet, so let's
just describe what we do now.

3 years agoMerge pull request #23204 from bluca/install_tag
Zbigniew Jędrzejewski-Szmek [Thu, 28 Apr 2022 07:38:29 +0000 (09:38 +0200)] 
Merge pull request #23204 from bluca/install_tag

meson: add install_tag and build alias for systemd-boot, libsystemd and libudev

3 years agohwdb: add keyboard mapping for HP ProBook 11G2
Yu Watanabe [Wed, 27 Apr 2022 08:32:21 +0000 (17:32 +0900)] 
hwdb: add keyboard mapping for HP ProBook 11G2

Closes #23108.

3 years agomeson: add systemd-boot and systemd-stub build target aliases 23204/head
Luca Boccassi [Wed, 27 Apr 2022 21:00:48 +0000 (22:00 +0100)] 
meson: add systemd-boot and systemd-stub build target aliases

Allows to quickly build systemd-boot by itself without having to
reference the full path of the build target:

$ ninja -C foo systemd-stub
ninja: Entering directory `foo'
[21/21] Generating src/boot/efi/linuxx64.efi.stub with a custom command
$ ninja -C foo systemd-boot
ninja: Entering directory `foo'
[10/10] Generating src/boot/efi/systemd-bootx64.efi with a custom command

3 years agomeson: add install_tag to sd-boot, libsystemd and libudev
Luca Boccassi [Wed, 27 Apr 2022 09:54:14 +0000 (10:54 +0100)] 
meson: add install_tag to sd-boot, libsystemd and libudev

Allows to 'meson install --tags systemd-boot --no-rebuild' to install only the EFI
binaries, skipping the rest, for a very quick build:

$ ninja src/boot/efi/linuxx64.efi.stub
[21/21] Generating src/boot/efi/linuxx64.efi.stub with a custom command
$ ninja src/boot/efi/systemd-bootx64.efi
[10/10] Generating src/boot/efi/systemd-bootx64.efi with a custom command
$ DESTDIR=/tmp/foo meson install --tags systemd-boot --no-rebuild
Installing src/boot/efi/systemd-bootx64.efi to /tmp/foo/usr/lib/systemd/boot/efi

Requires Meson 0.60 to be used, prints a warning for unknown keyword
in earlier versions, but there's no failure

https://mesonbuild.com/Installing.html#installation-tags

3 years agoMerge pull request #23206 from yuwata/meson-compression
Luca Boccassi [Wed, 27 Apr 2022 17:27:47 +0000 (18:27 +0100)] 
Merge pull request #23206 from yuwata/meson-compression

meson: follow-ups about compression method

3 years agoMerge pull request #23119 from yuwata/test-sd-device-exclude-bdi
Zbigniew Jędrzejewski-Szmek [Wed, 27 Apr 2022 14:56:53 +0000 (16:56 +0200)] 
Merge pull request #23119 from yuwata/test-sd-device-exclude-bdi

test: exclude "bdi" subsystem

3 years agomeson: also use COMPRESSION_NONE for default compression 23206/head
Yu Watanabe [Wed, 27 Apr 2022 11:49:17 +0000 (20:49 +0900)] 
meson: also use COMPRESSION_NONE for default compression

3 years agomeson: show default compression method in summary
Yu Watanabe [Wed, 27 Apr 2022 11:47:38 +0000 (20:47 +0900)] 
meson: show default compression method in summary

3 years agoMerge pull request #23131 from poettering/shared-compress
Zbigniew Jędrzejewski-Szmek [Wed, 27 Apr 2022 08:47:54 +0000 (10:47 +0200)] 
Merge pull request #23131 from poettering/shared-compress

move compress.[ch] → src/basic/

3 years agotest: exclude "bdi" subsystem and loop block devices 23119/head
Yu Watanabe [Tue, 19 Apr 2022 12:16:53 +0000 (21:16 +0900)] 
test: exclude "bdi" subsystem and loop block devices

On several CI environments, it seems that some loop block devices and
corresponding bdi devices are sometimes removed during the test is
running. Let's exclude them.

Fixes #22970.

3 years agosd-device-enumerator: introduce sd_device_enumerator_add_nomatch_sysname()
Yu Watanabe [Mon, 25 Apr 2022 02:20:11 +0000 (11:20 +0900)] 
sd-device-enumerator: introduce sd_device_enumerator_add_nomatch_sysname()

3 years agosd-device-enumerator: use set_fnmatch()
Yu Watanabe [Mon, 25 Apr 2022 02:19:56 +0000 (11:19 +0900)] 
sd-device-enumerator: use set_fnmatch()

3 years agoset: introduce set_fnmatch()
Yu Watanabe [Mon, 25 Apr 2022 02:07:54 +0000 (11:07 +0900)] 
set: introduce set_fnmatch()

3 years agoMerge pull request #23161 from yuwata/nss-ipv6-disabled
Lennart Poettering [Tue, 26 Apr 2022 20:52:09 +0000 (22:52 +0200)] 
Merge pull request #23161 from yuwata/nss-ipv6-disabled

nss: do not return IPv6 address when IPv6 is disabled

3 years agojournal-verify: tighten check for compression of non-objects 23131/head
Lennart Poettering [Wed, 20 Apr 2022 14:08:36 +0000 (16:08 +0200)] 
journal-verify: tighten check for compression of non-objects

3 years agocompress: make Compression a regular non-sparse enum
Lennart Poettering [Wed, 20 Apr 2022 14:06:14 +0000 (16:06 +0200)] 
compress: make Compression a regular non-sparse enum

Given we have two different types for the journal object flags and the
Compression enum, let's make the latter a regular non-sparse enum, and
thus remove some surprises. We have to convert anyway between the two,
and already do via COMPRESSION_FROM_OBJECT().

3 years agobasic: move compress.[ch] → src/basic/
Lennart Poettering [Wed, 20 Apr 2022 13:35:28 +0000 (15:35 +0200)] 
basic: move compress.[ch] → src/basic/

The compression helpers are used both in journal code and in coredump
code, and there's a good chance we'll use them later for other stuff.

Let's hence move them into src/basic/, to make them a proper internal
API we can use from everywhere where that's desirable. (pstore might be
a candidate, for example)

No real code changes, just some moving around, build system
rearrangements, and stripping of journal-def.h inclusion.

3 years agopo: update italian translations
Daniele Medri [Tue, 26 Apr 2022 14:22:27 +0000 (16:22 +0200)] 
po: update italian translations

3 years agoci: unpin CFLite
Evgeny Vereshchagin [Fri, 22 Apr 2022 21:06:39 +0000 (21:06 +0000)] 
ci: unpin CFLite

The idea was to catch CFLite regressions but since the action itself
pulls the latest docker images it can't be pinned properly and issues
like https://github.com/google/clusterfuzzlite/issues/91 are going to
pop up anyway. Let's unpin it by analogy with CIFuzz and hope it doesn't
break very often.

3 years agooomd: actually fail if configuration is bad
Zbigniew Jędrzejewski-Szmek [Tue, 26 Apr 2022 06:54:39 +0000 (08:54 +0200)] 
oomd: actually fail if configuration is bad

Follow-up for a858355e4a7168625ec1b9e5d17fdb6a11dfecb8.

3 years agoMerge pull request #23160 from keszybz/compress-defines
Zbigniew Jędrzejewski-Szmek [Mon, 25 Apr 2022 08:57:51 +0000 (10:57 +0200)] 
Merge pull request #23160 from keszybz/compress-defines

meson: simplify setting of default compression

3 years agotest: use cp for journal copying when systemd-journal-remote non-existent
wangyuhang [Sun, 24 Apr 2022 07:31:33 +0000 (15:31 +0800)] 
test: use cp  for journal copying when systemd-journal-remote non-existent

3 years agotree-wide: Fix typo
Yu Watanabe [Mon, 25 Apr 2022 01:06:08 +0000 (10:06 +0900)] 
tree-wide: Fix typo

3 years agotree-wide: Simplify variable declarations behind #ifdef
Jan Janssen [Sat, 23 Apr 2022 13:53:29 +0000 (15:53 +0200)] 
tree-wide: Simplify variable declarations behind #ifdef

3 years agoloopback-setup: tweak message if loopback device is already set up
Lennart Poettering [Fri, 22 Apr 2022 19:41:17 +0000 (21:41 +0200)] 
loopback-setup: tweak message if loopback device is already set up

3 years agotest: extend the "hashed" unit names coverage a bit
Frantisek Sumsal [Fri, 22 Apr 2022 16:03:14 +0000 (18:03 +0200)] 
test: extend the "hashed" unit names coverage a bit

Follow-up to #22759.

3 years agoudevadm: wait: check if specified path not exist on --remove
Yu Watanabe [Fri, 22 Apr 2022 18:01:25 +0000 (03:01 +0900)] 
udevadm: wait: check if specified path not exist on --remove

Even if the corresponding device node or syspath are already removed,
the specified symlink to the device node may still exist.

Fixes #23166.

3 years agotest: do not accept IPv6 local address if IPv6 is disabled 23161/head
Yu Watanabe [Fri, 22 Apr 2022 01:31:55 +0000 (10:31 +0900)] 
test: do not accept IPv6 local address if IPv6 is disabled

3 years agonss-myhostname: do not return IPv6 local address if IPv6 is disabled
Yu Watanabe [Fri, 22 Apr 2022 01:31:22 +0000 (10:31 +0900)] 
nss-myhostname: do not return IPv6 local address if IPv6 is disabled

3 years agocryptenroll,homectl: Introduce --fido2-credential-algorithm option
MkfsSion [Sun, 17 Apr 2022 07:42:49 +0000 (15:42 +0800)] 
cryptenroll,homectl: Introduce --fido2-credential-algorithm option

* Some authenticators(like Yubikey) support credential algorithm other than ES256
* Introduce a new option so users can make use of it

3 years agohwdb: Fix rotation for HP Pro Tablet 408 G1
Lance [Fri, 22 Apr 2022 11:22:34 +0000 (04:22 -0700)] 
hwdb: Fix rotation for HP Pro Tablet 408 G1

3 years agohwdb: Remap micmute to f20 for ASUS WMI hotkeys
Benjamin Berg [Fri, 22 Apr 2022 13:59:34 +0000 (15:59 +0200)] 
hwdb: Remap micmute to f20 for ASUS WMI hotkeys

For micmute userspace handles both micmute and f20, as Xorg cannot
handle the high keycode that the micmute key has. As such, adding the
remapping means that the key will work on Xorg clients and not just when
using wayland.

3 years agodocs: suggest to erase /var/lib/systemd/credential.secret when preparing golden images
Lennart Poettering [Fri, 22 Apr 2022 13:00:48 +0000 (15:00 +0200)] 
docs: suggest to erase /var/lib/systemd/credential.secret when preparing golden images

3 years agoupdate TODO
Lennart Poettering [Fri, 22 Apr 2022 13:00:30 +0000 (15:00 +0200)] 
update TODO

3 years agoMerge pull request #23157 from poettering/execute-refactor-fix
Lennart Poettering [Fri, 22 Apr 2022 13:51:41 +0000 (15:51 +0200)] 
Merge pull request #23157 from poettering/execute-refactor-fix

execute: refactor credential passing code, and fix two bugs