]> git.proxmox.com Git - swtpm.git/commit
swtpm_setup: Rewrite swtpm_setup.sh in python
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 20 Aug 2020 18:12:43 +0000 (14:12 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Fri, 28 Aug 2020 20:27:15 +0000 (16:27 -0400)
commiteee8cb5dfb13f87140dddda38f65bf61aff19508
treef4948663b23fecf01bb11ce354c1f5d5f52e7b3e
parent83f4e9604551966d4132a5caa281625ca0a4f3af
swtpm_setup: Rewrite swtpm_setup.sh in python

Rewrite swtpm_setup.sh in python. Use a permanent connection from the
tool to swtpm via passing file descriptors of a unix socketpair. Implement
all functionality in python so that we don't rely on trousers and tpm-tools
for swtpm_setup. This now allows any user to setup a TPM 1.2 whereas before
it had to be root or the tss user.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
.gitignore
configure.ac
src/swtpm_setup/py_swtpm_setup/__init__.py [new file with mode: 0644]
src/swtpm_setup/py_swtpm_setup/swtpm.py [new file with mode: 0644]
src/swtpm_setup/py_swtpm_setup/swtpm_setup.py [new file with mode: 0755]
src/swtpm_setup/py_swtpm_setup/swtpm_setup_conf.py.in [new file with mode: 0644]
src/swtpm_setup/py_swtpm_setup/swtpm_utils.py [new file with mode: 0644]
src/swtpm_setup/setup.py [new file with mode: 0755]