mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
eCryptfs: Filename Encryption: filldir, lookup, and readlink
Make the requisite modifications to ecryptfs_filldir(), ecryptfs_lookup(), and ecryptfs_readlink() to call out to filename encryption functions. Propagate filename encryption policy flags from mount-wide crypt_stat to inode crypt_stat. Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com> Cc: Dustin Kirkland <dustin.kirkland@gmail.com> Cc: Eric Sandeen <sandeen@redhat.com> Cc: Tyler Hicks <tchicks@us.ibm.com> Cc: David Kleikamp <shaggy@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
51ca58dcc9
commit
addd65ad8d
4 changed files with 195 additions and 242 deletions
|
@ -627,12 +627,6 @@ int ecryptfs_decode_and_decrypt_filename(char **decrypted_name,
|
|||
struct dentry *ecryptfs_dentry,
|
||||
const char *name, size_t name_size);
|
||||
int ecryptfs_fill_zeros(struct file *file, loff_t new_length);
|
||||
int ecryptfs_decode_filename(struct ecryptfs_crypt_stat *crypt_stat,
|
||||
const char *name, int length,
|
||||
char **decrypted_name);
|
||||
int ecryptfs_encode_filename(struct ecryptfs_crypt_stat *crypt_stat,
|
||||
const char *name, int length,
|
||||
char **encoded_name);
|
||||
int ecryptfs_encrypt_and_encode_filename(
|
||||
char **encoded_name,
|
||||
size_t *encoded_name_size,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue