mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[PATCH] eCryptfs: Encrypted passthrough
Provide an option to provide a view of the encrypted files such that the metadata is always in the header of the files, regardless of whether the metadata is actually in the header or in the extended attribute. This mode of operation is useful for applications like incremental backup utilities that do not preserve the extended attributes when directly accessing the lower files. With this option enabled, the files under the eCryptfs mount point will be read-only. Signed-off-by: Michael Halcrow <mhalcrow@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
dd2a3b7ad9
commit
e77a56ddce
5 changed files with 113 additions and 11 deletions
|
@ -559,7 +559,7 @@ ssize_t ecryptfs_getxattr(struct dentry *dentry, const char *name, void *value,
|
|||
int
|
||||
ecryptfs_setxattr(struct dentry *dentry, const char *name, const void *value,
|
||||
size_t size, int flags);
|
||||
|
||||
int ecryptfs_read_xattr_region(char *page_virt, struct dentry *ecryptfs_dentry);
|
||||
int ecryptfs_process_helo(unsigned int transport, uid_t uid, pid_t pid);
|
||||
int ecryptfs_process_quit(uid_t uid, pid_t pid);
|
||||
int ecryptfs_process_response(struct ecryptfs_message *msg, uid_t uid,
|
||||
|
@ -582,6 +582,9 @@ int ecryptfs_send_connector(char *data, int data_len,
|
|||
u16 msg_flags, pid_t daemon_pid);
|
||||
int ecryptfs_init_connector(void);
|
||||
void ecryptfs_release_connector(void);
|
||||
|
||||
void
|
||||
ecryptfs_write_header_metadata(char *virt,
|
||||
struct ecryptfs_crypt_stat *crypt_stat,
|
||||
size_t *written);
|
||||
|
||||
#endif /* #ifndef ECRYPTFS_KERNEL_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue