| /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
| * These ioctls can be used on filesystems that support fs-verity. See the |
| * "User API" section of Documentation/filesystems/fsverity.rst. |
| * Copyright 2019 Google LLC |
| #ifndef _UAPI_LINUX_FSVERITY_H |
| #define _UAPI_LINUX_FSVERITY_H |
| #define FS_VERITY_HASH_ALG_SHA256 1 |
| #define FS_VERITY_HASH_ALG_SHA512 2 |
| struct fsverity_enable_arg { |
| __u16 digest_size; /* input/output */ |
| #define FS_IOC_ENABLE_VERITY _IOW('f', 133, struct fsverity_enable_arg) |
| #define FS_IOC_MEASURE_VERITY _IOWR('f', 134, struct fsverity_digest) |
| #endif /* _UAPI_LINUX_FSVERITY_H */ |