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 | |
| 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')
| -rw-r--r-- | sys/linux/dev_vtpm.txt | 20 | ||||
| -rw-r--r-- | sys/linux/dev_vtpm.txt.const | 5 |
2 files changed, 25 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]) diff --git a/sys/linux/dev_vtpm.txt.const b/sys/linux/dev_vtpm.txt.const new file mode 100644 index 000000000..837300f3a --- /dev/null +++ b/sys/linux/dev_vtpm.txt.const @@ -0,0 +1,5 @@ +# Code generated by syz-sysgen. DO NOT EDIT. +arches = 386, amd64, arm, arm64, mips64le, ppc64le, riscv64, s390x +VTPM_PROXY_FLAG_TPM2 = 1 +VTPM_PROXY_IOC_NEW_DEV = 3222577408 +__NR_ioctl = 54, amd64:16, arm64:riscv64:29, mips64le:5015 |
