Files
android_kernel_xiaomi_sm8450/Documentation/filesystems
Daniel Rosenberg 6e1918cfb2 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-01-22 14:47:15 -08:00
..
2017-05-12 15:57:15 -07:00
2017-10-15 00:47:23 -04:00
2019-12-08 21:37:01 +08:00
2015-07-23 20:59:40 +02:00
2019-11-25 10:01:27 -08:00
2018-03-20 17:11:45 +01:00
2019-03-28 08:54:20 -07:00
2018-04-04 14:05:48 -04:00
2016-03-09 15:33:06 -07:00
2018-10-23 13:49:01 +02:00