aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs/ecryptfs_kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ecryptfs/ecryptfs_kernel.h')
-rw-r--r--fs/ecryptfs/ecryptfs_kernel.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/ecryptfs/ecryptfs_kernel.h b/fs/ecryptfs/ecryptfs_kernel.h
index b4a0cccfdd7c..b0727f91454e 100644
--- a/fs/ecryptfs/ecryptfs_kernel.h
+++ b/fs/ecryptfs/ecryptfs_kernel.h
@@ -235,6 +235,7 @@ struct ecryptfs_crypt_stat {
235#define ECRYPTFS_METADATA_IN_XATTR 0x00000100 235#define ECRYPTFS_METADATA_IN_XATTR 0x00000100
236#define ECRYPTFS_VIEW_AS_ENCRYPTED 0x00000200 236#define ECRYPTFS_VIEW_AS_ENCRYPTED 0x00000200
237#define ECRYPTFS_KEY_SET 0x00000400 237#define ECRYPTFS_KEY_SET 0x00000400
238#define ECRYPTFS_DELAY_PERSISTENT 0x00000800
238 u32 flags; 239 u32 flags;
239 unsigned int file_version; 240 unsigned int file_version;
240 size_t iv_bytes; 241 size_t iv_bytes;
@@ -574,9 +575,11 @@ struct ecryptfs_open_req {
574 struct list_head kthread_ctl_list; 575 struct list_head kthread_ctl_list;
575}; 576};
576 577
578#define ECRYPTFS_INTERPOSE_FLAG_D_ADD 0x00000001
579#define ECRYPTFS_INTERPOSE_FLAG_DELAY_PERSISTENT_FILE 0x00000002
577int ecryptfs_interpose(struct dentry *hidden_dentry, 580int ecryptfs_interpose(struct dentry *hidden_dentry,
578 struct dentry *this_dentry, struct super_block *sb, 581 struct dentry *this_dentry, struct super_block *sb,
579 int flag); 582 u32 flags);
580int ecryptfs_fill_zeros(struct file *file, loff_t new_length); 583int ecryptfs_fill_zeros(struct file *file, loff_t new_length);
581int ecryptfs_decode_filename(struct ecryptfs_crypt_stat *crypt_stat, 584int ecryptfs_decode_filename(struct ecryptfs_crypt_stat *crypt_stat,
582 const char *name, int length, 585 const char *name, int length,
@@ -709,5 +712,6 @@ void ecryptfs_destroy_kthread(void);
709int ecryptfs_privileged_open(struct file **lower_file, 712int ecryptfs_privileged_open(struct file **lower_file,
710 struct dentry *lower_dentry, 713 struct dentry *lower_dentry,
711 struct vfsmount *lower_mnt); 714 struct vfsmount *lower_mnt);
715int ecryptfs_init_persistent_file(struct dentry *ecryptfs_dentry);
712 716
713#endif /* #ifndef ECRYPTFS_KERNEL_H */ 717#endif /* #ifndef ECRYPTFS_KERNEL_H */