1
2
3
4
5
6
7
8
9
10 #ifndef _UAPI_LINUX_FSVERITY_H
11 #define _UAPI_LINUX_FSVERITY_H
12
13 #include <linux/ioctl.h>
14 #include <linux/types.h>
15
16 #define FS_VERITY_HASH_ALG_SHA256 1
17 #define FS_VERITY_HASH_ALG_SHA512 2
18
19 struct fsverity_enable_arg {
20 __u32 version;
21 __u32 hash_algorithm;
22 __u32 block_size;
23 __u32 salt_size;
24 __u64 salt_ptr;
25 __u32 sig_size;
26 __u32 __reserved1;
27 __u64 sig_ptr;
28 __u64 __reserved2[11];
29 };
30
31 struct fsverity_digest {
32 __u16 digest_algorithm;
33 __u16 digest_size;
34 __u8 digest[];
35 };
36
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)
39
40 #endif