linux/fs/crypto
Eric Biggers b30501efe9 ANDROID: fscrypt: fall back to filesystem-layer crypto when needed
When the filesystem is mounted with '-o inlinecrypt', make fscrypt fall
back to filesystem-layer crypto when inline crypto won't work, e.g. due
to the hardware not supporting the encryption algorithm.

When blk-crypto-fallback is disabled, this fixes '-o inlinecrypt' to not
break any fscrypt policies that would otherwise work.

This is needed for VtsKernelEncryptionTest to pass on some devices.

Bug: 137270441
Bug: 151100202
Test: 'atest vts_kernel_encryption_test' on Pixel 4 with the
      inline crypto patches backported, and also on Cuttlefish.
Change-Id: I3e730df4608efb12d7126d1a85faddcccb566764
Signed-off-by: Eric Biggers <ebiggers@google.com>
2020-04-07 17:57:41 +00:00
..
bio.c Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-4.19.y' into android-4.19 2020-02-21 08:11:19 -08:00
crypto.c Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-4.19.y' into android-4.19 2020-02-21 08:11:19 -08:00
fname.c FROMLIST: fscrypt: Have filesystems handle their d_ops 2020-02-28 03:36:12 +00:00
fscrypt_private.h ANDROID: fscrypt: fall back to filesystem-layer crypto when needed 2020-04-07 17:57:41 +00:00
hkdf.c fscrypt: constify struct fscrypt_hkdf parameter to fscrypt_hkdf_expand() 2020-02-12 21:26:19 -08:00
hooks.c FROMLIST: fscrypt: Have filesystems handle their d_ops 2020-02-28 03:36:12 +00:00
inline_crypt.c ANDROID: fscrypt: fall back to filesystem-layer crypto when needed 2020-04-07 17:57:41 +00:00
Kconfig Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-4.19.y' into android-4.19 2020-02-21 08:11:19 -08:00
keyring.c Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-4.19.y' into android-4.19 2020-02-21 08:11:19 -08:00
keysetup_v1.c ANDROID: block: Prevent crypto fallback for wrapped keys 2020-02-27 17:09:12 +00:00
keysetup.c ANDROID: fscrypt: fall back to filesystem-layer crypto when needed 2020-04-07 17:57:41 +00:00
Makefile BACKPORT: FROMLIST: fscrypt: add inline encryption support 2019-11-14 14:47:50 -08:00
policy.c UPSTREAM: fscrypt: add FS_IOC_GET_ENCRYPTION_NONCE ioctl 2020-04-01 09:48:10 -07:00