Skip to content

Commit

Permalink
Do software emulation of a TPM2 module
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <amulhern@redhat.com>
  • Loading branch information
mulkieran committed May 13, 2024
1 parent e97781c commit e0006ab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions plans/all.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,20 @@ adjust:
enabled: false

prepare:
- name: Start TPM2 emulation kernel module
how: shell
script: modprobe tpm_vtpm_proxy
- name: Install packages
how: install
package:
- tang
- systemd
- swtpm
- swtpm-tools
- tpm2-tools
- name: Start TPM2 emulation
how: shell
script: mkdir /var/tmp/swtpm; swtpm_setup --tpm-state /var/tmp/swtpm --tpm2; swtpm chardev --vtpm-proxy --tpmstate dir=/var/tmp/swtpm --tpm2 &> /var/log/swtpm
- name: Start tang server
how: shell
script: systemctl enable tangd.socket --now
Expand All @@ -19,6 +28,9 @@ prepare:
- name: Show test system information
how: shell
script: free -m; lsblk -i; lscpu; cat /proc/1/sched
- name: Show TPM2 information
how: script
script: tpm2_getrandom 16 | hexdump
- name: Record mkfs.xfs version
how: shell
script: mkfs.xfs -V
Expand Down

0 comments on commit e0006ab

Please sign in to comment.