~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/security/tpm/tpm_vtpm_proxy.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 =============================================
  2 Virtual TPM Proxy Driver for Linux Containers
  3 =============================================
  4 
  5 | Authors:
  6 | Stefan Berger <stefanb@linux.vnet.ibm.com>
  7 
  8 This document describes the virtual Trusted Platform Module (vTPM)
  9 proxy device driver for Linux containers.
 10 
 11 Introduction
 12 ============
 13 
 14 The goal of this work is to provide TPM functionality to each Linux
 15 container. This allows programs to interact with a TPM in a container
 16 the same way they interact with a TPM on the physical system. Each
 17 container gets its own unique, emulated, software TPM.
 18 
 19 Design
 20 ======
 21 
 22 To make an emulated software TPM available to each container, the container
 23 management stack needs to create a device pair consisting of a client TPM
 24 character device ``/dev/tpmX`` (with X=0,1,2...) and a 'server side' file
 25 descriptor. The former is moved into the container by creating a character
 26 device with the appropriate major and minor numbers while the file descriptor
 27 is passed to the TPM emulator. Software inside the container can then send
 28 TPM commands using the character device and the emulator will receive the
 29 commands via the file descriptor and use it for sending back responses.
 30 
 31 To support this, the virtual TPM proxy driver provides a device ``/dev/vtpmx``
 32 that is used to create device pairs using an ioctl. The ioctl takes as
 33 an input flags for configuring the device. The flags  for example indicate
 34 whether TPM 1.2 or TPM 2 functionality is supported by the TPM emulator.
 35 The result of the ioctl are the file descriptor for the 'server side'
 36 as well as the major and minor numbers of the character device that was created.
 37 Besides that the number of the TPM character device is returned. If for
 38 example ``/dev/tpm10`` was created, the number (``dev_num``) 10 is returned.
 39 
 40 Once the device has been created, the driver will immediately try to talk
 41 to the TPM. All commands from the driver can be read from the file descriptor
 42 returned by the ioctl. The commands should be responded to immediately.
 43 
 44 UAPI
 45 ====
 46 
 47 .. kernel-doc:: include/uapi/linux/vtpm_proxy.h
 48 
 49 .. kernel-doc:: drivers/char/tpm/tpm_vtpm_proxy.c
 50    :functions: vtpmx_ioc_new_dev

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php