android_kernel_motorola_sm6375/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eric Biggers 5e19d3fa33 FROMLIST: fscrypt: add FS_IOC_GET_ENCRYPTION_NONCE ioctl
Add an ioctl FS_IOC_GET_ENCRYPTION_NONCE which retrieves the nonce from
an encrypted file or directory.  The nonce is the 16-byte random value
stored in the inode's encryption xattr.  It is normally used together
with the master key to derive the inode's actual encryption key.

The nonces are needed by automated tests that verify the correctness of
the ciphertext on-disk.  Except for the IV_INO_LBLK_64 case, there's no
way to replicate a file's ciphertext without knowing that file's nonce.

The nonces aren't secret, and the existing ciphertext verification tests
in xfstests retrieve them from disk using debugfs or dump.f2fs.  But in
environments that lack these debugging tools, getting the nonces by
manually parsing the filesystem structure would be very hard.

To make this important type of testing much easier, let's just add an
ioctl that retrieves the nonce.

Bug: 151100202
Link: https://lore.kernel.org/r/20200314205052.93294-2-ebiggers@kernel.org
Change-Id: Ieef2c57b9257ae38eb2e5c1a018ca6f325bb62dd
Signed-off-by: Eric Biggers <ebiggers@google.com>
2020-03-19 11:29:02 -07:00
..
acpi ACPICA: Introduce ACPI_ACCESS_BYTE_WIDTH() macro 2020-03-05 16:43:42 +01:00
asm-generic This is the 5.4.24 stable release 2020-03-05 17:42:40 +01:00
clocksource
crypto UPSTREAM: crypto: x86 - Regularize glue function prototypes 2020-02-10 23:21:58 +00:00
drm Revert "ANDROID: drm: edid: add support for additional CEA extension blocks" 2020-03-16 01:41:14 +00:00
dt-bindings clk: imx8mn: Fix incorrect clock defines 2020-03-18 07:17:55 +01:00
keys
kvm
linux FROMLIST: fscrypt: add FS_IOC_GET_ENCRYPTION_NONCE ioctl 2020-03-19 11:29:02 -07:00
math-emu
media This is the 5.4.22 stable release 2020-02-24 09:16:10 +01:00
misc
net ANDROID: GKI: sock.h: add Android ABI padding to some structures 2020-03-19 11:56:25 +01:00
pcmcia
ras
rdma IB/core: Let IB core distribute cache update events 2020-02-24 08:36:26 +01:00
scsi This is the 5.4.23 stable release 2020-03-01 10:17:44 +01:00
soc
sound This is the 5.4.23 stable release 2020-03-01 10:17:44 +01:00
target
trace This is the 5.4.22 stable release 2020-02-24 09:16:10 +01:00
uapi FROMLIST: fscrypt: add FS_IOC_GET_ENCRYPTION_NONCE ioctl 2020-03-19 11:29:02 -07:00
vdso
video
xen