]>
git.ipfire.org Git - thirdparty/systemd.git/log
Mike Yuan [Mon, 10 Jul 2023 13:04:49 +0000 (21:04 +0800)]
hibernate-resume: use devnode_same to compare device nodes
Addresses https://github.com/systemd/systemd/pull/28321#discussion_r1257866179
When devnode_same() fails we only debug log about it, because
the device nodes might not have appeared by the time the generator
is run.
Fixes #28340
Mike Yuan [Mon, 10 Jul 2023 12:58:57 +0000 (20:58 +0800)]
shared/device-nodes: add devnode_same
Mike Yuan [Mon, 10 Jul 2023 12:42:01 +0000 (20:42 +0800)]
path-util: make path_equal_or_inode_same static inline
No functional change, just refactoring.
Yu Watanabe [Tue, 11 Jul 2023 03:28:06 +0000 (12:28 +0900)]
seccomp: add arm_fadvise64_64 to system-service group
fadvise64 and fadvise64_64 are already in the group, but arm_ version
was not.
Fixes #28350.
Lennart Poettering [Tue, 11 Jul 2023 09:53:03 +0000 (11:53 +0200)]
Merge pull request #28348 from YHNdnzj/async-close-waitpid
shared/async: don't use WEXITED for waitpid()
Mike Yuan [Mon, 10 Jul 2023 17:46:29 +0000 (01:46 +0800)]
shared/async: don't use WEXITED for waitpid()
Follow-up for
c26d7837bb08508c8d906d849dff8f1bc465063e
waitpid() doesn't support WEXITED and returns -1 (EINVAL),
which results in the intermediate close process not getting
reaped.
Fixes https://github.com/systemd/systemd/issues/26744#issuecomment-
1628240782
Mike Yuan [Tue, 11 Jul 2023 04:06:14 +0000 (12:06 +0800)]
shared/async: prefix process name with sd-
Yu Watanabe [Mon, 10 Jul 2023 23:42:19 +0000 (08:42 +0900)]
Merge pull request #28343 from poettering/daemon-reload-common
tree-wide: add common implementation of Reload() bus call to PID 1
Daan De Meyer [Mon, 10 Jul 2023 16:14:17 +0000 (18:14 +0200)]
Merge pull request #28333 from DaanDeMeyer/tpm-support-dlopen
tpm2-util: Only assume system support if we can dlopen() the tpm libraries
Lennart Poettering [Mon, 10 Jul 2023 12:54:11 +0000 (14:54 +0200)]
tree-wide: drop trailing newline from various log calls
We generate this implicitly, hence we generally don't include it
explicitly.
Lennart Poettering [Wed, 5 Jul 2023 15:54:01 +0000 (17:54 +0200)]
bus-unit-util: add common code for reloading PID 1
We have this very similar code in various places, and it#s not entirely
obvious (since we want a prolonged timeout for the reload), hence unify
this at one place.
Luca Boccassi [Mon, 10 Jul 2023 10:59:57 +0000 (11:59 +0100)]
test-fstab-generator: use test_env
When running from the build directory systemd-detect-virt might not be installed,
so tell meson to set up the PATH accordingly to point to the build directory.
Fixes https://github.com/systemd/systemd/issues/28316
Luca Boccassi [Mon, 10 Jul 2023 11:58:02 +0000 (12:58 +0100)]
sd-gpt: add missing SD_GPT_*NATIVE* defines for mips/mips64/parisc
We already had the arch-specific UUIDs defined, but they were not wired up
Luca Boccassi [Mon, 10 Jul 2023 14:27:13 +0000 (15:27 +0100)]
Merge pull request #28308 from bluca/casting
Fix compilation on mipsel, ia64 and x32
Frantisek Sumsal [Mon, 10 Jul 2023 08:39:00 +0000 (10:39 +0200)]
test: reorder the machinectl signal tests
So the multiple-machines tests run last to avoid a race where the
checked signal would get ignored while the stub init is still processing
the previous signals:
[ 17.380417] testsuite-13.sh[376]: + machinectl reboot long-running long-running long-running
[ 17.389888] systemd-nspawn[495]: ++ touch /reboot
[ 17.390904] testsuite-13.sh[376]: + rm -f /var/lib/machines/long-running/trap
[ 17.393937] testsuite-13.sh[376]: + machinectl kill --signal=SIGTRAP --kill-whom=leader long-running
[ 17.408905] testsuite-13.sh[376]: + timeout 10 bash -c 'while ! test -e /var/lib/machines/long-running/trap; do sleep .5; done'
[ 27.413210] testsuite-13.sh[376]: + at_exit
...
[ 27.993376] testsuite-13.sh[373]: + echo 'Subtest /usr/lib/systemd/tests/testdata/units/testsuite-13.machinectl.sh failed'
Daan De Meyer [Mon, 10 Jul 2023 12:48:34 +0000 (14:48 +0200)]
mkosi: Add tpm2-tools to the initrd
To provide tpm2_eventlog for PCR debugging.
Daan De Meyer [Mon, 10 Jul 2023 13:49:42 +0000 (15:49 +0200)]
Merge pull request #28334 from DaanDeMeyer/network-generator
Network generator fixes
Daan De Meyer [Mon, 10 Jul 2023 10:49:52 +0000 (12:49 +0200)]
analyze-pcrs: Fix typo
Daan De Meyer [Mon, 10 Jul 2023 10:20:33 +0000 (12:20 +0200)]
tpm2-util: Check for dlopen() when calculating tpm2 support
Luca Boccassi [Sun, 9 Jul 2023 12:03:44 +0000 (13:03 +0100)]
sleep: fix unused variable warning
log_level_ignored is used only inside the ifdef, so declare it there too
Luca Boccassi [Sat, 8 Jul 2023 15:43:28 +0000 (16:43 +0100)]
process-util: use clone2 on ia64
glibc does not provide clone() on ia64, only clone2. But only as a
symbol in the shared library, there's no prototype in the gblic
headers, so we have to define it, copied from the manpage.
Luca Boccassi [Sat, 8 Jul 2023 15:35:00 +0000 (16:35 +0100)]
Cast st_dev to dev_t when printing
st_dev is not the same as dev_t, and on O32 architectures like
mipsel it's an unsigned long, but dev_t is still unsigned long long,
so they don't match and compilation fails:
../src/journal/cat.c: In function ‘run’:
../src/basic/format-util.h:46:19: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Werror=format=]
46 | # define DEV_FMT "%" PRIu64
| ^~~
../src/journal/cat.c:168:34: note: in expansion of macro ‘DEV_FMT’
168 | if (asprintf(&s, DEV_FMT ":" INO_FMT, st.st_dev, st.st_ino) < 0)
| ^~~~~~~
In file included from ../src/systemd/sd-journal.h:20,
from ../src/journal/cat.c:11:
/usr/include/inttypes.h:105:41: note: format string is defined here
105 | # define PRIu64 __PRI64_PREFIX "u"
Daan De Meyer [Mon, 10 Jul 2023 10:30:35 +0000 (12:30 +0200)]
network-generator: Add missing umask(0022)
Daan De Meyer [Mon, 10 Jul 2023 10:30:15 +0000 (12:30 +0200)]
network-generator: Add missing log_setup()
Jan Janssen [Sun, 9 Jul 2023 17:30:27 +0000 (19:30 +0200)]
boot: Fix build for x32
When building on a x32 system we need to explicitly pass `-m64` to get
the right ABI as the kernel and EFI are still 64bit. For this to
actually work, a suitable multilib compiler, 32bit libc headers and
libgcc need to be installed (similar to ia32 builds on x86_64).
Luca Boccassi [Sat, 8 Jul 2023 15:21:37 +0000 (16:21 +0100)]
Print ssize_t as %zd
On some architectures (x32) ssize_t is int, not long int.
../src/basic/confidential-virt.c: In function ‘msr’:
../src/basic/confidential-virt.c:133:27: error: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘ssize_t’ {aka ‘int’} [-Werror=format=]
133 | log_debug("Short read %ld bytes from MSR device %s (index %" PRIu64 "), ignoring",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
134 | rv,
| ~~
| |
| ssize_t {aka int}
../src/basic/log.h:214:86: note: in definition of macro ‘log_full_errno_zerook’
214 | ? log_internal(_level, _e, PROJECT_FILE, __LINE__, __func__, __VA_ARGS__) \
| ^~~~~~~~~~~
../src/basic/log.h:242:28: note: in expansion of macro ‘log_full’
242 | #define log_debug(...) log_full(LOG_DEBUG, __VA_ARGS__)
| ^~~~~~~~
../src/basic/confidential-virt.c:133:17: note: in expansion of macro ‘log_debug’
133 | log_debug("Short read %ld bytes from MSR device %s (index %" PRIu64 "), ignoring",
| ^~~~~~~~~
../src/basic/confidential-virt.c:133:41: note: format string is defined here
133 | log_debug("Short read %ld bytes from MSR device %s (index %" PRIu64 "), ignoring",
| ~~^
| |
| long int
| %d
Luca Boccassi [Mon, 10 Jul 2023 00:00:18 +0000 (01:00 +0100)]
test: mount_option_supported() returns EAGAIN when new mount API is not supported
Don't fail test-mountpoint-util if we get EAGAIN as it's expected on old
kernels
Luca Boccassi [Sun, 9 Jul 2023 13:39:05 +0000 (14:39 +0100)]
efi: skip libefitest if 'bootloader' is explicitly set to false
On x32 efi_arch will be set as the kernel architecture is just x86_64,
but there's no userland support to build the EFI ABI. When -Dbootloader=false
is set, skip libefitest too.
Luca Boccassi [Sun, 9 Jul 2023 23:13:08 +0000 (00:13 +0100)]
Merge pull request #28321 from YHNdnzj/hibernate-resume-compare-dev
hibernate-resume: follow-ups
Mike Yuan [Sun, 9 Jul 2023 16:40:13 +0000 (00:40 +0800)]
hibernate-resume: compare device nodes using path_equal_or_inode_same
Follow-up for
9deeca127520b1098c3dfab9cdfd3b9c6bf983a4
Mike Yuan [Sun, 9 Jul 2023 16:35:31 +0000 (00:35 +0800)]
hibernate-resume: add missing newline to the generated unit
Mike Yuan [Sat, 8 Jul 2023 22:10:18 +0000 (06:10 +0800)]
hibernate-resume: refuse resume if resume_offset= is set but not resume=
Mike Yuan [Sat, 8 Jul 2023 18:33:26 +0000 (02:33 +0800)]
coccinelle/take-fd: match for -EBADF instead of -1
Follow-up for
254d1313ae5a69c08c9b93032aaaf3d6083cfc07
Mike Yuan [Sat, 8 Jul 2023 22:16:10 +0000 (06:16 +0800)]
LICENSES/README.md: fix syntax
Xeonacid [Sat, 8 Jul 2023 12:56:47 +0000 (20:56 +0800)]
seccomp: add riscv_hwprobe to @default
This syscall is for probing hardware capabilities from userspace and should do no harm.
Added in https://github.com/torvalds/linux/commit/
ea3de9ce8aa280c5175c835bd3e94a3a9b814b74
Mike Yuan [Sat, 8 Jul 2023 17:47:01 +0000 (01:47 +0800)]
Merge pull request #28309 from weblate/weblate-systemd-master
Translations update from Fedora Weblate
Temuri Doghonadze [Sat, 8 Jul 2023 17:21:02 +0000 (19:21 +0200)]
po: Translated using Weblate (Georgian)
Currently translated at 100.0% (195 of 195 strings)
Co-authored-by: Temuri Doghonadze <temuri.doghonadze@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ka/
Translation: systemd/main
Yuri Chornoivan [Sat, 8 Jul 2023 17:21:02 +0000 (19:21 +0200)]
po: Translated using Weblate (Ukrainian)
Currently translated at 100.0% (195 of 195 strings)
Co-authored-by: Yuri Chornoivan <yurchor@ukr.net>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/uk/
Translation: systemd/main
Luna Jernberg [Sat, 8 Jul 2023 17:21:02 +0000 (19:21 +0200)]
po: Translated using Weblate (Swedish)
Currently translated at 100.0% (195 of 195 strings)
Co-authored-by: Luna Jernberg <bittin@reimu.nl>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/sv/
Translation: systemd/main
김인수 [Sat, 8 Jul 2023 17:21:02 +0000 (19:21 +0200)]
po: Translated using Weblate (Korean)
Currently translated at 100.0% (195 of 195 strings)
Co-authored-by: 김인수 <simmon@nplob.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ko/
Translation: systemd/main
Pavel Borecki [Sat, 8 Jul 2023 17:21:01 +0000 (19:21 +0200)]
po: Translated using Weblate (Czech)
Currently translated at 100.0% (195 of 195 strings)
Co-authored-by: Pavel Borecki <pavel.borecki@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/cs/
Translation: systemd/main
Luca Boccassi [Fri, 7 Jul 2023 21:49:31 +0000 (22:49 +0100)]
fuzz: switch fuzz-manager-serialize to MANAGER_TEST_RUN_MINIMAL
When there is no access to cgroups MANAGER_TEST_RUN_BASIC will fail
to set up and assert. This happens on a build system like Debian's.
Switch to _MINIMAL which skips cgroup and other machine-wide setups.
Dan Streetman [Fri, 7 Jul 2023 17:37:28 +0000 (13:37 -0400)]
test: Add DA lockout handling to TEST-70-TPM2
Since this test intentionally provides an incorrect PIN, the DA lockout counter
is incremented; the test needs to reset it so there is no DA lockout.
Christian Hesse [Fri, 7 Jul 2023 13:58:55 +0000 (15:58 +0200)]
test-proc-cmdline: run tests only with efi
Run these tests only with efi enabled.
Lennart Poettering [Fri, 7 Jul 2023 14:00:31 +0000 (16:00 +0200)]
dissect: add new verbs to brief version of cmline in --help
Yu Watanabe [Fri, 7 Jul 2023 16:13:17 +0000 (01:13 +0900)]
Merge pull request #28287 from yuwata/network-null-address
network: fix null address handling
Yu Watanabe [Fri, 7 Jul 2023 16:11:41 +0000 (01:11 +0900)]
Merge pull request #28296 from bluca/shell_compl
Add new verbs to bash shell completions
Luca Boccassi [Fri, 7 Jul 2023 12:41:15 +0000 (13:41 +0100)]
shell-completion: add show-cache to bash
Luca Boccassi [Fri, 7 Jul 2023 12:40:12 +0000 (13:40 +0100)]
shell-completion: add whoami to bash
Luca Boccassi [Fri, 7 Jul 2023 12:39:21 +0000 (13:39 +0100)]
shell-completion: add soft-reboot to bash
Luca Boccassi [Fri, 7 Jul 2023 12:37:35 +0000 (13:37 +0100)]
Merge pull request #28295 from eworm-de/zsh-soft-reboot
shell-completion/zsh: misc verbs
Christian Hesse [Fri, 7 Jul 2023 12:05:11 +0000 (14:05 +0200)]
shell-completion/zsh/resolvectl: add show-cache
Make zsh shell-completion aware of show-cache.
Christian Hesse [Fri, 7 Jul 2023 12:02:41 +0000 (14:02 +0200)]
shell-completion/zsh/systemctl: add whoami
Make zsh shell-completion aware of whoami.
Christian Hesse [Fri, 7 Jul 2023 11:49:11 +0000 (13:49 +0200)]
shell-completion/zsh/systemctl: add soft-reboot
Make zsh shell-completion aware of soft-reboot.
Yu Watanabe [Fri, 7 Jul 2023 09:49:04 +0000 (18:49 +0900)]
meson: allow to fallback to use libxcrypt.pc or glibc's libcrypt
Some distributions still use glibc's libcrypt. In that case, libcrypt.pc
does not exist and dependency() will fail.
Also, even if libxcrypt is used, there may not be a symlink
from libcrypt.pc to libxcrypt.pc. So, let's add a secondary name.
Follow-up for
d625f717db6e151fd78742593c35eaba4cd2841d .
Fixes #28289.
Luca Boccassi [Fri, 7 Jul 2023 09:51:18 +0000 (10:51 +0100)]
test: remove +x from some units
Luca Boccassi [Fri, 7 Jul 2023 09:47:01 +0000 (10:47 +0100)]
typo: dont -> don't
Luca Boccassi [Fri, 7 Jul 2023 09:42:18 +0000 (10:42 +0100)]
test: add +x to generator-utils.sh
It is marked and named as a script, so add +x otherwise Lintian complains:
W: systemd-tests: script-not-executable [usr/lib/systemd/tests/testdata/units/generator-utils.sh]
Luca Boccassi [Fri, 7 Jul 2023 10:44:54 +0000 (11:44 +0100)]
README: mention that meson 0.60 is now required
Luca Boccassi [Fri, 7 Jul 2023 10:44:31 +0000 (11:44 +0100)]
NEWS: mention that meson 0.60 is now required
Luca Boccassi [Fri, 7 Jul 2023 10:42:46 +0000 (11:42 +0100)]
NEWS: mention that gnu-efi is no longer required
Yu Watanabe [Fri, 7 Jul 2023 01:23:48 +0000 (10:23 +0900)]
test-network: add tests for null addresses
For issue #26113.
Yu Watanabe [Fri, 7 Jul 2023 02:24:03 +0000 (11:24 +0900)]
network: make address_get() work for null address
When a static null address is requested, e.g. Address=0.0.0.0/24,
then the corresponding Address object owned by Network object has
null address, and previously it did not match any addresses already
assigne to the interface.
Let's search matching Address object when originally it is requested as
the null address.
Then, the address configured with requested as a null address will be
kept on reconfigure.
Fixes #26113.
Yu Watanabe [Fri, 7 Jul 2023 02:20:49 +0000 (11:20 +0900)]
network: always copy input address for link_request_address()
Then, the code becomes much simpler.
This also adds several missing log messages.
No functional change, just refactoring.
Yu Watanabe [Fri, 7 Jul 2023 04:18:15 +0000 (13:18 +0900)]
network: also use address_kernel_{hash,compare}_func() for managing address requests
Request may refer Address object owned by Link, but its broadcast
address or label may be updated by address_equalify(), hence these
fields cannot be used in the hash and compare functions.
Yu Watanabe [Fri, 7 Jul 2023 06:35:53 +0000 (15:35 +0900)]
network: log broadcast address and address label
Yu Watanabe [Fri, 7 Jul 2023 02:31:25 +0000 (11:31 +0900)]
network: ignore Broadcast= setting when the address is null
When an address is requested with null address, then broadcast should be
determined after an address aquired that will be assigned to the
interface.
Yu Watanabe [Fri, 7 Jul 2023 02:30:27 +0000 (11:30 +0900)]
network: split-out address_section_adjust_broadcast()
No functional change, just refactoring.
Christian Hesse [Fri, 7 Jul 2023 08:20:10 +0000 (10:20 +0200)]
man/systemd.unit: document restart behavior on Upholds=
Behavior on constantly failing (or oneshot) unit was unclear. Let's
document it here.
Lily Foster [Thu, 6 Jul 2023 20:13:53 +0000 (16:13 -0400)]
fstab-generator: unify initrd-root-device.target dependency handling code
This fixes a bug from #26038 where it would actually write generator
stuff during sysroot check when it was only supposed to check for daemon
reload.
Yu Watanabe [Fri, 7 Jul 2023 02:51:02 +0000 (11:51 +0900)]
Merge pull request #28233 from mrc0mmand/append-to-corrupted-journals
test: append to corrupted journals
Yu Watanabe [Fri, 7 Jul 2023 01:12:06 +0000 (10:12 +0900)]
Merge pull request #28286 from yuwata/network-dhcp4-classless-static-routes
network,dhcp4: do not ignore gateway in classless static routes option
Yu Watanabe [Thu, 6 Jul 2023 21:18:36 +0000 (06:18 +0900)]
network,ndisc: use ndisc_captive_portal_free() at one more place
Fixes another memleak introduced by
64de00c49fde341d09b817164fe8cc8f7da46268 .
Fixes #28283.
Yu Watanabe [Thu, 6 Jul 2023 21:57:04 +0000 (06:57 +0900)]
test-network: add one more testcase for DHCPv4 classless route
For issue #28280.
Yu Watanabe [Thu, 6 Jul 2023 21:31:04 +0000 (06:31 +0900)]
network/dhcp4: do not ignore the gateway even if the destination is in the same network
Fixes #28280.
Frantisek Sumsal [Sat, 13 May 2023 15:39:35 +0000 (17:39 +0200)]
test: append to corrupted journals
Introduce a manual test tool that creates a journal, corrupts it by
flipping bits at given offsets, and then attempts to write to the journal.
In ideal case we should handle this gracefully without any crash or
memory corruption.
Weblate [Thu, 6 Jul 2023 19:57:22 +0000 (21:57 +0200)]
po: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/
Translation: systemd/main
Luca Boccassi [Thu, 6 Jul 2023 19:53:04 +0000 (20:53 +0100)]
NEWS: finalize for 254-rc1
Luca Boccassi [Thu, 6 Jul 2023 19:44:22 +0000 (20:44 +0100)]
meson: bump versions for v254-rc1
Luca Boccassi [Thu, 6 Jul 2023 19:49:08 +0000 (20:49 +0100)]
Update translation files
Luca Boccassi [Thu, 6 Jul 2023 19:38:52 +0000 (20:38 +0100)]
NEWS: update contributors list
Luca Boccassi [Thu, 6 Jul 2023 14:42:29 +0000 (15:42 +0100)]
Update NEWS for latest changes
Luca Boccassi [Thu, 6 Jul 2023 13:45:59 +0000 (14:45 +0100)]
NEWS: rearrange deprecation notices from more imminent to less imminent
Luca Boccassi [Thu, 6 Jul 2023 19:37:31 +0000 (20:37 +0100)]
Merge pull request #27584 from rphibel/add-restartquick-option
service: add new RestartMode option
Luca Boccassi [Thu, 6 Jul 2023 19:36:04 +0000 (20:36 +0100)]
Merge pull request #20425 from Blarse/passwdqc-pr
Add passwdqc support
Yu Watanabe [Thu, 6 Jul 2023 12:04:47 +0000 (21:04 +0900)]
network,ndisc: use correct free function for captive portal
Fixes memleak introduced by
64de00c49fde341d09b817164fe8cc8f7da46268 .
Fixes #28277.
Luca Boccassi [Thu, 6 Jul 2023 18:14:26 +0000 (19:14 +0100)]
Merge pull request #28242 from berrange/cond-sec-cvm
Detect and expose the confidential virtualization technology in various places
Luca Boccassi [Thu, 6 Jul 2023 13:41:48 +0000 (14:41 +0100)]
Merge pull request #28274 from DaanDeMeyer/dissect-root
dissect: Allow a few verbs to operate on directories as well as image files
Richard Phibel [Thu, 6 Jul 2023 12:03:35 +0000 (14:03 +0200)]
service: fix for RestartMode=direct option
With the fix done in PR28215, the unit restart job is created with type JOB_START.
Because of that, it is not properly merged anymore with the old one: the
merged job has state JOB_RUNNING. It should have state JOB_WAITING.
I think that the old job is not cleaned up because we don't go through the failed state.
With this fix, the merged job is properly created with state JOB_WAITING.
Richard Phibel [Thu, 6 Jul 2023 12:33:52 +0000 (14:33 +0200)]
service: add new RestartMode option
When this option is set to direct, the service restarts without entering a failed
state. Dependent units are not notified of transitory failure.
This is useful for the following use case:
We have a target with Requires=my-service, After=my-service.
my-service.service is a oneshot service and has Restart=on-failure in
its definition.
my-service.service can get stuck for various reasons and time out, in
which case it is restarted. Currently, when it fails the first time, the
target fails, even though my-service is restarted.
The behavior we're looking for is that until my-service is not restarted
anymore, the target stays pending waiting for my-service.service to
start successfully or fail without being restarted anymore.
Daniel P. Berrangé [Mon, 3 Jul 2023 09:24:30 +0000 (10:24 +0100)]
udev: add 'conf-virt' constant for confidential virtualization tech
Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Daniel P. Berrangé [Mon, 3 Jul 2023 09:21:07 +0000 (10:21 +0100)]
core: set SYSTEMD_CONFIDENTIAL_VIRTUALIZATION env for generators
This reports the confidential virtualization type that was detected
Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Daniel P. Berrangé [Mon, 3 Jul 2023 09:20:47 +0000 (10:20 +0100)]
core: log detected confidential virtualization type
Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Daniel P. Berrangé [Mon, 3 Jul 2023 08:53:43 +0000 (09:53 +0100)]
dbus: add 'ConfidentialVirtualization' property to manager object
This property reports whether the system is running inside a confidential
virtual machine.
Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Daniel P. Berrangé [Fri, 30 Jun 2023 18:01:17 +0000 (19:01 +0100)]
unit: add "cvm" option for ConditionSecurity
The "cvm" flag indicates whether the OS is running inside a confidential
virtual machine.
Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Daniel P. Berrangé [Fri, 30 Jun 2023 18:07:29 +0000 (19:07 +0100)]
detect-virt: add --list-cvm option
The --list-cvm option reports the known types of confidential virtualization
technology that can be detected.
Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Daniel P. Berrangé [Fri, 30 Jun 2023 18:07:29 +0000 (19:07 +0100)]
detect-virt: add --cvm option
The --cvm option detects whether the OS is running inside a confidential
virtual machine.
Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Daniel P. Berrangé [Fri, 9 Jun 2023 14:37:18 +0000 (15:37 +0100)]
add APIs for detecting confidential virtualization
This code uses various CPUID checks to be able to identify
* AMD SEV
* AMD SEV-ES
* AMD SEV-SNP
* Intel TDX
On HyperV/Azure, it has special checks for detecting SEV-SNP
since the normal CPUID is blocked.
Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Egor Ignatov [Fri, 6 Aug 2021 08:41:01 +0000 (11:41 +0300)]
shared: add libpasswdqc support
Co-authored-by: Dmitry V. Levin <ldv@altlinux.org>
Resolves: #15055
Joerg Behrmann [Thu, 6 Jul 2023 09:54:02 +0000 (11:54 +0200)]
treewide: fix "an" before consonant U sounds
The article "a" goes before consonant sounds and "an" goes before vowel
sounds. This commit changes an to a for UKI, UDP, UTF-8, URL, UUID, U-Label, UI
and USB, since they start with the sound /ˌjuː/.