From 6b6e15b0ff6d7ddfc1c029250f1fb8fcc2d4a204 Mon Sep 17 00:00:00 2001 From: Denis Efremov Date: Mon, 27 Sep 2021 21:48:12 +0300 Subject: sys/linux: describe /dev/vtpmx Describe virtual Trusted Platform Module (vTPM) proxy device driver. Signed-off-by: Denis Efremov --- sys/linux/dev_vtpm.txt | 20 ++++++++++++++++++++ sys/linux/dev_vtpm.txt.const | 5 +++++ 2 files changed, 25 insertions(+) create mode 100644 sys/linux/dev_vtpm.txt create mode 100644 sys/linux/dev_vtpm.txt.const (limited to 'sys/linux') 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 + +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 -- cgit mrf-deployment