summaryrefslogtreecommitdiff
path: root/fs/ecryptfs
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2024-01-23 17:25:51 +0100
committerChristian Brauner <brauner@kernel.org>2024-01-23 17:56:30 +0100
commit0000ff2523df42bcf3c2fe3e8daaeca038835487 (patch)
tree1be5d8f49a61fe06ce678aba9fa55cf513caf7c0 /fs/ecryptfs
parentbd46543d7f9a8b2c03420499b1885287e96aaf28 (diff)
parent42c3732fa8073717dd7d924472f1c0bc5b452fdc (diff)
downloadlwn-0000ff2523df42bcf3c2fe3e8daaeca038835487.tar.gz
lwn-0000ff2523df42bcf3c2fe3e8daaeca038835487.zip
Merge tag 'exportfs-6.9' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/cel/linux
Merge exportfs fixes from Chuck Lever: * tag 'exportfs-6.9' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/cel/linux: fs: Create a generic is_dot_dotdot() utility exportfs: fix the fallback implementation of the get_name export operation Link: https://lore.kernel.org/r/BDC2AEB4-7085-4A7C-8DE8-A659FE1DBA6A@oracle.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/ecryptfs')
-rw-r--r--fs/ecryptfs/crypto.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c
index 03bd55069d86..2fe0f3af1a08 100644
--- a/fs/ecryptfs/crypto.c
+++ b/fs/ecryptfs/crypto.c
@@ -1949,16 +1949,6 @@ out:
return rc;
}
-static bool is_dot_dotdot(const char *name, size_t name_size)
-{
- if (name_size == 1 && name[0] == '.')
- return true;
- else if (name_size == 2 && name[0] == '.' && name[1] == '.')
- return true;
-
- return false;
-}
-
/**
* ecryptfs_decode_and_decrypt_filename - converts the encoded cipher text name to decoded plaintext
* @plaintext_name: The plaintext name