On Fri, Mar 31, 2017 at 04:10:17PM +0300, Amarnath Valluri wrote:
> +static int tpm_emulator_spawn_emulator(TPMEmulator *tpm_pt)
> +{
> +int fds[2];
> +int ctrl_fds[2];
> +pid_t cpid;
> +
> +if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds) < 0) {
> +return -1;
> +}
> +
>
Hi
(just a quick review, there will be more once the design discussion is over)
On Fri, Mar 31, 2017 at 5:03 PM Amarnath Valluri
wrote:
> This change introduces a new TPM backend driver that can communicates with
>
communicate
> swtpm(software TPM emulator) using unix domain socket interface
This change introduces a new TPM backend driver that can communicates with
swtpm(software TPM emulator) using unix domain socket interface.
Swtpm uses two unix sockets, one for plain TPM commands and responses, and one
for out-of-band control messages.
The swtpm and associated tools can be found