Skip to content

Commit aa99799

Browse files
committed
fscrypt: add comment for fscrypt_valid_enc_modes_v1()
Make it clear that nothing new should be added to this function. Signed-off-by: Eric Biggers <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 02aef42 commit aa99799

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

fs/crypto/policy.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ fscrypt_get_dummy_policy(struct super_block *sb)
6161
return sb->s_cop->get_dummy_policy(sb);
6262
}
6363

64+
/*
65+
* Return %true if the given combination of encryption modes is supported for v1
66+
* (and later) encryption policies.
67+
*
68+
* Do *not* add anything new here, since v1 encryption policies are deprecated.
69+
* New combinations of modes should go in fscrypt_valid_enc_modes_v2() only.
70+
*/
6471
static bool fscrypt_valid_enc_modes_v1(u32 contents_mode, u32 filenames_mode)
6572
{
6673
if (contents_mode == FSCRYPT_MODE_AES_256_XTS &&

0 commit comments

Comments
 (0)