diff options
| author | Victor Hsieh <victorhsieh@gmail.com> | 2018-12-18 01:34:52 -0800 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-18 10:34:52 +0100 |
| commit | f4815544c1bd24e9151ffa64edda7bc68f0e156d (patch) | |
| tree | d4860866219ffec3bc0276dc5a6a9f4642b62648 /sys/linux/fs_ioctl.txt | |
| parent | bd8b4220d51d391adeba08cfcd2c886b9f0b0599 (diff) | |
sys/linux: add fs-verity ioctls
This adds 2 ioctls and an argument type:
- FS_IOC_ENABLE_VERITY
- FS_IOC_MEASURE_VERITY
- struct fsverity_digest
Note fs-verity on-disk structs are not yet added.
Diffstat (limited to 'sys/linux/fs_ioctl.txt')
| -rw-r--r-- | sys/linux/fs_ioctl.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/linux/fs_ioctl.txt b/sys/linux/fs_ioctl.txt index 977bfdbac..37abbe132 100644 --- a/sys/linux/fs_ioctl.txt +++ b/sys/linux/fs_ioctl.txt @@ -4,6 +4,7 @@ include <uapi/linux/fiemap.h> include <uapi/linux/fs.h> include <uapi/linux/fsmap.h> +include <uapi/linux/fsverity.h> include <linux/falloc.h> ioctl$FIBMAP(fd fd, cmd const[FIBMAP], arg ptr[in, int32]) @@ -27,6 +28,8 @@ ioctl$FS_IOC_SET_ENCRYPTION_POLICY(fd fd, cmd const[FS_IOC_SET_ENCRYPTION_POLICY ioctl$FS_IOC_GET_ENCRYPTION_POLICY(fd fd, cmd const[FS_IOC_GET_ENCRYPTION_POLICY], arg ptr[out, array[int8, 16]]) ioctl$FS_IOC_GET_ENCRYPTION_PWSALT(fd fd, cmd const[FS_IOC_GET_ENCRYPTION_PWSALT], arg ptr[out, fscrypt_policy]) ioctl$FS_IOC_GETFSMAP(fd fd, cmd const[FS_IOC_GETFSMAP], arg ptr[in, fsmap_head]) +ioctl$FS_IOC_ENABLE_VERITY(fd fd, cmd const[FS_IOC_ENABLE_VERITY]) +ioctl$FS_IOC_MEASURE_VERITY(fd fd, cmd const[FS_IOC_MEASURE_VERITY], arg ptr[inout, fsverity_digest]) fscrypt_policy { version const[0, int8] @@ -48,6 +51,14 @@ type fscrypt_policy_mode_t[CONTENTS, FILENAMES] { fs_policy_flags = FS_POLICY_FLAGS_PAD_4, FS_POLICY_FLAGS_PAD_8, FS_POLICY_FLAGS_PAD_16 +fsverity_digest_algorithm_flags = FS_VERITY_ALG_SHA256, FS_VERITY_ALG_SHA512, FS_VERITY_ALG_CRC32C + +fsverity_digest { + digest_algorithm flags[fsverity_digest_algorithm_flags, int16] + digest_size len[digest, int16] + digest array[int8] +} + space_resv { l_type const[0, int16] l_whence flags[seek_whence, int16] |
