On Sat, Mar 14, 2020 at 01:50:48PM -0700, Eric Biggers wrote: > This patchset adds an ioctl FS_IOC_GET_ENCRYPTION_NONCE which retrieves > the nonce from an encrypted file or directory. > > This is useful for automated ciphertext verification testing. > > See patch #1 for more details. > > Eric Biggers (4): > fscrypt: add FS_IOC_GET_ENCRYPTION_NONCE ioctl > ext4: wire up FS_IOC_GET_ENCRYPTION_NONCE > f2fs: wire up FS_IOC_GET_ENCRYPTION_NONCE > ubifs: wire up FS_IOC_GET_ENCRYPTION_NONCE > > Documentation/filesystems/fscrypt.rst | 11 +++++++++++ > fs/crypto/fscrypt_private.h | 20 ++++++++++++++++++++ > fs/crypto/keysetup.c | 16 ++-------------- > fs/crypto/policy.c | 21 ++++++++++++++++++++- > fs/ext4/ioctl.c | 6 ++++++ > fs/f2fs/file.c | 11 +++++++++++ > fs/ubifs/ioctl.c | 4 ++++ > include/linux/fscrypt.h | 6 ++++++ > include/uapi/linux/fscrypt.h | 1 + > 9 files changed, 81 insertions(+), 15 deletions(-) > Applied to fscrypt.git#master for 5.7. - Eric