RFE: systemd-tpm2-setup should be able to handle EKs for AMD/Intel fTPMs
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Start by reading the systemd-tpm2-setup implementation and how it currently reads EK certificates from TPM NV indexes; the issue does not name source files or tests. Then examine the linked tpm2-tools change for how it retrieves AMD and Intel fTPM certificates. Done means defining and implementing a way to supply those certificates locally so early boot can set up the EK without relying on online access.
索引モデルが issue の本文から書いたものです。
説明
Component
No response
Is your feature request related to a problem? Please describe
AMD and Intel fTPMs don't implement the TCG EK Credential Profile specification. That is to say, you won't have NV indexes with the endorsement key, and that's what systemd-tpm2-setup currently uses exclusively.
Instead, they distribute the certificates online via websites. tpm2-tools implemented this for Intel and AMD fTPMs with this commit a few years back for instance.
Consequentially, systemd-tpm2-setup cannot set up an Endorsement Key, as this happens:
TPM handle 0x81010001 not populated.
Trying to create EK with template 'ECC NIST P384 (H-3)'
Getting TPM2 capability 0x0001 property 0x1c00016 count 1.
TPM handle 0x01c00016 not populated.
Trying to create EK with template 'ECC NIST P256 (H-2)'
Getting TPM2 capability 0x0001 property 0x1c00014 count 1.
TPM handle 0x01c00014 not populated.
Trying to create EK with template 'RSA 3072 (H-6)'
Getting TPM2 capability 0x0001 property 0x1c0001c count 1.
TPM handle 0x01c0001c not populated.
Trying to create EK with template 'RSA 2048 (H-1)'
Getting TPM2 capability 0x0001 property 0x1c00012 count 1.
TPM handle 0x01c00012 not populated.
Trying to create EK with template 'ECC NIST P256 (L-2)'
Getting TPM2 capability 0x0001 property 0x1c0000a count 1.
TPM handle 0x01c0000a not populated.
Trying to create EK with template 'RSA 2048 (L-1)'
Getting TPM2 capability 0x0001 property 0x1c00002 count 1.
TPM handle 0x01c00002 not populated.
No usable EK certificate found for any supported template.
These certificates each exist, but they need to obtained differently.
Describe the solution you'd like
Obtaining the EKs online in early boot is going to be problematic, but maybe it would be possible to provide the certificates somewhere on /etc or so that a user of fTPMs could still use the EK functionality.
Describe alternatives you've considered
No response
The systemd version you checked that didn't have the feature you are asking for
No response
- 主要言語
- C
- スター
- 17k
- フォーク
- 4.8k
- 平均マージ
- 2日 10時間
- マージ済み PR(30日)
- 342
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
systemd/systemd のほかの issue
-
login
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
hwdb needs-patch
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
systemd/systemd#44825 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
cryptsetup
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
documentation pid1
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
needs-better-log-message network RFE 🎁
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
systemd/systemd#44563 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
systemd/systemd の issue をすべて見る
似ている issue
-
compiler-rt:asan
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
llvm/llvm-project#242921 ·
メンテナーはふだん 1 日以内に返信
-
Missing gcc __builtin_stdc_bit_width/floor/ceil signature makes intellisense wrongly report error 70オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
microsoft/vscode-cpptools#14874 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
FujiNetWIFI/fujinet-firmware#2401 ·
メンテナーはふだん 1 日以内に返信
-
category:port-update
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
polish
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ChupathingyCE/chupathingyce#1366 ·
メンテナーはふだん 1 日以内に返信