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 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sys/linux/dev_vtpm.txt (limited to 'sys/linux/dev_vtpm.txt') 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]) -- cgit mrf-deployment