[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220331153130.41287-8-jlayton@kernel.org>
Date: Thu, 31 Mar 2022 11:30:43 -0400
From: Jeff Layton <jlayton@...nel.org>
To: ceph-devel@...r.kernel.org
Cc: xiubli@...hat.com, idryomov@...il.com, lhenriques@...e.de,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH v12 07/54] ceph: support legacy v1 encryption policy keysetup
From: Luís Henriques <lhenriques@...e.de>
fstests make use of legacy keysetup where the key description uses a
filesystem-specific prefix. Add this ceph-specific prefix to the
fscrypt_operations data structure.
Signed-off-by: Luís Henriques <lhenriques@...e.de>
Signed-off-by: Jeff Layton <jlayton@...nel.org>
---
fs/ceph/crypto.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/ceph/crypto.c b/fs/ceph/crypto.c
index a513ff373b13..d1a6595a810f 100644
--- a/fs/ceph/crypto.c
+++ b/fs/ceph/crypto.c
@@ -65,6 +65,7 @@ static bool ceph_crypt_empty_dir(struct inode *inode)
}
static struct fscrypt_operations ceph_fscrypt_ops = {
+ .key_prefix = "ceph:",
.get_context = ceph_crypt_get_context,
.set_context = ceph_crypt_set_context,
.empty_dir = ceph_crypt_empty_dir,
--
2.35.1
Powered by blists - more mailing lists