]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2-util: show loaded libraries in 'systemd-analyze has-tpm2'
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 19 Sep 2024 10:16:12 +0000 (19:16 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 30 Sep 2024 13:40:14 +0000 (15:40 +0200)
commit82f2c33db55be46c52720813a77d3b1b3bf8d1a4
treea718c84b26333b0a70524e2c26d9189774303c72
parentcd9c3327cbc936fc7e3a07d12b94328586ccfbaa
tpm2-util: show loaded libraries in 'systemd-analyze has-tpm2'

After 3b16e9f41983f697bc38c40bb8e7119c1bb4f7c8, even the libraries are
documented in the man page, it is useful to mention which libraries are
checked in the command output.

Of course, the dependencies are kind of implementation detail, and may
be changed in the future version, but that's especially why I think
showing the library deps in the output is useful.

systemd-analyze is a debugging tool, and already shows many internal
states. I think there is nothing to prevent from showing the deps.

Prompted by #34477.
man/systemd-analyze.xml
src/shared/tpm2-util.c
src/shared/tpm2-util.h