]> git.proxmox.com Git - swtpm.git/commit
Support added to receive data socket over control socket
authorAmarnath Valluri <amarnath.valluri@intel.com>
Wed, 20 Sep 2017 13:09:46 +0000 (16:09 +0300)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 29 Sep 2017 17:11:01 +0000 (13:11 -0400)
commit1fb8bb790f5bd7d81a97be7507d1063aa3bb2c58
tree7649e59c2a42fca1be9aece2ed9be2b9eb41e7ed
parent52d1090b74e268217246c32b3be2235a3125681b
Support added to receive data socket over control socket

As objected by QEMU upstream developers to use two different sockets for
starting/using of swtpm, This commit adds support for passing unix domain
socket over control channel.

The summary of the changes include:
 - Defined new control command CMD_SET_DATAFD, using this clients can send data
   socket.
 - set mlp.fd and mlp.flags outside of the mainloop
 - updated the testcases

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
include/swtpm/tpm_ioctl.h
src/swtpm/ctrlchannel.c
src/swtpm/ctrlchannel.h
src/swtpm/mainloop.c
src/swtpm/swtpm_io.c
tests/test_clientfds.py
tests/test_ctrlchannel
tests/test_setdatafd.py [new file with mode: 0755]