Files
kernel_arpi/include/linux
Daniel Rosenberg c084049bb3 fscrypt: don't allow v1 policies with casefolding
Casefolded encrypted directories will use a new dirhash method that
requires a secret key.  If the directory uses a v2 encryption policy,
it's easy to derive this key from the master key using HKDF.  However,
v1 encryption policies don't provide a way to derive additional keys.

Therefore, don't allow casefolding on directories that use a v1 policy.
Specifically, make it so that trying to enable casefolding on a
directory that has a v1 policy fails, trying to set a v1 policy on a
casefolded directory fails, and trying to open a casefolded directory
that has a v1 policy (if one somehow exists on-disk) fails.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
[EB: improved commit message, updated fscrypt.rst, and other cleanups]
Link: https://lore.kernel.org/r/20200120223201.241390-2-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
2020-02-13 15:02:42 -08:00
..
2019-09-17 10:27:46 -07:00
2019-09-16 09:56:27 -07:00
2019-11-29 10:10:10 +01:00
2019-08-20 22:09:52 +02:00
2020-01-07 16:02:47 -08:00
2019-09-05 19:52:33 -06:00
2020-01-28 10:35:38 -08:00
2019-11-29 10:10:13 +01:00
2019-09-05 11:40:54 +02:00
2019-09-24 15:54:08 -07:00
2019-10-02 06:36:50 -07:00
2019-09-07 04:28:05 -03:00
2019-12-13 08:42:53 +01:00
2019-09-02 11:43:54 +01:00
2019-09-05 12:32:05 +02:00
2019-12-13 08:43:18 +01:00
2019-08-14 15:30:35 +02:00
2019-10-04 18:11:08 -07:00
2019-08-23 16:39:26 +01:00
2019-11-29 10:10:13 +01:00
2019-10-31 14:01:40 -07:00
2020-01-08 15:26:59 -08:00
2019-09-25 17:51:41 -07:00
2019-09-07 21:42:25 +02:00
2019-10-02 10:06:45 +02:00
2019-08-30 07:27:17 -07:00
2019-08-20 17:05:05 +02:00
2019-10-14 15:04:01 -07:00