diff options
| author | Denis Efremov <efremov@linux.com> | 2021-09-27 21:48:12 +0300 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2021-09-28 14:41:43 +0200 |
| commit | 6b6e15b0ff6d7ddfc1c029250f1fb8fcc2d4a204 (patch) | |
| tree | 09d909982385a610eb4c61ced256381721d4565e /sys/linux/dev_vtpm.txt | |
| parent | 78494d166f1bbede620120c506ccd9f7878b05f9 (diff) | |
sys/linux: describe /dev/vtpmx
Describe virtual Trusted Platform Module (vTPM) proxy device driver.
Signed-off-by: Denis Efremov <efremov@linux.com>
Diffstat (limited to 'sys/linux/dev_vtpm.txt')
| -rw-r--r-- | sys/linux/dev_vtpm.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/linux/dev_vtpm.txt b/sys/linux/dev_vtpm.txt new file mode 100644 index 000000000..0fd21ce4f --- /dev/null +++ b/sys/linux/dev_vtpm.txt @@ -0,0 +1,20 @@ +# Copyright 2021 syzkaller project authors. All rights reserved. +# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +include <uapi/linux/vtpm_proxy.h> + +resource fd_vtpm[fd] + +openat$vtpm(fd const[AT_FDCWD], file ptr[in, string["/dev/vtpmx"]], flags flags[open_flags], mode const[0]) fd_vtpm + +vtpm_proxy_flags = VTPM_PROXY_FLAG_TPM2 + +vtpm_proxy_new_dev { + flags flags[vtpm_proxy_flags, int32] + tpm_num int32 + fd fd + major int32 + minor int32 +} + +ioctl$VTPM_PROXY_IOC_NEW_DEV(fd fd_vtpm, cmd const[VTPM_PROXY_IOC_NEW_DEV], arg ptr[inout, vtpm_proxy_new_dev]) |
