syzkaller/sys/linux/fsverity.txt
Eric Biggers f27c4411ef sys/linux: update fs-verity descriptions
The fs-verity API was redesigned, and we're planning to re-add the
fs-verity patches to linux-next soon.  Get the syzkaller descriptions up
to date with the new API [1]

[1] https://lkml.kernel.org/linux-fsdevel/20190701153237.1777-4-ebiggers@kernel.org
2019-07-16 12:10:18 +02:00

29 lines
948 B
Plaintext

# 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]
}