1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
5 * These ioctls can be used on filesystems that support fs-verity. See the
6 * "User API" section of Documentation/filesystems/fsverity.rst.
8 * Copyright 2019 Google LLC
10 #ifndef _UAPI_LINUX_FSVERITY_H
11 #define _UAPI_LINUX_FSVERITY_H
13 #include <linux/ioctl.h>
14 #include <linux/types.h>
16 #define FS_VERITY_HASH_ALG_SHA256 1
17 #define FS_VERITY_HASH_ALG_SHA512 2
19 struct fsverity_enable_arg {
28 __u64 __reserved2[11];
31 struct fsverity_digest {
32 __u16 digest_algorithm;
33 __u16 digest_size; /* input/output */
37 #define FS_IOC_ENABLE_VERITY _IOW('f', 133, struct fsverity_enable_arg)
38 #define FS_IOC_MEASURE_VERITY _IOWR('f', 134, struct fsverity_digest)
40 #endif /* _UAPI_LINUX_FSVERITY_H */