Linux FSCRYPT development
 help / color / mirror / Atom feed
* [PATCH] fscrypt: add comment for fscrypt_valid_enc_modes_v1()
@ 2022-11-25 19:20 Eric Biggers
  0 siblings, 0 replies; only message in thread
From: Eric Biggers @ 2022-11-25 19:20 UTC (permalink / raw)
  To: linux-fscrypt; +Cc: Tianjia Zhang

From: Eric Biggers <ebiggers@google.com>

Make it clear that nothing new should be added to this function.

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 fs/crypto/policy.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/fs/crypto/policy.c b/fs/crypto/policy.c
index 46757c3052ef9..84fa51604b151 100644
--- a/fs/crypto/policy.c
+++ b/fs/crypto/policy.c
@@ -61,6 +61,13 @@ fscrypt_get_dummy_policy(struct super_block *sb)
 	return sb->s_cop->get_dummy_policy(sb);
 }
 
+/*
+ * Return %true if the given combination of encryption modes is supported for v1
+ * (and later) encryption policies.
+ *
+ * Do *not* add anything new here, since v1 encryption policies are deprecated.
+ * New combinations of modes should go in fscrypt_valid_enc_modes_v2() only.
+ */
 static bool fscrypt_valid_enc_modes_v1(u32 contents_mode, u32 filenames_mode)
 {
 	if (contents_mode == FSCRYPT_MODE_AES_256_XTS &&

base-commit: 02aef4225258fa6d022ce9040716aeecc3afc521
-- 
2.38.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-25 19:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-25 19:20 [PATCH] fscrypt: add comment for fscrypt_valid_enc_modes_v1() Eric Biggers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox