diff options
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 |
