{"push_id":951411840,"size":2,"distinct_size":2,"ref":"refs/heads/vtpm-driver.v2","head":"35edf45b1377e4b5c356929e8ba37ee5838cce4e","before":"2181008e4cde742fa8982afcf922c6640cb4677a","commits":[{"sha":"18db074131faaa7da47d581276581409dac4b290","author":{"email":"5c96973112e540fb909b13997fcd087e5bfbee96@linux.vnet.ibm.com","name":"Stefan Berger"},"message":"Implement driver for supporting multiple emulated TPMs\n\nThis patch implements a driver for supporting multiple emulated TPMs in a\nsystem. An emulated TPM can for example be used by a Linux container or\nlater on by namespace-enabled IMA running inside a container.\n\nThe driver implements a device /dev/vtpmx that is only used to created\ndevice pairs /dev/tpmX (e.g., /dev/vtpm10) and a server side that\nis accessed using a file descriptor returned by an ioctl.\nThe device /dev/tpmX is the usual TPM device created by the core TPM\ndriver. Applications or kernel subsystems can send TPM commands to it\nand the corresponding server-side file descriptor receives these\ncommands and delivers them to an emulated TPM. The device /dev/tpmX can\nbe moved into a container and appear there as /dev/tpm0.\n\nSigned-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>","distinct":true,"url":"https://api.github.com/repos/stefanberger/linux/commits/18db074131faaa7da47d581276581409dac4b290"},{"sha":"35edf45b1377e4b5c356929e8ba37ee5838cce4e","author":{"email":"5c96973112e540fb909b13997fcd087e5bfbee96@linux.vnet.ibm.com","name":"Stefan Berger"},"message":"A test program for vTPM device creation\n\nThis patch provides a program that is for testing purposes only.\n\nBuild it using the following commands:\n\nmake headers_install ARCH=x86_64  INSTALL_HDR_PATH=/usr\n\ngcc vtpmctrl.c -o vtpmctrl\n\nTo use it:\n\nTo create a device pair and have vtpmctrl listen for commands, display\nthem and respond with TPM success messages do:\n\n#> ./vtpmctrl\nCreated TPM device /dev/tpm0; vTPM device has fd 4, major/minor = 10/224.\n\nIn another shell do\n\n#> exec 100<>/dev/tpm0\n#> /bin/echo -en '\\x00\\xc1\\x00\\x00\\x00\\x0a\\x00\\x00\\x00\\x00' >&100\n#> od -t x1 <&100\n00000000 00 c4 00 00 00 0a 00 00 00 00\n00000012\n#> exec 100>&-\n\nSigned-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>","distinct":true,"url":"https://api.github.com/repos/stefanberger/linux/commits/35edf45b1377e4b5c356929e8ba37ee5838cce4e"}]}