diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2020-06-11 00:17:05 +0200 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@gmail.com> | 2020-06-12 18:42:12 +0200 |
| commit | 8ddccc2581d2f66a05bb78371e32c6f0f85e1521 (patch) | |
| tree | 5e9da455ee774b4ef8edb1305aa469d7a05d1507 /sys/linux/fs_ioctl_fsverity.txt | |
| parent | 2a2ff48439e44e80dcc1ad09e896be62505b0d9a (diff) | |
sys/linux: rename fsverity.txt to fs_ioctl_fsverity.txt
Diffstat (limited to 'sys/linux/fs_ioctl_fsverity.txt')
| -rw-r--r-- | sys/linux/fs_ioctl_fsverity.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/linux/fs_ioctl_fsverity.txt b/sys/linux/fs_ioctl_fsverity.txt new file mode 100644 index 000000000..8505f09ed --- /dev/null +++ b/sys/linux/fs_ioctl_fsverity.txt @@ -0,0 +1,28 @@ +# Copyright 2019 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/fs.h> +include <uapi/linux/fsverity.h> + +ioctl$FS_IOC_ENABLE_VERITY(fd fd, cmd const[FS_IOC_ENABLE_VERITY], arg ptr[in, fsverity_enable_arg]) +ioctl$FS_IOC_MEASURE_VERITY(fd fd, cmd const[FS_IOC_MEASURE_VERITY], arg ptr[inout, fsverity_digest]) + +fsverity_hash_alg = FS_VERITY_HASH_ALG_SHA256, FS_VERITY_HASH_ALG_SHA512 + +fsverity_enable_arg { + version const[1, int32] + hash_algorithm flags[fsverity_hash_alg, int32] + block_size const[4096, int32] + salt_size len[salt_ptr, int32] + salt_ptr ptr64[in, array[int8]] + sig_size len[sig_ptr, int32] + reserved1 const[0, int32] + sig_ptr ptr64[in, array[int8]] + reserved2 array[const[0, int64], 11] +} + +fsverity_digest { + digest_algorithm flags[fsverity_hash_alg, int16] + digest_size len[digest, int16] + digest array[int8] +} |
